fixed bug

This commit is contained in:
Hellow2 2023-03-30 16:10:48 +02:00
parent 6f30ae6f92
commit f8b3e57ade
2 changed files with 10 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Target(DatabaseObject):
@property @property
def exists(self) -> bool: def exists(self) -> bool:
return self.file_path.exists return self.file_path.is_file()
def create_path(self): def create_path(self):
self._path.mkdir(parents=True, exist_ok=True) self._path.mkdir(parents=True, exist_ok=True)

View File

@ -24,7 +24,8 @@ from ..objects import (
Label, Label,
Options, Options,
AlbumType, AlbumType,
AlbumStatus AlbumStatus,
Target
) )
from ..utils import ( from ..utils import (
string_processing, string_processing,
@ -891,3 +892,10 @@ class Musify(Page):
if url.source_type == MusifyTypes.SONG: if url.source_type == MusifyTypes.SONG:
return Song return Song
return None return None
@classmethod
def _download_song_to_targets(cls, source: Source, target_list: List[Target]):
"""
https://musify.club/track/im-in-a-coffin-life-never-was-waste-of-skin-16360302
"""
pass