sumitkolhe/jiosaavn-api

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

Closed this issue · 1 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