]> code.delx.au - webdl/commitdiff
sbs: use alternate API
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 29 Mar 2019 09:54:29 +0000 (20:54 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 29 Mar 2019 09:54:29 +0000 (20:54 +1100)
sbs.py

diff --git a/sbs.py b/sbs.py
index 1d6324fade6bff512b8c06d2a7508df59ce8b833..55ded10edd3872f3e33927d9309dca7203f85d98 100644 (file)
--- 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)})