From 4be93f9f4ba88380b1ca88aceb2b950fc5888c17 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Fri, 29 Mar 2019 20:54:29 +1100 Subject: [PATCH] sbs: use alternate API --- sbs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbs.py b/sbs.py index 1d6324f..55ded10 100644 --- a/sbs.py +++ b/sbs.py @@ -5,7 +5,7 @@ import json import sys BASE = "https://www.sbs.com.au" -FULL_VIDEO_LIST = BASE + "/api/video_search/v2/?m=1&filters={section}{Programs}" +FULL_VIDEO_LIST = BASE + "/api/video_feed/f/Bgtm9B/sbs-section-programs/" VIDEO_URL = BASE + "/ondemand/video/single/%s" NS = { @@ -77,7 +77,7 @@ class SbsRootNode(SbsNavNode): def load_all_video_entries(self): offset = 1 - amount = 50 + amount = 1000 uniq = set() while True: url = append_to_qs(FULL_VIDEO_LIST, {"range": "%s-%s" % (offset, offset+amount-1)}) -- 2.39.2