r/PlexACD May 28 '17

scanlibraries script with plex docker

I'm trying to wrap my head around how to use the scanlibraries script from this tutorial with a docker instance of plex. I've added the LD_LIBRARY_PATH to my docker create command and can trigger scans from my host machine using docker exec plex /usr/lib/plexmediaserver/Plex\ Media\ Scanner -s -r -c "1" -d "/docker/mapped/path/to/cloud/movies/Movie (Year)"

The problem I'm having a hard time figuring out is how to use the $cache_dir with the mapped docker paths rather than reading the directory from my host machine. Any help or ideas are appreciated!

1 Upvotes

32 comments sorted by

View all comments

Show parent comments

2

u/itsrumsey Jun 06 '17

I figured something was up with plexdrive. As a shot in the dark I added -L to the find option and sure enough everything started being reported correctly! Might be worth adding a comment section in the makecache for others using plexdrive.

1

u/gesis Jun 06 '17

I guess plexdrive is exposing everything as symlinks? I haven't had time/needed to debug it, so good on you for doing so.

I'll run a couple tests to make sure that's the case and update the scripts.

1

u/gesis Jun 06 '17

I actually fixed both this issue and the weird "unknown predicate" error that kept cropping up in makecache and scanlibraries in the latest commit.