The content pages directly contain multiple video players without
linking to a separate page for each video, like the Mediathek pages do.
Therefore, we cannot delegate loading the info_dict from a "video URL"
(because it does not exist), but instead we have to grab each video
separately from their video player <divs> and load the info_dict from
the respective JSONP.
On the other hand, Mediathek pages only contain links to the separate
video pages, and no JSONP URL, so we still need to support the old way
of loading each video page separately when playing the playlist.
It seems that the "current show" already uses the new WDR video-player,
while all the others videos still use the old player.
I just added the current show URL to the normal WDR-extractor, which
works fine. This commit needs my changes from PR #8842 that fix the
support for WDR.
The WDR relaunched their site on 2016-02-23 which not only changed the
URL-schema completely but also the layout of their pages.
Apparently the whole "mediathek" now runs on the wdr-domain, so no
separate URL for funkhauseuropa anymore.
There seems to be no explicit handling of video-sizes on the page or in
the URLs anymore. There seems to be only one size for HTML5, but still
several sizes for flash. The extractor adds all to the list of formats.
There is no metadata for the HTML5-stream, so that the best flash-stream
will always be considered as the "best" format. At least in my tests
this seemed to be true anyway.
· Import from compat what comes from compat. Yes, some names are available in utils too, but that's an implementation detail.
· Use _match_id consistently whenever possible
· Fix some outdated tests
· Use consistent valid URL (always match the whole protocol, no ^ at start required)
· Use modern test definitions