[ytdl] detect yt-dlp independent of module name (#7599)

This commit is contained in:
Mike Fährmann
2025-05-30 23:52:32 +02:00
parent 931c2949ed
commit 8adf48316f
2 changed files with 6 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ def construct_YoutubeDL(module, obj, user_opts, system_opts=None):
def parse_command_line(module, argv):
parser, opts, args = module.parseOpts(argv)
ytdlp = (module.__name__ == "yt_dlp")
ytdlp = hasattr(module, "cookies")
std_headers = module.std_headers
try: