Hi,

On Tue, 24 May 2016 11:47:52 +0200 =?utf-8?q?R=C3=A9mi_Letot?=
<[email protected]> wrote:
> Package: mps-youtube
> Version: 0.2.5-5
> Severity: normal
> 
> Dear Maintainer,
> 
> here is what I get when trying to download some videos:
> 
> 
> Enter /search-term to search or [h]elp                                        
>                                                                               
>                      
> > url -_KfYQm39kQ
> Traceback (most recent call last):
>   File "/usr/bin/mpsyt", line 9, in <module>
>     load_entry_point('mps-youtube==0.2.5', 'console_scripts', 'mpsyt')()
>   File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4780, in 
> main
>     if matchfunction(k, v, userinput):
>   File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4680, in 
> matchfunction
>     func(*matches)
>   File "/usr/lib/python3/dist-packages/mps_youtube/main.py", line 4243, in 
> yt_url
>     p = pafy.new(url)
>   File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 148, in new
>     return Pafy(url, basic, gdata, signature, size, callback)
>   File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 866, in __init__
>     self.fetch_basic()
>   File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 892, in fetch_basic
>     smaps, js_url, mainfunc, dashurl = get_js_sm(self.videoid)
>   File "/usr/lib/python3/dist-packages/pafy/pafy.py", line 481, in get_js_sm
>     dash_url = stream_info['dashmpd']
> KeyError: 'dashmpd'
> 
> 
> And then I'm back to my shell.
> 
> I searched the web, and found recommandations to install 
> youtube-dl, but this package is already installed on my
> system and has no trouble to download that particular 
> video.
>  
> Thanks for your work,
> -- 
> Rémi
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
> Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages mps-youtube depends on:
> ii  ffmpeg                 7:3.0.1-3
> ii  mpv                    0.14.0-1+b2
> ii  python3                3.5.1-3
> ii  python3-pafy           0.3.80-1
> ii  python3-pkg-resources  20.10.1-1

Hi, yes this is a issue with pafy backend (an upstream issue). It got
resolved used with youtube-dl as backend (which will be available in my
new update) but the issue seems to be that it needs python3 version of
youtube-dl which appears to not be case in Debian atm but I will check.

Reply via email to