Update subgen.py

Fix refresh item path for jellyfin per https://api.jellyfin.org/#tag/ItemRefresh/operation/RefreshItem .
This commit is contained in:
Samir Jafferali
2024-03-20 05:48:36 -07:00
committed by GitHub
parent 48fd9e3eb4
commit 43c0c76299

View File

@@ -546,7 +546,7 @@ def refresh_jellyfin_metadata(itemid: str, server_ip: str, jellyfin_token: str)
""" """
# Jellyfin API endpoint to refresh metadata for a specific item # Jellyfin API endpoint to refresh metadata for a specific item
url = f"{server_ip}/library/metadata/{itemid}/refresh" url = f"{server_ip}/Items/{itemid}/Refresh"
# Headers to include the Jellyfin token for authentication # Headers to include the Jellyfin token for authentication
headers = { headers = {