mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
[generic] Correct apply order on playlist-reverse (closes #6845)
This commit is contained in:
parent
07af16b92e
commit
f4ca81416b
@ -938,6 +938,9 @@ class YoutubeDL(object):
|
||||
'[%s] playlist %s: Downloading %d videos' %
|
||||
(ie_result['extractor'], playlist, num_entries))
|
||||
|
||||
if self.params.get('playlistreverse', False):
|
||||
ie_entries = ie_entries[::-1]
|
||||
|
||||
if isinstance(ie_entries, list):
|
||||
n_all_entries = len(ie_entries)
|
||||
if playlistitems:
|
||||
@ -970,9 +973,6 @@ class YoutubeDL(object):
|
||||
n_entries = len(entries)
|
||||
report_download(n_entries)
|
||||
|
||||
if self.params.get('playlistreverse', False):
|
||||
entries = entries[::-1]
|
||||
|
||||
if self.params.get('playlistrandom', False):
|
||||
random.shuffle(entries)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user