]> git.sthu.org Git - oe1archive.git/commitdiff
Fix URLs for specific broadcast
authorStefan Huber <shuber@sthu.org>
Sat, 3 Jan 2026 15:04:40 +0000 (16:04 +0100)
committerStefan Huber <shuber@sthu.org>
Sat, 3 Jan 2026 15:04:40 +0000 (16:04 +0100)
Fix wrong URL introduced by commit ba21947c.

oe1archive

index bd0cf6a7154f843e9bf605c335fbefa319110e24..4c2d33b3c60a25ccb559c9f9949e594d9e3e4a4b 100755 (executable)
@@ -226,7 +226,7 @@ class Archive:
         date = self.json[day]["day"]
         pk = broadcast_entry["programKey"]
 
-        burl = AUDIOAPI_API_URL + "broadcasts/%s/%d"
+        burl = AUDIOAPI_API_URL + "broadcast/%s/%d"
         try:
             bjson = read_json(burl % (pk, date))
         except Exception as e:
@@ -251,7 +251,7 @@ class Archive:
         date = self.json[day]["day"]
         pk = self.json[day]["broadcasts"][broadcast]["programKey"]
 
-        burl = AUDIOAPI_API_URL + "broadcasts/%s/%d"
+        burl = AUDIOAPI_API_URL + "broadcast/%s/%d"
         try:
             bjson = read_json(burl % (pk, date))
         except Exception:
@@ -313,7 +313,7 @@ class Archive:
                     try:
                         date = djson["day"]
                         pk = bjson["programKey"]
-                        burl = AUDIOAPI_API_URL + "broadcasts/%s/%d"
+                        burl = AUDIOAPI_API_URL + "broadcast/%s/%d"
                         bjson_full = read_json(burl % (pk, date))
                         description = bjson_full.get("description", "")
                         if description and rex.search(description) is not None: