Mopidy extension for YouTube
Project description
Mopidy extension that plays sound from YouTube.
Installation
Install from PyPI by running:
python3 -m pip install Mopidy-Youtube==3.0a1
Install from github by running:
python3 -m pip install https://github.com/natumbri/mopidy-youtube/archive/develop.zip
Make sure you already have the GStreamer plugins, especially the “bad” collection of plugins. For example, on Debian/Ubuntu you can install it by running:
sudo apt-get install gstreamer1.0-plugins-bad
Configuration
Before starting Mopidy, you must add configuration for Mopidy-YouTube to your Mopidy configuration file:
[youtube] enabled = true
If you want modipy-youtube to use the YouTube API, before starting Mopidy, you must add your Google API key to your Mopidy configuration file and set api_enabled = true:
[youtube] youtube_api_key = <api key you got from Google> api_enabled = false
Other configuration options are:
[youtube] threads_max = 16 search_results = 15 playlist_max_videos = 20
Usage
Simply use search for filename in your MPD client or add YouTube URL to playlist prefixed by yt:.
Example video:
yt:http://www.youtube.com/watch?v=Njpw2PVb1c0
Example for playlist:
yt:http://www.youtube.com/playlist?list=PLeCg_YDclAETQHa8VyFUHKC_Ly0HUWUnq
Troubleshooting
If the extension is slow, try setting lower values for threads_max, search_results and playlist_max_videos.
If resolving of URIs stops working, always try to update the youtube-dl library first.
Project resources
Credits
Original author: Janez Troha
Current maintainer: Nikolas Tumbri
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Mopidy_YouTube-3.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aea4c2a056c1b8e980db9ba6e7b12f32c4d827ad14f60a6831327d72bbce58e |
|
MD5 | 2e879feb7c2b0ab7bf784fcde04354b5 |
|
BLAKE2b-256 | 7e439b3641fd8cb3602c8da89d1854802be410434fa00e586468169daa52550f |