fixed issue with reading the config file at the wrong point

This commit is contained in:
Hellow
2023-06-20 17:07:32 +02:00
parent f95083050e
commit dc540e4829
5 changed files with 20 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ class Source(DatabaseObject):
if "musify" in parsed.netloc:
return cls(SourcePages.MUSIFY, url, referer_page=referer_page)
if parsed.netloc in [url.netloc for url in ALL_YOUTUBE_URLS]:
if parsed.netloc in [_url.netloc for _url in ALL_YOUTUBE_URLS]:
return cls(SourcePages.YOUTUBE, url, referer_page=referer_page)
if url.startswith("https://www.deezer"):