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

mpsyt problem playing last item #952

Closed StylinGreymon closed 5 years ago

StylinGreymon commented 5 years ago

When trying to watch a video, mpsyt throws this error:

Problem playing last item: Expecting value: line 1 column 1 (char 0)

and returns to search results

Your Environment

mpsyt version : 0.2.8 notes : released 17 February 2018 pafy version : 0.5.4 (youtube-dl backend) youtube-dl version : 2019.02.18 Python version : 3.7.2 (default, Jan 10 2019, 23:51:51) [GCC 8.2.1 20181127] Processor : Machine type : x86_64 Architecture : 64bit, Platform : Linux-4.20.10-1-MANJARO-x86_64-with-arch-Manjaro-Linux sys.stdout.enc : UTF-8 default enc : utf-8 Config dir : /home/greymon/.config/mps-youtube env:TERM : screen-256color env:SHELL : /bin/zsh env:LANG : en_US.UTF-8

Video Player

mpv 0.29.0-134-g8b563a0346 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on Wed Feb 20 18:22:26 PST 2019 ffmpeg library versions: libavutil 56.26.100 libavcodec 58.47.102 libavformat 58.26.101 libswscale 5.4.100 libavfilter 7.48.100 libswresample 3.4.100 ffmpeg version: N-93158-gc8bc9d1380

Running mpsyt with the --logging flag shows this:

DEBUG:root:input: q DEBUG:root:function call: quits DEBUG:root:regx matches: () DEBUG:root:Saved history file DEBUG:root:saved cache file: /home/greymon/.config/mps-youtube/cache_py_3.7.2 DEBUG:root:Unrecognised config item: SHOW_PLAYER_KEYS DEBUG:root:Unrecognised config item: LOOKUP_METADATA DEBUG:root:Unrecognised config item: SHOW_QRCODE DEBUG:root:Read history file DEBUG:root:10 cached streams imported DEBUG:root:paf: 0, streams: 10 DEBUG:root:transcoding config file exists DEBUG:root:searching path for mpv DEBUG:root:found at /bin/mpv DEBUG:root:mpv version 0.29.0 detected DEBUG:root:mpv supports --input-ipc-server DEBUG:root:searching path for ffmpeg DEBUG:root:found at /bin/ffmpeg DEBUG:root:input: userpl redlettermedia DEBUG:root:function call: user_pls DEBUG:root:regx matches: ('redlettermedia',) DEBUG:root:input: 8 DEBUG:root:function call: play DEBUG:root:regx matches: ('', '8', '') DEBUG:root:Fetching playlist using pafy DEBUG:root:preload: got new pafy object: Best of the Worst: Wheel o DEBUG:root:preload: got new pafy object: FT5D7rJ8TPQ DEBUG:root:paf: 1, streams: 11 DEBUG:root:select stream, q: 0, audio: False, len: 3 DEBUG:root:preload: getting content-length header DEBUG:root:preload: - content-length: 215167831 DEBUG:root:input: 7 DEBUG:root:function call: play DEBUG:root:regx matches: ('', '7', '') DEBUG:root:got new pafy object: Best of the Worst: Lycan C DEBUG:root:got new pafy object: 5nQYdtaH41k DEBUG:root:paf: 2, streams: 12 DEBUG:root:select stream, q: 0, audio: False, len: 5 DEBUG:root:searching path for mpv DEBUG:root:found at /bin/mpv DEBUG:root:getting content-length header DEBUG:root: - content-length: 161583720 DEBUG:root:playing Best of the Worst: Lycan Colony DEBUG:root:calling mpv --title Best of the Worst: Lycan Colony --no-ytdl --really-quiet https://r1---sn-nx5s7n7s.googlevideo.com/videoplayback?id=e6741876d687e359&itag=22&source=youtube&requiressl=yes&mm=31,29&mn=sn-nx5s7n7s,sn-nx57ynlz&ms=au,rdu&mv=m&pl=22&ei=wZ91XLWROIijkgalnrnwBg&susc=yt&initcwndbps=1735000&mime=video/mp4&ratebypass=yes&dur=2563.320&lmt=1547761156879012&mt=1551212396&fvip=1&beids=9466586&c=WEB&txp=5535432&ip=73.96.109.9&ipbits=0&expire=1551234082&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,ms,mv,pl,ei,susc,initcwndbps,mime,ratebypass,dur,lmt&signature=B89BE2299D0594D6CA084FEAFC5159DFFE0518FF.0570CB4BA779CE83447077010B09CD7AC6B530B1&key=yt8 DEBUG:root:preload: got new pafy object: Best of the Worst: Night o DEBUG:root:preload: got new pafy object: m0QUo5jnhYE DEBUG:root:paf: 3, streams: 13 DEBUG:root:select stream, q: 0, audio: False, len: 5 DEBUG:root:preload: getting content-length header DEBUG:root:preload: - content-length: 522439947

Vrihub commented 5 years ago

Duplicate of #953

pirate486743186 commented 5 years ago

@StylinGreymon You can close this issue....