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
8k stars 643 forks source link

Requested format not available crashes mpsyt #779

Open evolutionxbox opened 6 years ago

evolutionxbox commented 6 years ago

Trying to play a popular music live stream video from youtube results in an error which causes the program to crash.

Issue

  1. Search for chilledcow
  2. select the video (live stream) lofi hip hop radio - beats to relax/study to
  3. ERROR: requested format not available

Expected

  1. Search for chilledcow
  2. Select lofi hip hop radio - beats to relax/study to (live stream)
  3. Video should play

Environment

MacBook Pro 15" 2016 - macOS 10.13.2

mpsyt --version output:

mpsyt version      : 0.2.7.1
   notes           : released 6 July 2016
pafy version       : 0.5.3.1 (youtube-dl backend)
youtube-dl version : 2017.05.18.1
Python version     : 3.6.4 (default, Jan  6 2018, 11:51:59)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
Processor          : i386
Machine type       : x86_64
Architecture       : 64bit,
Platform           : Darwin-17.3.0-x86_64-i386-64bit
sys.stdout.enc     : UTF-8
default enc        : utf-8
Config dir         : /Users/jonnevo/.config/mps-youtube
env:TERM           : xterm-256color
env:SHELL          : /bin/zsh
env:LANG           : en_GB.UTF-8

mpv --version output:

mpv 0.27.1 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on Sat Feb 10 14:46:43 GMT 2018
ffmpeg library versions:
   libavutil       55.78.100
   libavcodec      57.107.100
   libavformat     57.83.100
   libswscale      4.8.100
   libavfilter     6.107.100
   libswresample   2.9.100
ffmpeg version: 3.4.2

Installed using homebrew:

Homebrew 1.5.4
Homebrew/homebrew-core (git revision 8c898; last commit 2018-02-13)
evolutionxbox commented 6 years ago

If you'd like the error stack trace (I assume that's what it is), please let me know.

kraetzin commented 6 years ago

I am unable to reproduce this. Your youtube-dl version : 2017.05.18.1 is out of date so I would suggest installing the latest version which is 2018.02.11. This should hopefully solve the issue.

evolutionxbox commented 6 years ago

Hmmm. I tried installing the latest version using homebrew, but I'm met with a warning stating that the 2018.02.11 version is already installed.

kraetzin commented 6 years ago

Is the up to date youtube-dl python3? You might have an up to date python2 youtube-dl but the python3 one, which mpsyt uses, is out of date (as we can see in the --version output). I've never used homebrew before so I can't really help with specifics there.

evolutionxbox commented 6 years ago

Updating youtube-dl via python3 does not update the one used in mps-youtube installed via homebrew.