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

View file

@ -2106,7 +2106,7 @@ def check_executable(exe, args=[]):
try: try:
Popen.run([exe, *args], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Popen.run([exe, *args], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
except OSError: except OSError:
return False return False
return exe return exe