Przeglądaj źródła

fix sync_series

Karl 1 rok temu
rodzic
commit
ffc01d1b50
1 zmienionych plików z 2 dodań i 1 usunięć
  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')