finished makeshift downloader

This commit is contained in:
Hellow2 2023-03-31 10:46:56 +02:00
parent 5bf7392ab3
commit 3aa6faab51
2 changed files with 4 additions and 3 deletions

View File

@ -192,7 +192,7 @@ class Song(MainObject):
if len(self.album_collection) == 0: if len(self.album_collection) == 0:
return f"{self.tracksort}" return f"{self.tracksort}"
return f"{self.tracksort}/{len(self.album_collection[0].tracklist) or 1}" return f"{self.tracksort}/{len(self.album_collection[0].song_collection) or 1}"
""" """
@ -298,7 +298,7 @@ class Album(MainObject):
return Metadata({ return Metadata({
id3Mapping.ALBUM: [self.title], id3Mapping.ALBUM: [self.title],
id3Mapping.COPYRIGHT: [self.copyright], id3Mapping.COPYRIGHT: [self.copyright],
id3Mapping.LANGUAGE: [self.iso_639_2_language], id3Mapping.LANGUAGE: [self.iso_639_2_lang],
id3Mapping.ALBUM_ARTIST: [a.name for a in self.artist_collection], id3Mapping.ALBUM_ARTIST: [a.name for a in self.artist_collection],
id3Mapping.DATE: [self.date.timestamp] id3Mapping.DATE: [self.date.timestamp]
}) })

View File

@ -845,7 +845,8 @@ class Musify(Page):
return Song( return Song(
title=song_name, title=song_name,
tracksort=tracksort, tracksort=tracksort,
main_artist_list=artist_list main_artist_list=artist_list,
source_list=source_list
) )
@classmethod @classmethod