Hey folks,
I've been using the filebot AMC script which works absolutely fantastic. One issue I have is that for some reason the call to tell Plex to update doesn't seem to be reliable. Sometimes it seems to work, other times it does not.
My token is right, I've cleared filebot cache but it still seems to not cause the refresh once in a while. Any ideas what could be the cause for this? If I do a simple wget to the same URL that filebot attempts to reach based on the logs then my library will refresh. Is it possible that this is some sort of timing issue?
Thanks!
Plex update not reliable
Re: Plex update not reliable
If FileBot makes that HTTP request, and there's no error, that means that Plex got the command. At that point it's a Plex issue.
I don't think there's any race condition, since FileBot will only call Plex once all files have been processed.
I don't think there's any race condition, since FileBot will only call Plex once all files have been processed.
Re: Plex update not reliable
I think I know what the issue might be.
When the script runs it is run through sabnzbd, sabnzbd does this weird thing with permissions on files where it only has permission to read the files. This is probably why Plex isn't picking them up.
Is there anyway to make the file part of a group or give an octal permission prior to the call being made to Plex?
When the script runs it is run through sabnzbd, sabnzbd does this weird thing with permissions on files where it only has permission to read the files. This is probably why Plex isn't picking them up.
Is there anyway to make the file part of a group or give an octal permission prior to the call being made to Plex?
Re: Plex update not reliable
Well looking at it further. It definitely seems that Filebot will create its directories with permission 700 and the owner will be whatever was running the script e.g. sabnzbd. Using wget for now after I run a script to fix the permissions. I'd use ACL's but they are not supported by NFS.
Here is my cleanup script for anyone wondering.
Here is my cleanup script for anyone wondering.
Code: Select all
find /mnt/media/Movies -type d -exec chmod 775 {} +
find /mnt/media/Movies -type f -exec chmod 644 {} +
find /mnt/media/Movies -exec chgrp media {} +
wget -q --spider http://127.0.0.1:32400/library/sections/all/refresh?X-Plex-Token=yourtoken
Re: Plex update not reliable
You can use --def exec if you want to call a command on processed files, e.g. chown. Also, running the amc script with the right user, and setting the default umask, might help as well.
Re: Plex update not reliable
The default umask you are referring to is OS level or FileBot level? If I use the --def exec does that happen before or after the plex call?rednoah wrote:You can use --def exec if you want to call a command on processed files, e.g. chown. Also, running the amc script with the right user, and setting the default umask, might help as well.
Re: Plex update not reliable
1.
OS-level umask. FileBot has no such concept.
2.
Before, I suppose? Try and see what the console output says.
OS-level umask. FileBot has no such concept.
2.
Before, I suppose? Try and see what the console output says.