1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-24 17:08:53 +00:00
This commit is contained in:
Kieran Eglin
2024-06-14 12:47:59 -07:00
parent dd4475bd33
commit 15c7bef8d0
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ from ..compat import shutil
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 @@ class MoveFilesAfterDownloadPP(PostProcessor):
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:

View File

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