Karl пре 1 година
родитељ
комит
ffc01d1b50
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      auto_subtitle/utils/bazarr.py

+ 2 - 1
auto_subtitle/utils/bazarr.py

@@ -39,4 +39,5 @@ def sync_series():
     }
 
     response = requests.request("POST", url, headers=headers, data=payload)
-    return response.json()['data'][0]
+    if response.status_code == 204:
+        print('Updated Bazarr')