diff --git a/scripts/determine_software.py b/scripts/determine_software.py index c9d20f8..ce80a4a 100644 --- a/scripts/determine_software.py +++ b/scripts/determine_software.py @@ -1,6 +1,12 @@ #!/usr/bin/python3 supported_software = { + "bibliogram" : [ + '', + '', + '', + '
' + ], "peertube" : [ '') + if not username is None: + return extract_from_url (domain + username, verbosity) + +def extract (url, page=None, network=False, verbosity=3, args={}): + feed = extract_from_url (url, verbosity) + if not feed is None: + return feed + + if not network: + return None + + # this should not happen because we have no hardcoded Bibliogram domains + if page is None: + page = download (platform, url, args, verbosity) + + feed = extract_from_page (page, verbosity, url, args) + if not feed is None: + return feed diff --git a/tests/bibliogram.txt b/tests/bibliogram.txt new file mode 100644 index 0000000..4759a1c --- /dev/null +++ b/tests/bibliogram.txt @@ -0,0 +1,4 @@ +https://bibliogram.snopyta.org/u/carachangrenofficial https://bibliogram.snopyta.org/u/carachangrenofficial/rss.xml +https://bibliogram.snopyta.org/u/carachangrenofficial/ https://bibliogram.snopyta.org/u/carachangrenofficial/rss.xml +https://bibliogram.snopyta.org/p/CVyC07sJVfS https://bibliogram.snopyta.org/u/carachangrenofficial/rss.xml +https://bibliogram.snopyta.org/p/CVyC07sJVfS/ https://bibliogram.snopyta.org/u/carachangrenofficial/rss.xml