adds Dropin flexible integration for antibot

This commit is contained in:
msramalho
2025-06-07 19:09:37 +01:00
parent d202d79e0f
commit 07ff5baf07
6 changed files with 165 additions and 28 deletions

View File

@@ -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