9dogs / tg-odesli-bot

Telegram Bot to share music with Odesli (former Songlink) service.
https://t.me/odesli_bot
GNU General Public License v3.0
75 stars 21 forks source link

Identify Spotify international URLs #49

Closed dipnlik closed 8 months ago

dipnlik commented 8 months ago

Add support for Spotify international URLs.

Regexp was tested using https://pythex.org/

Don't know the format of other country codes but I expect \w+ to be sufficient.

Used ?: to avoid creating a new matching group and breaking anything elsewhere but if that's not the case these could be removed to simplify the regexp.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b9ce00a) 97.17% compared to head (7dfded6) 97.17%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #49 +/- ## ======================================= Coverage 97.17% 97.17% ======================================= Files 4 4 Lines 495 495 Branches 65 65 ======================================= Hits 481 481 Misses 8 8 Partials 6 6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

9dogs commented 8 months ago

Thanks, mate! I will update the bot instance in a couple of hours.