ebb-earl-co / tidal-wave

Waving at the TIDAL music service
Apache License 2.0
38 stars 2 forks source link

TIDAL Track IDs Can Be 5-digits-long #47

Closed ebb-earl-co closed 7 months ago

ebb-earl-co commented 7 months ago

This pull request fixes a bug similar to #31 in that TIDAL tracks as well as albums may be as small as 5-digits, whereas up to this point the code was searching for between 7- and 9-digit IDs.

- self.pattern: str = r"http(?:s)?://(?:listen\.)?tidal\.com/(?:browse/)?(?:album/\d{5,9}/)?track/(\d{7,9})(?:.*?)?"
+ self.pattern: str = r"http(?:s)?://(?:listen\.)?tidal\.com/(?:browse/)?(?:album/\d{5,9}/)?track/(\d{5,9})(?:.*?)?"

Separately, the GitHub actions workflows have been updated to :crossed_fingers: correctly upload pyapp executables upon release.