mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-13 05:38:29 +03:00
adds Dropin flexible integration for antibot
This commit is contained in:
@@ -128,7 +128,7 @@ def ydl_entry_to_filename(ydl, entry: dict) -> str:
|
||||
filename = ydl.prepare_filename(entry)
|
||||
if os.path.exists(filename):
|
||||
return filename
|
||||
|
||||
|
||||
base_filename, _ = os.path.splitext(filename) # '/get/path/to/file' ignore '.ext'
|
||||
directory = os.path.dirname(base_filename) # '/get/path/to'
|
||||
basename = os.path.basename(base_filename) # 'file'
|
||||
@@ -139,4 +139,4 @@ def ydl_entry_to_filename(ydl, entry: dict) -> str:
|
||||
and "video/" in (mimetypes.guess_type(f)[0] or "")
|
||||
):
|
||||
return os.path.join(directory, f)
|
||||
return False
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user