Commit Graph

103 Commits

Author SHA1 Message Date
McCloudS
16c65c4f2f Update subgen.py 2024-02-10 21:58:10 -07:00
McCloudS
c0e34bb42b Fixed bool checks 2024-02-10 21:38:18 -07:00
McCloudS
bad2ec7e8b Update subgen.py 2024-02-10 21:27:02 -07:00
McCloudS
815a2dd04c Update subgen.py 2024-02-10 21:23:38 -07:00
McCloudS
b7aeef4773 Add message show if using faster-whisper or HF Transformers 2024-02-10 19:25:22 -07:00
McCloudS
9dec17feaf Fixed me handling ints and bools wrong in env variables. 2024-02-10 17:36:24 -07:00
McCloudS
849bc62d1b Update subgen.py 2024-02-10 16:05:56 -07:00
McCloudS
e4c02c5c6f Update subgen.py 2024-02-10 14:35:43 -07:00
McCloudS
5004321cb9 Update subgen.py
Added below suggestions from JaiZed (https://github.com/JaiZed/subgen)
check if existing SDH subtitle is there, added /batch endpoint, more elegant forceLanguage implementation.
2024-02-10 13:16:36 -07:00
McCloudS
f7b1bef2cc Update subgen.py
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.
2024-02-10 13:10:21 -07:00
McCloudS
e2dd80e3dd Update subgen.py 2024-02-09 10:14:57 -07:00
McCloudS
f663622deb Update subgen.py 2024-02-08 08:49:06 -07:00
McCloudS
269a54cbb6 Update subgen.py 2024-02-08 08:33:42 -07:00
McCloudS
9395a65a49 Update subgen.py
Re-added random import (whoops!)
2024-02-06 11:16:20 -07:00
McCloudS
e44dc365e9 Update subgen.py 2024-02-05 23:35:01 -07:00
McCloudS
743366b741 Update subgen.py 2024-02-05 22:59:04 -07:00
McCloudS
6259bd8018 Update subgen.py 2024-02-05 22:07:55 -07:00
McCloudS
0dc9b09e1d Update subgen.py 2024-02-05 21:08:22 -07:00
McCloudS
bfa281c1c4 Update subgen.py 2024-02-05 14:06:40 -07:00
McCloudS
eb3ebf8a74 Update subgen.py
Cleaned up imports
2024-02-05 13:49:26 -07:00
McCloudS
6b862cfaff Update subgen.py
removed rsplit to use platform independent os.path.splitext
2024-02-05 13:48:00 -07:00
McCloudS
02954e2f2a Update subgen.py 2024-02-05 13:39:54 -07:00
McCloudS
4cb836b80b Update subgen.py
Fixed removing failed items from the queue.
2024-02-05 13:29:17 -07:00
McCloudS
0447d6a805 Update subgen.py
Some error checking for transcribe_exiting()
2024-02-05 11:50:47 -07:00
McCloudS
6a17b1b935 Update subgen.py
Removed double is_video_file check.
2024-02-05 11:42:16 -07:00
McCloudS
ff8b465ebd Update subgen.py 2024-02-05 11:26:15 -07:00
McCloudS
1095b5c65e Update subgen.py
Changed delimintg character from ',' (comma) to '|' (pipe)
2024-02-05 11:00:45 -07:00
McCloudS
940f15fbc8 Update subgen.py 2024-01-28 12:55:24 -07:00
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