Commit Graph

107 Commits

Author SHA1 Message Date
McCloudS
8b988f976a Update subgen.py 2024-03-04 06:33:13 -07:00
McCloudS
da45918f76 Update subgen.py 2024-03-04 06:13:15 -07:00
McCloudS
8a31a12c3c Update subgen.py 2024-03-04 06:12:38 -07:00
McCloudS
9188e4f276 Fixed path mapping for Windows paths? 2024-03-03 08:10:49 -07:00
McCloudS
61a68db71b Update subgen.py 2024-02-29 17:28:19 -07:00
McCloudS
097de8d462 Update subgen.py 2024-02-19 23:21:10 -07:00
McCloudS
7e9b87c800 Update subgen.py 2024-02-19 23:12:30 -07:00
McCloudS
7ebbf47cc9 Update subgen.py 2024-02-19 22:58:12 -07:00
McCloudS
bd9dd9f29e Update subgen.py
Added APPEND (From JaiZed).  Will add f"Transcribed by whisperAI with faster-whisper ({whisper_model}) on {datetime.now()}" at the end of a subtitle.
2024-02-11 14:57:09 -07:00
McCloudS
710567c32a Update subgen.py 2024-02-11 12:56:06 -07:00
McCloudS
51d3fc9d3e Update subgen.py 2024-02-11 12:48:05 -07:00
McCloudS
6a7f40193d Update subgen.py 2024-02-11 12:45:31 -07:00
McCloudS
b15a42e445 Update subgen.py 2024-02-11 12:19:55 -07:00
McCloudS
202a4d10e7 Update subgen.py 2024-02-10 23:37:36 -07:00
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