McCloudS / subgen

Autogenerate subtitles using OpenAI Whisper Model via Jellyfin, Plex, Emby, Tautulli, or Bazarr
MIT License
532 stars 48 forks source link

Add ability to iterate over existing media #18

Closed McCloudS closed 10 months ago

McCloudS commented 10 months ago

Added poor? implementation at the bottom of subgen.py

https://github.com/McCloudS/subgen/blob/8bedd6edf906b1c5a97304716e364ebedfbbd246/subgen/subgen.py#L300-L321

Takes a comma separated list of folders to check videos files to see if they need subtitles. It's threaded so everything else still runs. Webhooks get added to front of the queue, TRANSCRIBE_FOLDERS items get added to the end. Updated add_file_for_transcription to add an optional value of placing at front or back of queue.