File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class CoverDimensions(StrEnum):
37
37
Px320 : str = "320"
38
38
Px640 : str = "640"
39
39
Px1280 : str = "1280"
40
+ PxORIGIN : str = "origin"
40
41
41
42
42
43
class TidalLists (StrEnum ):
Original file line number Diff line number Diff line change 38
38
PLAYLIST_EXTENSION ,
39
39
PLAYLIST_PREFIX ,
40
40
REQUESTS_TIMEOUT_SEC ,
41
+ CoverDimensions ,
41
42
MediaType ,
42
43
QualityVideo ,
43
44
)
@@ -1183,7 +1184,10 @@ def metadata_write(
1183
1184
path_lyrics = self .lyrics_to_file (path_media .parent , lyrics )
1184
1185
1185
1186
if self .settings .data .metadata_cover_embed or (self .settings .data .cover_album_file and is_parent_album ):
1186
- url_cover = track .album .image (int (self .settings .data .metadata_cover_dimension ))
1187
+ cover_dimension = self .settings .data .metadata_cover_dimension
1188
+ url_cover = track .album .image (
1189
+ int (cover_dimension ) if cover_dimension != CoverDimensions .PxORIGIN else cover_dimension
1190
+ )
1187
1191
cover_data = self .cover_data (url = url_cover )
1188
1192
1189
1193
if cover_data and self .settings .data .cover_album_file and is_parent_album :
You can’t perform that action at this time.
0 commit comments