Bug #1695

[youtube] BrokenPageError: Unable to extract Initial JS player signature function name

Added by Mathieu Roche over 2 years ago. Updated over 2 years ago.

Status:Resolved Start:2014-12-17
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:Modules Spent time: -
Target version:1.1
Module:youtube Branch:

Description

Hi,

I've the following problem with some videos on youtube.

# videoob 
Welcome to videoob v1.0

Copyright(C) 2010-2014 Christophe Benz, Romain Bignon, John Obbele
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Type "help" to display available commands.

Loaded backends: arte, canalplus, cappedtv, francetelevisions, youtube

videoob> info http://www.youtube.com/watch?v=t5tBsVX5g0g
Bug(youtube): Automatic signature extraction failed: Traceback (most recent call last):
  File "/home/mathieu/.local/share/weboob/modules/1.0/youtube/pages.py", line 812, in _decrypt_signature
    video_id, player_url, len(s)
  File "/home/mathieu/.local/share/weboob/modules/1.0/youtube/pages.py", line 197, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/home/mathieu/.local/share/weboob/modules/1.0/youtube/pages.py", line 210, in _parse_sig_js
    u'Initial JS player signature function name')
  File "/home/mathieu/.local/share/weboob/modules/1.0/youtube/pages.py", line 1077, in _search_regex
    raise BrokenPageError(u'Unable to extract %s' % name)
BrokenPageError: Unable to extract Initial JS player signature function name

=== [  0%] Getting http://updates.weboob.org/1.0/main/
Use "logging debug" option to print backtraces.
videoob> 

Maybe this is same issue as in youtube-dl https://github.com/rg3/youtube-dl/issues/4177.

Thanks.

signature - Quilt patch for debian package (552 Bytes) Vincent Hobeïka, 12/24/2014 10:23 pm

Associated revisions

Revision 4c87c39d4f8d8403610ee71d2549dc6643c3e5ba
Added by Romain Bignon over 2 years ago

fix parsing of js signature (closes #1695, courtesy of Vincent Hobeïka)

History

Updated by Mathieu Roche over 2 years ago

It's seems to be OK to download the video with the last version of youtube-dl.

Updated by Vincent Hobeïka over 2 years ago

Created patch with quilt
See attachment.

Updated by Romain Bignon over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Updated by Romain Bignon over 2 years ago

  • Category set to Modules
  • Target version set to 1.1
  • Module set to youtube

I've applied your patch. Thank you.

Also available in: Atom PDF