chadwpalm / PrerollPlus

Dynamic Plex Preroll Manager and Scheduler
GNU General Public License v3.0
9 stars 0 forks source link

Preroll Media path issues #3

Closed saskskrat closed 1 week ago

saskskrat commented 2 weeks ago

I have a windows machine running all of my Arrs and Preroll Plus.

the Prerolls and PLEX are stored/running on a Synology NAS, I installed Preroll Plus natively on the Windows machine, and have set the location of preroll media using the ip of the nas in the path, "\192.168.128.62\Data\PLEXTRAS\Prerolls"

the Plex location of preroll media is greyed out and cannot be edited - as I had installed natively.

When it is triggered the path of the files are saved in plex with the full path of each file, whereas it works properly when the path is saved as \volume1\DATA\PLEXTRAS\Prerolls\filename.mp4

chadwpalm commented 2 weeks ago

Yeah, the way it currently is setup for native installs it is assuming that the installation of Preroll Plus is on the same machine as Plex, so the idea was that when it built the path to be used in Plex it would use the same root folder as where Preroll Plus also saw the files. It was an attempt to avoid confusion.

I knew there would be issues with users putting Preroll Plus on a different machine, but figured it would be a rare occurrence and was going to address it down the road.....but you've proven me wrong :)

I suppose what I can do is just leave the Plex location of preroll media ungrayed for native installs and make it clear in the docs that building of the Plex path on the backend is going to be based on that location and not the same location Preroll Plus sees the files. I probably should have just done that in the first place.

So the scenarios would be:

Preroll Plus on same machine as Plex: Both the location of the prerolls as Preroll Plus sees them and as Plex sees them will be the same and both entries will be identical.

Preroll Plus NOT on the same machine as Plex: The location as Preroll Plus sees the preroll media will be different than where Plex sees them, so the two entries will also be different.

In both scenarios, the backend will build the path based on the location Plex sees the files. This shouldn't break how it currently works for Docker containers.

Does this seem like it would work for you? I'm currently finishing up work on another feature/fix, but I can probably have this ready for you by later this evening (California time).

chadwpalm commented 2 weeks ago

I just pushed an update v0.1.3 into the develop branch. This update should give you what you need for it to work properly in Native install. The "Plex location of preroll media" shouldn't be grayed out anymore and that will be the root location of your preroll files as Plex sees them and what gets propagated into the Preroll path in the Plex settings.

Go ahead and try it out and let me know if this is the solution you were looking for.

Chad

saskskrat commented 1 week ago

That allowed me to get it working. Thanks!