draft: rewrote sources

This commit is contained in:
2024-05-15 11:44:39 +02:00
parent da8887b279
commit 14f986a497
5 changed files with 67 additions and 33 deletions

View File

@@ -146,15 +146,6 @@ class Pages:
return None
return self.fetch_from_source(source=source)
def is_downloadable(self, music_object: DataObject) -> bool:
_page_types = set(self._source_to_page)
for src in music_object.source_collection.source_pages:
if src in self._source_to_page:
_page_types.add(self._source_to_page[src])
audio_pages = self._audio_pages_set.intersection(_page_types)
return len(audio_pages) > 0
def _skip_object(self, data_object: DataObject) -> bool:
if isinstance(data_object, Album):