1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-08 11:34:41 +08:00

still know Python?

This commit is contained in:
Filippo Valsorda
2013-06-05 12:22:23 +02:00
Unverified
parent 1452a3a959
commit aec82b2b22
+2 -1
View File
@@ -14,7 +14,8 @@ IEs = [
IE_list = []
IE_dict = {}
for module, IE_names in IEs:
_mod = __import__('youtube_dl.InfoExtractors.' + module, globals(), IE_names)
_mod = __import__('youtube_dl.InfoExtractors.' + module,
globals(), fromlist=IE_names)
for IE_name in IE_names:
IE = getattr(_mod, IE_name)
IE_list.append(IE)