aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/ytdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/ytdl.py')
-rw-r--r--gallery_dl/ytdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gallery_dl/ytdl.py b/gallery_dl/ytdl.py
index 32545e2..319e781 100644
--- a/gallery_dl/ytdl.py
+++ b/gallery_dl/ytdl.py
@@ -20,7 +20,7 @@ def import_module(module_name):
return __import__("yt_dlp")
except (ImportError, SyntaxError):
return __import__("youtube_dl")
- return __import__(module_name.replace("-", "_"))
+ return util.import_file(module_name)
def construct_YoutubeDL(module, obj, user_opts, system_opts=None):