Add timestamp, set to "valid from" which i think could been seen as publish time.
Add thumbnail in more cases, seems to was only done in the embedded data case for some reason.
Update API URL (current one redirects to it).
Switch svtplay test url to an existing video and also one with no expire date.
Also add an additional thumbnail url test regex.
If the markup of the page changes in the future, it might be possible that _FEED_DATA still works, but the other regex does not. SInce it is not necessary for the first page of videos, we make sure the program doesn't exit before extracting them.
TL;DR: Extract the first video page even if there are problems
In order to extract videos from further pages, we need to get various variables that are in an argument to the `ytcfg.set` call in a script on the feed page.
Parsing `videoParams' or `videoLa7' JavaScript snippets as JSON is getting too
hard for js_to_json. Just extract the `vid' from there and use _search_og_*
for all other data.
Remove the 2nd test: unfortunately the page are removed after a couple of
days/weeks.
Thanks to Elia Geretto for spotting and suggesting several problems with the
tests!
Closes#23323.
- Introduce _BASE_URL in RaiBaseIE class so it could be reused as base for the
several subextractors.
- Remove first test of RaiPlayIE, it is no longer available
- Adjust RaiPlayIE to recent raiplay.it updates, make it extension agnostic
(passing possible `.json' URLs is now supported too) and update test
info_dict.
- Adjust RaiPlayLiveIE to recent raiplay.it updates. Passing it as
`url_transparent' is no longer supported (there is no longer an accessible
ContentItem)
- Adjust RaiPlayPlaylistIE to recent raiplay.it updates and instruct it about
ContentSet-s.
- Update a RaiIE test and remove two tests that are no longer availables
This fix issue #22923, #22906 and supersedes #23006.
deobfuscates the video URL using a reverse engineered version of KVS
player's algorithm. This was tested against version 4.0.4, 5.0.1 and
5.1.1.4 of the player and a warning will be issued if the major version
changes.