mirror of
https://github.com/glomatico/votify.git
synced 2026-09-27 03:22:39 +02:00
Fix playability check inversion
This commit is contained in:
@@ -49,7 +49,7 @@ class SpotifyInterface:
|
||||
if "__typename" in track_data and track_data["__typename"] != "Track":
|
||||
return VotifyMediaNotFoundException(track_id, track_data)
|
||||
|
||||
if track_data["playability"]["playable"]:
|
||||
if not track_data["playability"]["playable"]:
|
||||
return VotifyMediaUnstreamableException(track_id, track_data)
|
||||
|
||||
playback_info = await self.base.get_playback_info(
|
||||
|
||||
Reference in New Issue
Block a user