sigma67 / ytmusicapi

Unofficial API for YouTube Music
https://ytmusicapi.readthedocs.io
MIT License
1.59k stars 182 forks source link

Extract song count from text #607

Closed JohnHKoh closed 2 weeks ago

JohnHKoh commented 2 weeks ago

Use RegEx search to search for track count integer instead of using indexing. If the number cannot be extracted, return 0 as a fallback.

Addresses https://github.com/sigma67/ytmusicapi/issues/606