updxate _VALID_URL

This commit is contained in:
grqx_wsl 2024-10-15 14:53:36 +13:00
parent 5b962d70de
commit 5b1b5bb1b6

View file

@ -445,7 +445,7 @@ class BoomPlaySearchPageIE(BoomPlayBaseIE):
@classproperty
def _VALID_URL(cls):
return rf'https?://(?:www\.)?boomplay\.com/search/(?P<media_type>{"|".join(cls._MEDIA_TYPES)})/(?P<query>[^?&#/]+)'
return r'https?://(?:www\.)?boomplay\.com/search/(?P<media_type>default|video|episode|podcasts|playlists|artists|albums)/(?P<query>[^?&#/]+)'
def _real_extract(self, url):
media_type, query = self._match_valid_url(url).group('media_type', 'query')