]> jfr.im git - yt-dlp.git/blobdiff - devscripts/check-porn.py
Merge branch 'fix-mitele' of https://github.com/DjMoren/youtube-dl
[yt-dlp.git] / devscripts / check-porn.py
index 216282712c1b38b96c049f74a6cfe8a0fcd30806..68a33d823f2308496123fd2e08c21ff39249008d 100644 (file)
@@ -14,9 +14,9 @@
 import sys
 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 
-from test.helper import get_testcases
-from youtube_dl.utils import compat_urllib_parse_urlparse
-from youtube_dl.utils import compat_urllib_request
+from test.helper import gettestcases
+from youtube_dlc.utils import compat_urllib_parse_urlparse
+from youtube_dlc.utils import compat_urllib_request
 
 if len(sys.argv) > 1:
     METHOD = 'LIST'
 else:
     METHOD = 'EURISTIC'
 
-for test in get_testcases():
+for test in gettestcases():
     if METHOD == 'EURISTIC':
         try:
             webpage = compat_urllib_request.urlopen(test['url'], timeout=10).read()
-        except:
+        except Exception:
             print('\nFail: {0}'.format(test['name']))
             continue