diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 77195d3e..fbb63803 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,6 +39,6 @@ jobs: pip install nose make test - - name: Generate man pages and bash/zsh completion + - name: Test autogeneration of man pages, bash/zsh completion, etc run: | - make man completion + make diff --git a/gallery_dl/extractor/cyberdrop.py b/gallery_dl/extractor/cyberdrop.py index b67e5cc6..0f91bb2d 100644 --- a/gallery_dl/extractor/cyberdrop.py +++ b/gallery_dl/extractor/cyberdrop.py @@ -1,3 +1,11 @@ +# -*- coding: utf-8 -*- + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. + +"""Extractors for https://cyberdrop.me/""" + import base64 from .common import Extractor, Message diff --git a/scripts/supportedsites.py b/scripts/supportedsites.py index eec99f21..30c62a94 100755 --- a/scripts/supportedsites.py +++ b/scripts/supportedsites.py @@ -212,9 +212,12 @@ IGNORE_LIST = ( def domain(cls): """Return the web-domain related to an extractor class""" - url = sys.modules[cls.__module__].__doc__.split()[-1] - if url.startswith("http"): - return url + try: + url = sys.modules[cls.__module__].__doc__.split()[-1] + if url.startswith("http"): + return url + except Exception: + pass if hasattr(cls, "root") and cls.root: return cls.root + "/"