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

YT: AttributeError: 'NoneType' object has no attribute 'attrib' #1610

Closed
4hm3t opened this issue Oct 16, 2013 · 5 comments
Closed

YT: AttributeError: 'NoneType' object has no attribute 'attrib' #1610

4hm3t opened this issue Oct 16, 2013 · 5 comments

Comments

@4hm3t
Copy link

@4hm3t 4hm3t commented Oct 16, 2013

I hope I have not rushed into reporting too early. Running 2013.10.15, on a windows box, through the cmd shell.

[download] Downloading video #11 of 20
[youtube] oY0ItxI9xTk: Downloading video webpage
[youtube] oY0ItxI9xTk: Downloading video info webpage
[youtube] oY0ItxI9xTk: Extracting video information
[youtube] oY0ItxI9xTk: Looking for automatic captions
[youtube] oY0ItxI9xTk: Downloading webpage
[info] Writing video subtitles to: Part_II_-_Differential_Equations_Lec_6_-_Power_Series_Solutions.en.srt
[download] Downloading video #12 of 20
[youtube] an5E940fqZQ: Downloading video webpage
[youtube] an5E940fqZQ: Downloading video info webpage
[youtube] an5E940fqZQ: Extracting video information
[youtube] an5E940fqZQ: Looking for automatic captions
[youtube] an5E940fqZQ: Downloading webpage
[info] Writing video subtitles to: Part_II_-_Differential_Equations_Lec_7_-_Laplace_Transforms.en.srt
[download] Downloading video #13 of 20
[youtube] KvQkRX1nIqQ: Downloading video webpage
[youtube] KvQkRX1nIqQ: Downloading video info webpage
[youtube] KvQkRX1nIqQ: Extracting video information
[youtube] KvQkRX1nIqQ: Looking for automatic captions
[youtube] KvQkRX1nIqQ: Downloading webpage
Traceback (most recent call last):
  File "__main__.py", line 18, in <module>
  File "youtube_dl\__init__.pyo", line 756, in main
  File "youtube_dl\__init__.pyo", line 709, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 621, in download
  File "youtube_dl\YoutubeDL.pyo", line 368, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 451, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 441, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 406, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 353, in extract_info
  File "youtube_dl\extractor\common.pyo", line 117, in extract
  File "youtube_dl\extractor\youtube.pyo", line 1377, in _real_extract
  File "youtube_dl\extractor\subtitles.pyo", line 35, in extract_subtitles
  File "youtube_dl\extractor\youtube.pyo", line 1153, in _get_available_automatic_caption
AttributeError: 'NoneType' object has no attribute 'attrib'

youtube-dl.exe -o "%(title)s.%(ext)s" $playlist_id$ -f 133/134/160/135 -f mp4 --no-overwrite --no-continue --restrict-filenames --write-auto-sub

@phihag
Copy link
Contributor

@phihag phihag commented Oct 17, 2013

Can you post the entire output of youtube-dl when given the -v option? Without the playlist ID, options, and version information, it's impossible to reproduce this issue.

@4hm3t
Copy link
Author

@4hm3t 4hm3t commented Oct 17, 2013

Updated the first entry as requested by @phihag.

@4hm3t
Copy link
Author

@4hm3t 4hm3t commented Oct 17, 2013

More information.

Particular subtitle object may not be found in YT.

Problem can be ignored by the documented ignore parameter (-i), therefore this issue is not critical (or whatever the appropriate term form non-critical issues in github is called). But I believe the output should be more graceful, i.e., "Subtitle can not be found", instead of outputting trace-back, unless called while verbose, or debug mode enabled.

@phihag phihag closed this in a733eb6 Oct 17, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Oct 17, 2013

For whatever reason (most likely a coding error or YouTube filesystem failure) , this video does not have automatic captions (the web player hides the button as well after clicking it).

Update to youtube-dl v2013.10.17 or newer (by typing youtube-dl -U as soon as the release is rolled out everywhere, which should be a couple of minutes) to fix this issue. Thank you for the report!

@4hm3t
Copy link
Author

@4hm3t 4hm3t commented Oct 17, 2013

Thank you for immediate response. Wish you best contributions...

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
2 participants
You can’t perform that action at this time.