sumitkolhe / jiosaavn-api

🎵 An Unofficial API for downloading high-quality songs from JioSaavn

Home Page:https://saavn.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regex match for playlist link will not work for all playlist links

saibendalam opened this issue · comments

This pattern will work with only for some playlists links like (https://www.jiosaavn.com/featured/its-indie-english/AMoxtXyKHoU_) but not for other links links(https://www.jiosaavn.com/s/playlist/cf3c2fb07449311f87f53670da0e3d20/temp/-8tei-VScyfc1EngHtQQ2g__) /jiosaavn.com/featured/[^/]+/([^/]+)$/)?.[1]

I believe we need to change the regex to /(?:jiosaavn.com/(?:featured|s/playlist)/[^/]+/([^/]+)$)|(?:/([^/]+)$)/ and need to fetch last matched value

and also the current regex will not work for saavan domain links