Update generic.py
This commit is contained in:
parent
0bba82ca93
commit
e44e870dbb
@ -2886,14 +2886,16 @@ class GenericIE(InfoExtractor):
|
|||||||
if len(entries) == 1:
|
if len(entries) == 1:
|
||||||
entries[0].update({
|
entries[0].update({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': video_title})
|
'title': video_title,
|
||||||
self._sort_formats(entries[0]['formats'])
|
})
|
||||||
else:
|
else:
|
||||||
for num, entry in enumerate(entries, start=1):
|
for num, entry in enumerate(entries, start=1):
|
||||||
entry.update({
|
entry.update({
|
||||||
'id': video_id,
|
'id': '%s-%s' % (video_id, num),
|
||||||
'title': '%s (%d) ' % (video_title, num)})
|
'title': '%s (%d)' % (video_title, num),
|
||||||
self._sort_formats(entry['formats'])
|
})
|
||||||
|
for entry in entries:
|
||||||
|
self._sort_formats(entry['formats'])
|
||||||
return self.playlist_result(entries, video_id, video_title)
|
return self.playlist_result(entries, video_id, video_title)
|
||||||
|
|
||||||
jwplayer_data = self._find_jwplayer_data(
|
jwplayer_data = self._find_jwplayer_data(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user