mirror of
https://github.com/glomatico/votify.git
synced 2026-10-07 16:32:13 +02:00
Move and simplify VotifyNoCdmException
This commit is contained in:
@@ -7,6 +7,11 @@ class VotifyInterfaceException(VotiyException):
|
||||
pass
|
||||
|
||||
|
||||
class VotifyNoCdmException(VotifyInterfaceException):
|
||||
def __init__(self):
|
||||
super().__init__("Content requires a CDM but no .wvd file was provided")
|
||||
|
||||
|
||||
class VotifyUrlParseException(VotifyInterfaceException):
|
||||
def __init__(self, url: str):
|
||||
super().__init__(f"Failed to parse Spotify URL: {url}")
|
||||
@@ -45,15 +50,6 @@ class VotifyMediaFlatFilterException(VotifyMediaException):
|
||||
self.result = result
|
||||
|
||||
|
||||
class VotifyNoCdmException(VotifyMediaException):
|
||||
def __init__(self, media_id: str, media_metadata: dict | None = None):
|
||||
super().__init__(
|
||||
"Content requires a CDM but no .wvd file was provided",
|
||||
media_id=media_id,
|
||||
media_metadata=media_metadata,
|
||||
)
|
||||
|
||||
|
||||
class VotifyMediaNotFoundException(VotifyMediaException):
|
||||
def __init__(self, media_id: str, media_metadata: dict | None = None):
|
||||
super().__init__(
|
||||
|
||||
Reference in New Issue
Block a user