Commit Graph
125 Commits
Author SHA1 Message Date
McCloudS 516f58d62c Update subgen.py 2024-01-28 11:40:50 -07:00
McCloudS f02cb3d870 Update subgen.py
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.
2023-12-21 08:48:40 -07:00
McCloudS 2ba2357202 Update subgen.py
Added metadata refresh for Jellyfin
2023-12-19 12:35:50 -07:00
Rikiar 02c97f1535 Fix indentation for Plex webhook error message 2023-12-19 12:26:46 +01:00
Rikiar 5c5fe8d114 Improve webhook error handling and URL building
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.
2023-12-19 11:55:54 +01:00
Rikiar f41ef2d740 Refine Plex metadata key usage for refresh 2023-12-18 23:28:15 +01:00
Rikiar 113e0a203c Enhance post-webhook metadata handling
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.
2023-12-18 16:51:45 +01:00
McCloudS 353b27cd98 Update subgen.py 2023-11-21 08:04:39 -07:00
McCloudS 7ae5f72d5d Update subgen.py
Fixed error/logging issue.
2023-11-11 09:16:16 -07:00
McCloudS 5bd8b57408 Update subgen.py 2023-11-04 12:01:54 -06:00
McCloudS 1b86ef6d4f Update subgen.py 2023-11-02 22:20:35 -06:00
McCloudS be5869ca7b Update subgen.py 2023-11-02 22:07:12 -06:00
McCloudS 942c11bc0e Update subgen.py 2023-10-31 10:14:01 -06:00
Ellison Patterson ce476bbe7c Update subgen.py
Set model to none rather than deleting it to avoid raising a NameError exception
2023-10-31 11:08:53 -04:00
McCloudS 59802f9e01 Update subgen.py
Added ASR webhook for Bazarr
2023-10-31 01:23:41 -06:00
Ellison Patterson b4e46d22f0 Update subgen.py
Fixed variable typo
2023-10-30 15:01:16 -04:00
McCloudS 6177d17965 Update subgen.py 2023-10-30 10:46:40 -06:00
McCloudS a47cd332db Update subgen.py
More housekeeping
2023-10-28 23:15:22 -06:00
McCloudS 6850829574 Update subgen.py
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
2023-10-28 22:57:29 -06:00
McCloudS 42bf55f203 Update subgen.py
Cleaned up garbage collection so vram is released when the transcode queue is empty.
2023-10-26 22:57:14 -06:00
McCloudS 40d3bf9aec Update subgen.py 2023-10-26 09:27:35 -06:00
McCloudS f1d42c7776 Update subgen.py 2023-10-26 09:23:00 -06:00
McCloudS 715cd279e6 Update subgen.py
Fixed UnboundLocalError: cannot access local variable 'jellyfin_userid' where it is not associated with a value
2023-10-25 23:59:20 -06:00
McCloudS a6bd06249e Update subgen.py 2023-10-25 23:33:59 -06:00
McCloudS 1a9526978c Update subgen.py
Cleaned up transcribe_existing treading, moved some prints that were spamming into logging.debug.
2023-10-25 23:31:54 -06:00
McCloudS 8bedd6edf9 Update subgen.py 2023-10-25 22:47:42 -06:00
McCloudS 93fbf5e764 Update subgen.py 2023-10-25 21:30:28 -06:00
ManifestFailure 43233a528f Changed jellyfin API call
Changed the jellyfin API call to get the admin user id to use for all subsequent requests.
2023-10-25 18:10:36 +08:00
McCloudS 6a919de1d4 Update subgen.py 2023-10-24 00:53:50 -06:00
McCloudS 2b949531ce Update subgen.py 2023-10-24 00:42:50 -06:00
McCloudS 492ae4d4ca Update subgen.py
Added Jellyfin and refactored/cleaned up to make it a bit easier to add new integrations.
2023-10-24 00:34:56 -06:00
McCloudS 9cb6230f0d Update subgen.py 2023-10-23 13:28:09 -06:00
McCloudS dadb5d760a Update subgen.py 2023-10-23 13:24:51 -06:00
McCloudS 0e4396b88e Revert "Optimize image recreation by caching pip install" 2023-10-23 12:11:01 -06:00
Matthew Chellew 8c290d3845 Create requirements.txt 2023-10-23 14:35:00 +03:00
McCloudS 84c126e766 Update subgen.py 2023-10-23 00:48:58 -06:00
McCloudS 58e218d255 Update subgen.py 2023-10-22 23:59:10 -06:00
McCloudS 2cd7cb33b2 Update subgen.py 2023-10-22 23:56:43 -06:00
McCloudS 6e47d81a9e Delete subgen/Dockerfile 2023-10-22 23:45:13 -06:00
McCloudS 8c1647413c Update subgen.py 2023-10-22 14:18:00 -06:00
McCloudS e9708555c5 Update subgen.py 2023-10-22 12:19:48 -06:00
McCloudS 5777c7d0d7 Update subgen.py 2023-10-19 16:32:27 -06:00
McCloudS 82fb0126f8 Update subgen.py 2023-10-19 16:12:04 -06:00
McCloudS 44eb52b62b Update subgen.py 2023-10-19 14:00:39 -06:00
McCloudS bad9b760c7 Update Dockerfile
And we're back!  Uses faster-whisper and stable-ts.  Shouldn't break anything from previous settings, but adds a couple new options that aren't documented.
2023-10-19 01:09:39 -06:00
McCloudS b1aad9b8bb Update subgen.py
And we're back!  Uses faster-whisper and stable-ts.  Shouldn't break anything from previous settings, but adds a couple new options that aren't documented.
2023-10-19 01:08:58 -06:00
McCloudS 49dca592be Update subgen.py
Giant fail, reverting back
2023-10-19 00:52:16 -06:00
McCloudS d16121070c Update subgen.py
Updating to user stable-ts and faster-whisper.
2023-10-19 00:47:16 -06:00
McCloudS 99aa6fd8be Update subgen.py 2023-02-02 11:34:48 -07:00
McCloudS facacd5008 Update subgen.py 2023-02-02 11:26:06 -07:00