Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy extractors break test_download.py #13554

Closed
4 of 8 tasks
yan12125 opened this issue Jul 3, 2017 · 0 comments
Closed
4 of 8 tasks

Lazy extractors break test_download.py #13554

yan12125 opened this issue Jul 3, 2017 · 0 comments
Labels

Comments

@yan12125
Copy link
Collaborator

yan12125 commented Jul 3, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.02. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.07.02

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ python test/test_download.py TestDownload.test_Xuite
[Xuite] RGkzc1ZULTM4NjA5MTQuZmx2: Downloading webpage
[Xuite] flv config: Downloading XML
[info] Writing video description metadata as JSON to: test_Xuite_3860914.info.json
[debug] Invoking downloader on 'http://2.mms.vlog.xuite.net/video/d90029/RGkzc1ZULTM4NjA5MTQuZmx2?k=fd4343b3fdf413a5896e27881d5c545b&q=mp3'
[download] Destination: test_Xuite_3860914.mp3
[download] 100% of 10.00KiB in 00:00
.
----------------------------------------------------------------------
Ran 1 test in 4.490s

OK

$ make lazy-extractors                                
/usr/bin/env python devscripts/make_lazy_extractors.py youtube_dl/extractor/lazy_extractors.py
WARNING: Lazy loading extractors is an experimental feature that may not always work

$ python test/test_download.py TestDownload.test_Xuite
E
======================================================================
ERROR: test_Xuite (__main__.TestDownload):
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_download.py", line 103, in test_template
    if not ie.working():
AttributeError: type object 'XuiteIE' has no attribute 'working'

----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

$ youtube-dl --ignore-config -v test:xuite
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '-v', 'test:xuite']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.25
[debug] Lazy loading extractors enabled
[debug] Git HEAD: 72d256c43
[debug] Python version 3.6.1 - Linux-4.11.5-1-ARCH-x86_64-with-arch
[debug] exe versions: avconv v13_dev0-1201-g61f589e31, avprobe v13_dev0-1201-g61f589e31, ffmpeg 3.3.2, ffprobe 3.3.2
[debug] Proxy map: {}
[TestURL] Test URL: http://vlog.xuite.net/play/RGkzc1ZULTM4NjA5MTQuZmx2
[Xuite] RGkzc1ZULTM4NjA5MTQuZmx2: Downloading webpage
[Xuite] flv config: Downloading XML
[debug] Invoking downloader on 'http://7.mms.vlog.xuite.net/video/d90029/RGkzc1ZULTM4NjA5MTQuZmx2?k=fd4343b3fdf413a5896e27881d5c545b&q=mp3'
[download] Destination: 孤單南半球-歐德陽-3860914.mp3
[download] 100% of 3.77MiB in 00:00

Description of your issue, suggested solution and other information

As shown in the above log, lazy extractors break test_download.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant