Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #769068

Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos

From Zlatan Todoric <zlatan@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos
Date 2016-09-22 18:30 +0200
Message-ID <skf2O-eA-31@gated-at.bofh.it> (permalink)
References <rChi2-1AN-7@gated-at.bofh.it> <rChi2-1AN-7@gated-at.bofh.it> <rRXS1-32X-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi guys, do you still get the same issue with new pafy in Debian?


On 07/06/2016 06:16 PM, Zlatan Todoric wrote:
> Hi,
>
> On Tue, 24 May 2016 11:47:52 +0200 =?utf-8?q?R=C3=A9mi_Letot?=
> <hobbes@poukram.net> 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.
>

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos Zlatan Todoric <zlatan@debian.org> - 2016-09-22 18:30 +0200

csiph-web