McCloudS / subgen

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

How do I mount multiple drives? #59

Closed terrificobjects closed 4 months ago

terrificobjects commented 4 months ago

Hi,

So currently, I have Plex installed on Windows. I have Whisper ASR webservice installed in Docker. I use Bazarr, but I'd like to implement and play with this a bit.

That being said, I have multiple drives. All of them have a "Media" folder in them with subfolders "TV Shows", "Anime", "AnimeMovies", "Movies" and "Music". Plex is mapped to use TV Shows library with all of the "TV Shows" folders present inside "Media" on each drive.

So my question is how would I map this setup to a subgen Docker container in docker-compose.yml?

Thanks in advance for any help. Not sure if this is the right place for this.

McCloudS commented 4 months ago

Are you using this to replace the whisper-asr webhook in Bazarr (which it can do), or to use the plex webhook? Is your docker on the same Windows machine or a separate Linux machine?

terrificobjects commented 4 months ago

Holy cow you responded fast! My hope was to use the Plex webhook to try to look for subtitles on media play and media resume Plex events. Docker/Docker Desktop is running on the same Windows machine as Plex Media Server, Bazarr, Tautulli, Whisper ASR docker container and the other stuff like Sonarr, etc., and I am using WSL-Ubuntu on WSL2. I can see my drives in WSL2 as /mnt/d, /mnt/e, /mnt/g and so on.

Edit: Adding a visual example of the "TV Shows" library in Plex and the folder setup.

image

McCloudS commented 4 months ago

To be honest, as it stands, I don’t think the docker container can exactly do what you want. I didn’t really account for translating file paths from Linux to Windows. You would use path mapping, but I don’t have it set up to take multiple path substitutions. If Plex was also in your docker, it would work with little configuration.

The simplest way would be to run the script in standalone mode (without Docker) on Windows.

terrificobjects commented 4 months ago

That's not a problem at all. I'll try the standalone mode. Thanks for the quick help!