瀏覽代碼

fix sync_series

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')