1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-12-03 20:05:19 +01:00

[funk] Support origin URLs

Closes #2270
This commit is contained in:
pukkandan 2022-01-09 19:27:41 +05:30
parent f95a7b93e6
commit 2be56f2242
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -9,9 +9,9 @@ from ..utils import (
str_or_none,
)
#2270
class FunkIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?funk\.net/(?:channel|playlist)/[^/]+/(?P<display_id>[0-9a-z-]+)-(?P<id>\d+)'
_VALID_URL = r'https?://(?:www\.|origin\.)?funk\.net/(?:channel|playlist)/[^/]+/(?P<display_id>[0-9a-z-]+)-(?P<id>\d+)'
_TESTS = [{
'url': 'https://www.funk.net/channel/ba-793/die-lustigsten-instrumente-aus-dem-internet-teil-2-1155821',
'md5': '8dd9d9ab59b4aa4173b3197f2ea48e81',