1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00
This commit is contained in:
Kieran Eglin 2024-06-14 12:47:59 -07:00
parent dd4475bd33
commit 15c7bef8d0
No known key found for this signature in database
GPG key ID: 193984967FCF432D
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
from ..utils import (
PostProcessingError,
make_dir,
replace_extension
replace_extension,
)
@ -15,7 +15,7 @@ class MoveFilesAfterDownloadPP(PostProcessor):
# for generating the output filename
CHILD_KEYS = {
'thumbnails': 'thumbnail',
'requested_subtitles': 'subtitle'
'requested_subtitles': 'subtitle',
}
def __init__(self, downloader=None, downloaded=True):
@ -93,7 +93,7 @@ def run(self, info):
if key not in info:
continue
if isinstance(info[key], list) or isinstance(info[key], dict):
if isinstance(info[key], (dict, list)):
iterable = info[key].values() if isinstance(info[key], dict) else info[key]
for file_dict in iterable: