mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-02-15 13:06:17 +00:00
Linter
This commit is contained in:
@@ -8,7 +8,6 @@ from ..utils import (
|
|||||||
make_dir,
|
make_dir,
|
||||||
replace_extension
|
replace_extension
|
||||||
)
|
)
|
||||||
import pdb
|
|
||||||
|
|
||||||
|
|
||||||
class MoveFilesAfterDownloadPP(PostProcessor):
|
class MoveFilesAfterDownloadPP(PostProcessor):
|
||||||
@@ -89,17 +88,10 @@ class MoveFilesAfterDownloadPP(PostProcessor):
|
|||||||
return final_filepath
|
return final_filepath
|
||||||
|
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
# Map of the keys that contain moveable files and the 'type' of the file
|
|
||||||
# for generating the output filename
|
|
||||||
child_keys = {
|
|
||||||
'thumbnails': 'thumbnail',
|
|
||||||
'requested_subtitles': 'subtitle'
|
|
||||||
}
|
|
||||||
|
|
||||||
# This represents the main media file (using the 'filepath' key)
|
# This represents the main media file (using the 'filepath' key)
|
||||||
self.move_file_and_write_to_info(info)
|
self.move_file_and_write_to_info(info)
|
||||||
|
|
||||||
for key, output_file_type in child_keys.items():
|
for key, output_file_type in self.CHILD_KEYS.items():
|
||||||
if key not in info:
|
if key not in info:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user