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

Bug report - cobra.be - AttributeError: 'NoneType' object has no attribute 'text' #4121

Closed
midas02 opened this issue Nov 6, 2014 · 3 comments
Closed

Comments

@midas02
Copy link
Contributor

@midas02 midas02 commented Nov 6, 2014

Hi,

Normally the software should be able to download from cobra.be. For this particular video, I'm getting an attribute error though:

youtube-dl.exe -v http://cobra.be/permalink/1.1427340
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://cobra.be/permalink/1.1427340']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2014.11.04
[debug] Python version 2.7.8 - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg N-58869-, ffprobe N-63644-, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 1: Requesting header
[redirect] Following redirect to http://cobra.be/cm/cobra/videozone/archief/kunsten/1.1427340
[VRT] 1.1427340: Downloading webpage
[VRT] 1427340: Downloading m3u8 information
[VRT] 1427340: Downloading f4m manifest
[debug] Invoking downloader on u'http://iphone.streampower.be/vrtnieuws_nogeo/_definst_/2012/09/113239822AFL0004GO470244
0.urlMP4_H.264.m4v/manifest.f4m'
[download] Downloading f4m manifest
[download] Destination: Goudvis over Berlinde De Bruyckere-1427340.flv
Traceback (most recent call last):
  File "__main__.py", line 18, in <module>
  File "youtube_dl\__init__.pyo", line 351, in main
  File "youtube_dl\__init__.pyo", line 341, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1085, in download
  File "youtube_dl\YoutubeDL.pyo", line 547, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 600, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 547, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 593, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 861, in process_video_result
  File "youtube_dl\YoutubeDL.pyo", line 1055, in process_info
  File "youtube_dl\YoutubeDL.pyo", line 1031, in dl
  File "youtube_dl\downloader\common.pyo", line 292, in download
  File "youtube_dl\downloader\f4m.pyo", line 248, in real_download
AttributeError: 'NoneType' object has no attribute 'text'

Thanks for having a look into it.

Rgds,
Midas

@midas02
Copy link
Contributor Author

@midas02 midas02 commented Nov 9, 2014

Hi,

I've noticed it's going wrong on other videos as well, for different reasons. Here's an example link: http://deredactie.be/permalink/1.2142794

The video seems to be downloading fine. However, playing it with VLC, sound stops playing after a couple of seconds. But on one particular older version of VLC, it does work... Strange.
Also, another tool I'm using to download these videos downloads them with an mp4 extension, instead of flv. And their files are a couple of bytes smaller. But they play fine, no issues whatsoever.
So I'm under the impression your tool might be going wrong on one of the initial segments, which then messes up the rest of the file. I hope this report can help you track down the issue. Good luck in finding the bug.

Rgds,
Midas

@midas02
Copy link
Contributor Author

@midas02 midas02 commented Nov 12, 2014

Hi,

Another strange thing. If I force the tool to download the video as an mp4 file, by adding "-f mp4", then all goes well. So it seems to go wrong with the way the flv download engine gets invoked.

@midas02
Copy link
Contributor Author

@midas02 midas02 commented Apr 7, 2016

The Cobra.be website is no longer being maintained, so this issue can be ignored.

@midas02 midas02 closed this Apr 7, 2016
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
1 participant
You can’t perform that action at this time.