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


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

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

From Rémi Letot <hobbes@poukram.net>
Newsgroups linux.debian.bugs.dist
Subject Bug#825169: mps-youtube: I get KeyError: 'dashmpd' when trying to view or download some videos
Date 2016-05-24 12:00 +0200
Message-ID <rChi2-1AN-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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
pn  python3:any            <none>

Versions of packages mps-youtube recommends:
ii  libnotify4  0.7.6-2
ii  xclip       0.12+svn84-4

mps-youtube suggests no packages.

-- no debconf information

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 Rémi Letot <hobbes@poukram.net> - 2016-05-24 12:00 +0200

csiph-web