mirror of
https://github.com/glomatico/gamdl.git
synced 2026-06-13 04:05:14 +03:00
Make MusicVideoCodec.fourcc a property
This commit is contained in:
@@ -80,6 +80,7 @@ class MusicVideoCodec(Enum):
|
||||
H265 = "h265"
|
||||
ASK = "ask"
|
||||
|
||||
@property
|
||||
def fourcc(self) -> str:
|
||||
return FOURCC_MAP[self.value]
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ class AppleMusicMusicVideoInterface:
|
||||
playlist_results = [
|
||||
playlist
|
||||
for playlist in video_playlists
|
||||
if playlist.stream_info.codecs.startswith(codec.fourcc())
|
||||
if playlist.stream_info.codecs.startswith(codec.fourcc)
|
||||
]
|
||||
|
||||
if not playlist_results:
|
||||
|
||||
Reference in New Issue
Block a user