2017-10-11 17:44:13 +00:00
|
|
|
from .common import InfoExtractor
|
|
|
|
from .nexx import NexxIE
|
2018-03-07 20:17:46 +00:00
|
|
|
|
2022-01-10 13:54:10 +00:00
|
|
|
|
2019-07-10 12:54:49 +00:00
|
|
|
class FunkIE(InfoExtractor):
|
2022-01-09 13:57:41 +00:00
|
|
|
_VALID_URL = r'https?://(?:www\.|origin\.)?funk\.net/(?:channel|playlist)/[^/]+/(?P<display_id>[0-9a-z-]+)-(?P<id>\d+)'
|
2018-03-07 20:17:46 +00:00
|
|
|
_TESTS = [{
|
2019-07-10 12:54:49 +00:00
|
|
|
'url': 'https://www.funk.net/channel/ba-793/die-lustigsten-instrumente-aus-dem-internet-teil-2-1155821',
|
2024-02-13 03:12:17 +00:00
|
|
|
'md5': '8610449476156f338761a75391b0017d',
|
2017-10-11 17:44:13 +00:00
|
|
|
'info_dict': {
|
2018-03-07 20:17:46 +00:00
|
|
|
'id': '1155821',
|
2017-10-11 17:44:13 +00:00
|
|
|
'ext': 'mp4',
|
2018-03-07 20:17:46 +00:00
|
|
|
'title': 'Die LUSTIGSTEN INSTRUMENTE aus dem Internet - Teil 2',
|
2024-02-13 03:12:17 +00:00
|
|
|
'description': 'md5:2a03b67596eda0d1b5125c299f45e953',
|
2018-03-07 20:17:46 +00:00
|
|
|
'timestamp': 1514507395,
|
|
|
|
'upload_date': '20171229',
|
2024-02-13 03:12:17 +00:00
|
|
|
'duration': 426.0,
|
|
|
|
'cast': ['United Creators PMB GmbH'],
|
|
|
|
'thumbnail': 'https://assets.nexx.cloud/media/75/56/79/3YKUSJN1LACN0CRxL.jpg',
|
|
|
|
'display_id': 'die-lustigsten-instrumente-aus-dem-internet-teil-2',
|
|
|
|
'alt_title': 'Die LUSTIGSTEN INSTRUMENTE aus dem Internet Teil 2',
|
|
|
|
'season_number': 0,
|
|
|
|
'season': 'Season 0',
|
|
|
|
'episode_number': 0,
|
|
|
|
'episode': 'Episode 0',
|
2017-10-11 17:44:13 +00:00
|
|
|
},
|
|
|
|
}, {
|
2019-07-10 12:54:49 +00:00
|
|
|
'url': 'https://www.funk.net/playlist/neuesteVideos/kameras-auf-dem-fusion-festival-1618699',
|
2017-10-11 17:44:13 +00:00
|
|
|
'only_matching': True,
|
|
|
|
}]
|
|
|
|
|
|
|
|
def _real_extract(self, url):
|
2021-08-19 01:41:24 +00:00
|
|
|
display_id, nexx_id = self._match_valid_url(url).groups()
|
2019-07-10 12:54:49 +00:00
|
|
|
return {
|
|
|
|
'_type': 'url_transparent',
|
2024-02-13 03:12:17 +00:00
|
|
|
'url': f'nexx:741:{nexx_id}',
|
2019-07-10 12:54:49 +00:00
|
|
|
'ie_key': NexxIE.ie_key(),
|
|
|
|
'id': nexx_id,
|
|
|
|
'display_id': display_id,
|
|
|
|
}
|