Merge pull request #23 from kokarare1212/restyled/deepsource-transform-374faca3

Restyle Format code with yapf
This commit is contained in:
こうから
2021-05-16 16:06:37 +09:00
committed by GitHub

View File

@@ -1,8 +1,10 @@
from __future__ import annotations from __future__ import annotations
import re
from librespot.common import Base62 from librespot.common import Base62
from librespot.common import Utils from librespot.common import Utils
from librespot.proto.ContextTrack import ContextTrack from librespot.proto.ContextTrack import ContextTrack
import re
class SpotifyId: class SpotifyId:
@@ -47,9 +49,9 @@ class PlayableId:
@staticmethod @staticmethod
def is_supported(uri: str): def is_supported(uri: str):
return not uri.startswith("spotify:local:") and \ return (not uri.startswith("spotify:local:")
not uri == "spotify:delimiter" and \ and not uri == "spotify:delimiter"
not uri == "spotify:meta:delimiter" and not uri == "spotify:meta:delimiter")
@staticmethod @staticmethod
def should_play(track: ContextTrack): def should_play(track: ContextTrack):