Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Support for live TV on EinsUndEinsTV (Zattoo derivate) #22248
Comments
|
You must provide account credentials. |
|
Hi @dstftw , thanks for your quick reaction! Unfortunately, I cannot provide my personal account credentials for obvious reasons. Neither can I set up a toolchain for building YTDL myself :-( But I can suggest changes in the Zattoo extractor, that pretty sure will work for 1und1.tv live TV and offer myself testing any eventual dev-builds, if needed. As for code changes, the EinsUndEinsTVIE class in the Zattoo extractor should be replaced by the following code: class EinsUndEinsTVBaseIE(ZattooIE):
_NETRC_MACHINE = '1und1tv'
_HOST = '1und1.tv'
_API_HOST = 'www.%s' % _HOST
class EinsUndEinsTVIE(EinsUndEinsTVBaseIE):
_VALID_URL = _make_valid_url(ZattooIE._VALID_URL_TEMPLATE, _HOST)
_TESTS = [{
'url': 'https://www.1und1.tv/watch/abc/123-abc',
'only_matching': True,
}]
def _real_extract(self, url):
channel_name, video_id, record_id = re.match(self._VALID_URL, url).groups()
return self._extract_video(channel_name, video_id, record_id)
class EinsUndEinsTVLiveIE(EinsUndEinsTVIE):
_VALID_URL = r'https?://(?:www\.)?1und1\.tv/watch/(?P<id>[^/]+)'
_TEST = {
'url': 'https://www.1und1.tv/watch/zdf',
'only_matching': True,
}
@classmethod
def suitable(cls, url):
return False if EinsUndEinsTV.suitable(url) else super(EinsUndEinsTVLiveIE, cls).suitable(url)
def _real_extract(self, url):
channel_name = video_id = self._match_id(url)
return self._extract_video(channel_name, video_id, is_live=True) |
|
The only option is providing credentials. I don't merge untested code. |
Description
Would be nice to have live TV support for "EinsUndEinsTV" in the Zattoo extractor. The URL structure is exactly like in ZattooLive or QuicklineLive, e.g. https://www.1und1.tv/watch/zdf.
Many thanks and keep on the great work!