mirror of
https://github.com/glomatico/votify.git
synced 2026-09-29 20:42:32 +02:00
Set media_type for music videos and cleanup imports
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from .episode import SpotifyEpisodeInterface
|
||||
from .exceptions import VotifyDrmDisabledException
|
||||
from .enums import MediaType
|
||||
from .song import SpotifySongInterface
|
||||
from .types import MediaTags, SpotifyMedia
|
||||
from .video import SpotifyVideoInterface
|
||||
from .song import SpotifySongInterface
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -47,6 +46,7 @@ class SpotifyMusicVideoInterface(SpotifyVideoInterface):
|
||||
isrc=isrc,
|
||||
label=label,
|
||||
media_id=track_data["uri"].split(":")[-1],
|
||||
media_type=MediaType.MUSIC_VIDEO,
|
||||
producer=producer,
|
||||
rating=rating,
|
||||
url=f"https://open.spotify.com/track/{track_data['uri'].split(':')[-1]}",
|
||||
|
||||
Reference in New Issue
Block a user