[ytdl] support specifying filesystem paths as 'module' (#6991)

This commit is contained in:
Mike Fährmann
2025-02-14 19:58:25 +01:00
parent 7ae09c6b29
commit 182b544217
3 changed files with 14 additions and 6 deletions

View File

@@ -770,7 +770,7 @@ def import_file(path):
finally:
del sys.path[0]
else:
return __import__(name)
return __import__(name.replace("-", "_"))
def build_duration_func(duration, min=0.0):