mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-10 07:18:33 +00:00
Removed unneeded conditionals + return
This commit is contained in:
parent
c9d8184fe6
commit
5d51ddbbfc
@ -21,8 +21,6 @@ def pp_key(cls):
|
|||||||
|
|
||||||
def expand_relative_paths(self, files_to_move, finaldir):
|
def expand_relative_paths(self, files_to_move, finaldir):
|
||||||
for filetype in self.FILETYPE_KEYS:
|
for filetype in self.FILETYPE_KEYS:
|
||||||
if filetype not in files_to_move:
|
|
||||||
continue
|
|
||||||
for file_attrs in files_to_move[filetype]:
|
for file_attrs in files_to_move[filetype]:
|
||||||
if not os.path.isabs(file_attrs['final_filepath']):
|
if not os.path.isabs(file_attrs['final_filepath']):
|
||||||
file_attrs['final_filepath'] = os.path.join(finaldir, file_attrs['final_filepath'])
|
file_attrs['final_filepath'] = os.path.join(finaldir, file_attrs['final_filepath'])
|
||||||
@ -34,7 +32,6 @@ def expand_relative_paths(self, files_to_move, finaldir):
|
|||||||
def write_filepath_into_info(self, info, filetype, file_attrs):
|
def write_filepath_into_info(self, info, filetype, file_attrs):
|
||||||
if filetype == 'media':
|
if filetype == 'media':
|
||||||
info['filepath'] = file_attrs['final_filepath']
|
info['filepath'] = file_attrs['final_filepath']
|
||||||
return
|
|
||||||
|
|
||||||
elif filetype == 'thumbnails':
|
elif filetype == 'thumbnails':
|
||||||
for filetype_dict in info[filetype]:
|
for filetype_dict in info[filetype]:
|
||||||
|
Loading…
Reference in New Issue
Block a user