Skip to content

Commit

Permalink
Allow TIDAL Artists to Parse 3-Digit IDs
Browse files Browse the repository at this point in the history
Just run across John Williams, of Star Wars composing fame, with the TIDAL artist ID of `160`. This should be valid, so this commit allows 3-digit to 9-digit artist IDs
  • Loading branch information
ebb-earl-co committed Jun 25, 2024
1 parent 9d9d6ce commit ca0a0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidal_wave/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class TidalArtist(TidalResource):
def __post_init__(self):
self.pattern: str = (
r"http(?:s)?://(?:listen\.|www\.)?tidal\.com/"
r"(?:browse/)?artist/(\d{4,9})(?:.*?)?"
r"(?:browse/)?artist/(\d{3,9})(?:.*?)?"
)
_id = self.match_url()

Expand Down

0 comments on commit ca0a0fd

Please sign in to comment.