Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Mar 1, 2024
1 parent 0e64793 commit fbfb1fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mopidy_spotify/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def _parse_etag(response):
etag = re.match(r'^(W/)?("[!#-~]+")$', value)
if etag and len(etag.groups()) == 2: # noqa: PLR2004
return etag.groups()[1]
return None

return None

def still_valid(self, *, ignore_expiry=False):
Expand Down Expand Up @@ -571,7 +571,7 @@ def from_uri(cls, uri):
case [type, id] if type in ("track", "album", "artist", "playlist"):
return cls(uri, LinkType(type), id, None)
case ["your", _]:
return cls(uri, LinkType("your"))
return cls(uri, LinkType.YOUR)
case ["user", owner, "starred"]:
if parsed_uri.scheme == "spotify":
return cls(uri, LinkType.PLAYLIST, None, owner)
Expand Down

0 comments on commit fbfb1fe

Please sign in to comment.