McCloudS / subgen

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

Hope can also automatically skip ASS subtitle files #106

Closed Aliang-code closed 2 months ago

Aliang-code commented 2 months ago

lots of the subtitle available online are format use ass. so hope can just add this

    elif skipifexternalsub and os.path.exists(get_file_name_without_extension(file_path) + f".{namesublang}.ass"):
        message = f"{file_path} already has an external {namesublang} subtitle created for this, skipping it"
McCloudS commented 2 months ago

Fringe case, but I added it. I've literally never had a .ass downloaded from on online source (outside of it being bundled with the file).

https://github.com/McCloudS/subgen/commit/6029745329cb63ea0f681681e35dfdc53dbc4bdb