mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.07k stars 648 forks source link

attempting to play song returns "Problem playing last item: (song) ERROR: NCMxxCKr5pc: Youtube says: This video is unavailable." #1068

Closed SirFireball3521 closed 1 year ago

SirFireball3521 commented 4 years ago

Issue / Suggestion

I installed this earlier today and after inserting my own API key, was able to search Youtube. however, when I attempted to play any of the results, I recieved the error in the title:

Problem playing last item: (song) ERROR: NCMxxCKr5pc: Youtube says: This video is unavailable.

I can confirm that the song exists and is available for me where I am.

Your Environment

mpsyt version      : 0.2.8
   notes           : released 17 February 2018
pafy version       : 0.5.5 (youtube-dl backend)
youtube-dl version : 2019.01.17
Python version     : 3.7.3 (default, Dec 20 2019, 18:57:59) 
[GCC 8.3.0]
Processor          : 
Machine type       : x86_64
Architecture       : 64bit, ELF
Platform           : Linux-4.19.0-8-amd64-x86_64-with-debian-10.3
sys.stdout.enc     : UTF-8
default enc        : utf-8
Config dir         : /home/sirfireball/.config/mps-youtube
env:TERM           : xterm-256color
env:SHELL          : /usr/bin/zsh
env:LANG           : en_US.UTF-8
HutchTy commented 4 years ago

I'm having the same issue across every Youtube player I've tried -- mps-youtube, youtube-viewer, and straw-viewer.

maxwell-herrmann commented 4 years ago

I'm having the same issue, I just recently installed mps-youtube. This happens for every video every time.

jlamoure commented 4 years ago

I too have this issue using my own Youtube API key. Running mps-youtube 0.2.8

poyenc commented 4 years ago

To solve the unavailable issues, I just updated the youtube_dl python module to the latest version:

$ youtube-dl --version
2020.06.16.1

This is actually an issue of this module.

maxwell-herrmann commented 4 years ago

I have verified that youtube-dl is up to date (2020.06.16.1) but still see the issue. I do see that when I check:

$ mpsyt --version mpsyt version : 0.2.8 notes : released 17 February 2018 pafy version : 0.5.5 (youtube-dl backend) youtube-dl version : 2018.03.14 Python version : 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0] Processor : x86_64 Machine type : x86_64 Architecture : 64bit, ELF Platform : Linux-5.3.0-62-generic-x86_64-with-Ubuntu-18.04-bionic sys.stdout.enc : UTF-8 default enc : utf-8 Config dir : /home/giancoli/.config/mps-youtube env:TERM : xterm-256color env:SHELL : /bin/bash env:LANG : en_US.UTF-8

It seems like mpsyt is using the older version of youtube-dl. Is there a simple way to change which one mpsyt accesses?

poyenc commented 4 years ago

@maxwell-herrmann you can try using pip3 to upgrade youtube-dl according to the download page, since your Python version is 3.6.9

$ pip3 install --upgrade --user youtube_dl
maxwell-herrmann commented 4 years ago

Thank you that solved it and updated the version of youtube-dl that mpsyt was using. I had to delete the old cache in .config (I referred to issue #1076) and now everything works perfectly. Thanks @poyenc!