Bug 1201333

Summary: [abrt] youtube-dl: YoutubeDL.py:761:process_ie_result:IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Peter H. Jones <jones.peter.busi>
Component: youtube-dlAssignee: Till Maas <opensource>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: mcepl, mcepl, metherid, opensource
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f4d57fbc71b56d80e1cc19ce6db27a693fcea547
Whiteboard: abrt_hash:9d4a4b1e393c442a6feda327bd960ca0df650bdb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-15 08:23:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Peter H. Jones 2015-03-12 14:03:00 UTC
Version-Release number of selected component:
youtube-dl-2015.03.03.1-1.fc20

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python2 /usr/bin/youtube-dl --playlist-items 2 http://www.argentinetangovideos.net/2008/02/mauricio-castro.html
executable:     /usr/bin/youtube-dl
kernel:         3.18.8-100.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            3000

Truncated backtrace:
YoutubeDL.py:761:process_ie_result:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/bin/youtube-dl", line 6, in <module>
    youtube_dl.main()
  File "/usr/lib/python2.7/site-packages/youtube_dl/__init__.py", line 403, in main
    _real_main(argv)
  File "/usr/lib/python2.7/site-packages/youtube_dl/__init__.py", line 393, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1447, in download
    res = self.extract_info(url)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 659, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 761, in process_ie_result
    entries = [ie_entries[i - 1] for i in playlistitems]
IndexError: list index out of range

Local variables in innermost frame:
playlist: u'Argentine Tango Videos: Mauricio Castro'
playlistitems_str: '2'
i: 2
playlist_results: []
self: <youtube_dl.YoutubeDL.YoutubeDL object at 0x1a33750>
playliststart: 0
ie_entries: [{u'url': u'http://www.youtube.com/v/xO_l0k07PEQ', u'_type': u'url', u'ie_key': None}]
playlistend: None
playlistitems: <generator object iter_playlistitems at 0x1c175f0>
iter_playlistitems: <function iter_playlistitems at 0x1aae050>
download: True
n_all_entries: 1
ie_result: {u'extractor': u'generic', u'_type': u'playlist', u'title': u'Argentine Tango Videos: Mauricio Castro', u'extractor_key': 'Generic', u'webpage_url': u'http://www.argentinetangovideos.net/2008/02/mauricio-castro.html', u'entries': [{u'url': u'http://www.youtube.com/v/xO_l0k07PEQ', u'_type': u'url', u'ie_key': None}], u'id': u'mauricio-castro', u'webpage_url_basename': u'mauricio-castro.html'}
result_type: u'playlist'
extra_info: {}

Comment 1 Peter H. Jones 2015-03-12 14:03:04 UTC
Created attachment 1000999 [details]
File: backtrace

Comment 2 Peter H. Jones 2015-03-12 14:03:05 UTC
Created attachment 1001000 [details]
File: environ

Comment 3 Matěj Cepl 2015-05-15 08:23:38 UTC
This probably should be dealt better at upstream. Filed a bug there as https://github.com/rg3/youtube-dl/issues/5706

You can follow (and cooperate) the development upstream.

Comment 4 Matěj Cepl 2015-05-18 16:53:39 UTC
It should be fixed in the next release.