diff options
author | garret <garret@airmail.cc> | 2023-08-15 22:42:51 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-08-15 22:45:56 +0100 |
commit | 1f25017782f42dafcf1a7612fce8b28fe23ff76c (patch) | |
tree | bff0d671495ba73ed6907a8981abc5861e60ff42 /test_tokens.py | |
parent | 7700d64ab8f344c9d4b15d83bfe48b5914bf5461 (diff) | |
download | yt-dlp-rajiko-1f25017782f42dafcf1a7612fce8b28fe23ff76c.tar.gz yt-dlp-rajiko-1f25017782f42dafcf1a7612fce8b28fe23ff76c.tar.bz2 yt-dlp-rajiko-1f25017782f42dafcf1a7612fce8b28fe23ff76c.zip |
Add timefree availability check
afaict nhk doesn't have timefree, and it says as much on the programme pages
The download doesn't fail though, you just get a loop of elevator music
and an apology that it's not available (lasting the duration of the programme)
from tsDetail.js
tsInNg = playable in the area
tsOutNg = playable outside the area
(maybe - just a guess really, but seems to line up)
outside station area + playable in area + not playable outside = not available in your area
outside station area + not playable in area + not playable outside area = not available on timefree
inside station area + not playable in area = not available on timefree
we'll always be in the station area, so we only have to check tsInNg
included a message about NHK Radiru because so far i've only seen NHK programmes
be unavailable
one day i should make the programme_meta func return a dict or something
instead of just adding stuff on the end ad infinitum
closes #15
Diffstat (limited to 'test_tokens.py')
0 files changed, 0 insertions, 0 deletions