Added below suggestions from JaiZed (https://github.com/JaiZed/subgen)
check if existing SDH subtitle is there, added /batch endpoint, more elegant forceLanguage implementation.
Added some suggestions from JaiZed (https://github.com/JaiZed/subgen)
Added a check if existing SDH subtitle is there, added /batch endpoint, more elegant forceLanguage implementation.
Added some warning messages if you try to access webhooks via GET (Browsers or wget for example) instead of how you're supposed to. Can also be used to troubleshoot network stuff a bit.
Adjusted indentation in the webhook receiver to correctly fall back to a
warning message when receiving a misconfigured webhook. Also, updated
metadata refresh function to construct the request URL dynamically,
allowing for more robust handling of server addresses, including those
served over HTTPS. These changes ensure better user feedback and improve
compatibility with secure Plex server configurations.
Added metadata refresh capability immediately after subtitle generation
when handling Plex webhooks. If subtitle generation is successful, the
Plex item's metadata is attempted to be refreshed to ensure that the
updates are reflected. The change includes robust error handling to log
failures in refreshing metadata and alerts the user if the webhook is
misconfigured. This enhancement improves the overall user experience by
ensuring the media library is up-to-date after any subtitle changes.
Significant housekeeping.
* Cleaned up logging to not spam as much
* Move from Flask to FastAPI/uvicorn
* Added some garbage collection vram clearing for GPUs when not transcoding