Add new url format to duoplay

- https://duoplay.ee/9644?ep=184
This commit is contained in:
Elan Ruusamäe 2024-11-20 11:41:29 +02:00
parent f919729538
commit 50cdbbaf9c
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ from ..utils.traversal import traverse_obj
class DuoplayIE(InfoExtractor): class DuoplayIE(InfoExtractor):
_VALID_URL = r'https?://duoplay\.ee/(?P<id>\d+)/[\w-]+/?(?:\?(?:[^#]+&)?ep=(?P<ep>\d+))?' # https://duoplay.ee/9644?ep=185
_VALID_URL = r'https?://duoplay\.ee/(?P<id>\d+)(?:/[\w-]+/?(?:\?(?:[^#]+&))?ep=(?P<ep>\d+))?'
_TESTS = [{ _TESTS = [{
'note': 'Siberi võmm S02E12', 'note': 'Siberi võmm S02E12',
'url': 'https://duoplay.ee/4312/siberi-vomm?ep=24', 'url': 'https://duoplay.ee/4312/siberi-vomm?ep=24',