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

Apple trailers fails for newly released videos #1387

Closed
phihag opened this issue Sep 6, 2013 · 1 comment
Closed

Apple trailers fails for newly released videos #1387

phihag opened this issue Sep 6, 2013 · 1 comment
Assignees

Comments

@phihag
Copy link
Contributor

@phihag phihag commented Sep 6, 2013

$ youtube-dl -v http://trailers.apple.com/trailers/sony_pictures/robocop/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://trailers.apple.com/trailers/sony_pictures/robocop/']
[debug] youtube-dl version 2013.09.06.1
[debug] Git HEAD: 8851a57
[debug] Python version 2.7.5+ - Linux-3.4-trunk-amd64-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[AppleTrailers] robocop: Downloading webpage
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/phihag/projects/youtube-dl/youtube_dl/__main__.py", line 18, in <module>
    youtube_dl.main()
  File "/home/phihag/projects/youtube-dl/youtube_dl/__init__.py", line 667, in main
    _real_main(argv)
  File "/home/phihag/projects/youtube-dl/youtube_dl/__init__.py", line 651, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
    videos = self.extract_info(url)
  File "/home/phihag/projects/youtube-dl/youtube_dl/YoutubeDL.py", line 324, in extract_info
    ie_result = ie.extract(url)
  File "/home/phihag/projects/youtube-dl/youtube_dl/extractor/common.py", line 103, in extract
    return self._real_extract(url)
  File "/home/phihag/projects/youtube-dl/youtube_dl/extractor/appletrailers.py", line 157, in _real_extract
    info['url'] = formats[-1]['url']
IndexError: list index out of range

Another test URL is http://trailers.apple.com/trailers/dreamworks/thefifthestate/ .

@ghost ghost assigned jaimeMF Sep 29, 2013
@jaimeMF jaimeMF closed this in 8435305 Sep 29, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 29, 2013

I have modified the extractor and now it gets the formats from includes/settings{trailer_name}.json, which also works for these trailers.

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.