-
Notifications
You must be signed in to change notification settings - Fork 642
Troubleshooting
I see https://youtube.com/devicesupport results, what's going on?
The codebase has now been updated to use v3 of the data API. Please ensure you're on the latest version of mps-youtube.
By default mps-youtube is set to search for videos in the music category. To change this to all categories, enter:
set search_music false
from within mps-youtube.
Install ffmpeg (or avconv), mps-youtube will use it to fix the container data for future downloads.
Enter n
and p
to view the next/previous page of results
By default mps-youtube is set to play audio only. To view video output, enter:
set show_video true
from within mps-youtube.
Yes, use set download_command
to specify a custom command to use for downloading.
Type help dl-command
from within mps-youtube for more help
Note that using a custom download command does not support transcoding the downloaded file to another format using mps-youtube.
If you have defined custom keymappings for mpv or mplayer in an input.conf
file and wish to use them in mps-youtube, copy (or symlink) the config file to the mps-youtube config dir. The file must be named mpv-input.conf
or mplayer-input.conf
The mps-youtube config dir can be determined by running mpsyt --version
Currently there's a separate setting (user_order
) that can be used to specify the desired search order for user results (separate to general searches). Ensure this is set appropriately.
Future releases will have the user_order
automatically inherit from the order
setting.
WARNING:
This is development version which is changed continuously. If you have some problems, try regular upgrade with sudo pip install mps-youtube --upgrade
. If that's not working for you, then try installing development version.
sudo pip3 install --upgrade https://github.com/mps-youtube/pafy/archive/develop.zip https://github.com/mps-youtube/mps-youtube/archive/develop.zip
NOTE:
If you want to rollback to the stable release, just uninstall with sudo pip uninstall mps-youtube
and then install again with sudo pip install mps-youtube
.
If you try to download a video that has non-ASCII characters in its title and you get an error like the following:
Problem playing last item: 'ascii' codec can't encode character...
for some reason, Python is detecting your terminal as not capable of supporting UTF-8. As a workaround, run
export PYTHONIOENCODING='UTF-8'
before running mpsyt.
Youtube Error 403: Access Not Configured. YouTube Data API has not been used in project 422897895433 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=422897895433 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
mps-youtube shares a single youtube api_key for everbody, but as the user base grow larger, we may exceed the quota for a single api_key, if this happens, you can set your own api_key from the guide below (follow till step 3)
https://www.slickremix.com/docs/get-api-key-for-youtube/
then set it in mps-youtube via
mps-youtube
> set api_key <key value>
> q # quit app
Be sure to quit /restart app for changes to work!
If you can not even open the application, first delete cache with command:
rm ~/.config/mps-youtube/cache_py_*