Skip to content

Commit

Permalink
Hotfix: Fixed wrong dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
Dniel97 committed Feb 6, 2022
1 parent 81a80fd commit ab2a3ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions orpheus/music_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def download_track(self, track_id, album_location='', main_artist='', track_inde
album_location = album_location.replace('\\', '/')

# Ignores "single_full_path_format" and just downloads every track as an album
if self.global_settings['formatting']['force_album_format'] and self.download_mode in [
DownloadTypeEnum.track, DownloadTypeEnum.playlist]:
if self.global_settings['formatting']['force_album_format'] and self.download_mode in {
DownloadTypeEnum.track, DownloadTypeEnum.playlist}:
# Fetch every needed album_info tag and create an album_location
album_info: AlbumInfo = self.service.get_album_info(track_info.album_id)
# Save the playlist path to save all the albums in the playlist path
Expand Down
1 change: 0 additions & 1 deletion utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ class ExtensionInformation:
settings: dict


@dataclass
class DownloadTypeEnum(Flag):
track = auto()
playlist = auto()
Expand Down

0 comments on commit ab2a3ee

Please sign in to comment.