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

The Daily Show extractor error #5449

Closed
6461 opened this issue Apr 16, 2015 · 9 comments
Closed

The Daily Show extractor error #5449

6461 opened this issue Apr 16, 2015 · 9 comments

Comments

@6461
Copy link

@6461 6461 commented Apr 16, 2015

python youtube-dl --verbose http://thedailyshow.cc.com/full-episodes/9q0y2l/april-15--2015---billy-crystal
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://thedailyshow.cc.com/full-episodes/9q0y2l/april-15--2015---billy-crystal
']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.04.09
[debug] Python version 3.3.2 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-69060-gcd960c8, rtmpdump 2.4
[debug] Proxy map: {}
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading webpage
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading show index
Traceback (most recent call last):
File "C:\Python33\lib\runpy.py", line 160, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python33\lib\runpy.py", line 73, in run_code
exec(code, run_globals)
File "youtube-dl__main
.py", line 19, in
File "youtube-dl\youtube_dl__init__.py", line 404, in main
File "youtube-dl\youtube_dl__init__.py", line 394, in _real_main
File "youtube-dl\youtube_dl\YoutubeDL.py", line 1446, in download
File "youtube-dl\youtube_dl\YoutubeDL.py", line 651, in extract_info
File "youtube-dl\youtube_dl\extractor\common.py", line 275, in extract
File "youtube-dl\youtube_dl\extractor\comedycentral.py", line 218, in _real_extract
AttributeError: 'NoneType' object has no attribute 'attrib'

@PinkPandaKatie
Copy link

@PinkPandaKatie PinkPandaKatie commented Apr 17, 2015

I have a similar problem, but I get a different error:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://thedailyshow.cc.com/full-episodes/9q0y2l/april-15--2015---billy-crystal', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.09
[debug] Python version 2.7.6 - Linux-3.13.0-44-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.18-6, avprobe 9.18-6, ffmpeg 2.3, ffprobe 2.3, rtmpdump 2.4
[debug] Proxy map: {}
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading webpage
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading show index
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading configuration for segment 1 / 4
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading configuration for segment 2 / 4
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading configuration for segment 3 / 4
[ComedyCentralShows] april-15--2015---billy-crystal: Downloading configuration for segment 4 / 4
[download] Downloading playlist: thedailyshow April 15, 2015 - Billy Crystal
[ComedyCentralShows] playlist thedailyshow April 15, 2015 - Billy Crystal: Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
ERROR: No video formats found!; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/home/jspenguin/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 662, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/jspenguin/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 821, in process_ie_result
    extra_info=extra)
  File "/home/jspenguin/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 708, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/jspenguin/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1047, in process_video_result
    raise ExtractorError('No video formats found!')
ExtractorError: No video formats found!; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@malept
Copy link
Contributor

@malept malept commented Apr 17, 2015

What happens (just for the Daily Show, not for any of the other CC programs I tried) is that when the segment configuration is downloaded, it returns a short XML document with the following text:

Sorry, this video is not found or no longer available due to date or rights restrictions.

Part of the reason might be that the media:content[url] ends with device={device}, and presumably the app needs to replace {device} with something valid. Though, when I tried using curl to retrieve the URL by replacing it with Android, nothing changed.

@6461
Copy link
Author

@6461 6461 commented Apr 17, 2015

I also tried to use the email shareable url and got a different error:
ERROR: unable to find Flash URL in webpage

python youtube-dl -vt http://on.cc.com/1JMloyv
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-vt', 'http://on.cc.com/1JMloyv']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.04.09
[debug] Python version 3.3.2 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-69060-gcd960c8, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 1JMloyv: Requesting header
[redirect] Following redirect to http://thedailyshow.cc.com/episodes/9q0y2l/april-15--2015---billy-crystal?xrs=share_cop
y_email
[ComedyCentralShows] april-15--2015---billy-crystal?xrs=share_copy_email: Downloading webpage
ERROR: unable to find Flash URL in webpage http://thedailyshow.cc.com/episodes/9q0y2l/april-15--2015---billy-crystal?xrs
=share_copy_email; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type
youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "youtube-dl\youtube_dl\YoutubeDL.py", line 651, in extract_info
ie_result = ie.extract(url)
File "youtube-dl\youtube_dl\extractor\common.py", line 275, in extract
return self._real_extract(url)
File "youtube-dl\youtube_dl\extractor\comedycentral.py", line 198, in _real_extract
raise ExtractorError('unable to find Flash URL in webpage ' + url)
youtube_dl.utils.ExtractorError: unable to find Flash URL in webpage http://thedailyshow.cc.com/episodes/9q0y2l/april-15
--2015---billy-crystal?xrs=share_copy_email; please report this issue on https://yt-dl.org/bug . Make sure you are using
the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its
complete output.

@PinkPandaKatie
Copy link

@PinkPandaKatie PinkPandaKatie commented Apr 17, 2015

The problem is that the playlist URL youtube-dl requests contains "thedailyshow.cc.com" and the flash player requests "thedailyshow.com" (without "cc").

I've made a quick patch which solves the problem for now, though I'm not sure it works as a permanent solution:

https://github.com/jspenguin/youtube-dl/commit/510997866d7349b6b7f29f60f8c06c45d8e831c9

@malept
Copy link
Contributor

@malept malept commented Apr 17, 2015

That changeset worked for me.

@falkTX
Copy link

@falkTX falkTX commented Apr 17, 2015

I can also confirm the fix works, thanks.

@dstftw dstftw closed this in 7691a7a Apr 17, 2015
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 17, 2015

Will be fixed in the next version. Thanks for the report.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 26, 2015

This has been fixed in youtube-dl 2015.04.26. See our FAQ if you have problems updating.

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.