Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About plexgeneratefolderlist and plexrefreshfolderlist #7

Open
memnos opened this issue Mar 6, 2017 · 14 comments
Open

About plexgeneratefolderlist and plexrefreshfolderlist #7

memnos opened this issue Mar 6, 2017 · 14 comments

Comments

@memnos
Copy link

memnos commented Mar 6, 2017

Hi,
i have some questions about script in object.
I have to run first plexgeneratefolderlist and second plexrefreshfolderlist.
This should tell plex to scan only new folder. Right?
But what if i add a file in a folder that already exists?
I think about SerieTv Folder, when i add an episode in Season Folder.
Tnx

@ajkis
Copy link
Owner

ajkis commented Mar 6, 2017

Basically first script checks what new folders are being uploaded and 2nd script preforms plex scan.
It does not matter if folder already exist it will be rescanned.

For series it will again scan for example Season 03 since there was new file that was uploaded in it.

@memnos
Copy link
Author

memnos commented Mar 6, 2017

I think i made all modifcations to plexgeneratefolderlist, i run it with no errors, but it seems it made nothing.
How can i know if it worked.
I see no log and no files in .cache

@ajkis
Copy link
Owner

ajkis commented Mar 7, 2017

The easiest was is to run 2nd script manually you will see GUI msgs from plex scanner

@memnos
Copy link
Author

memnos commented Mar 7, 2017

Mmmh,
i don't understand whan is folder REPLACEDPATH in plexgeneratefolderlist.

I have my remote mount folder that i put in PATHACD
The folder where i put my new files to be uploaded in PATHREPLACE

Right?

@ajkis
Copy link
Owner

ajkis commented Mar 7, 2017

no the REPLACEDPATH is meant when source from where you rclone upload files dont match the location where plex is keeping library ie using unionfs.

Just check the generated plex.list and is the path to folders correct ?

@memnos
Copy link
Author

memnos commented Mar 7, 2017

i don't know why but when i run script plexgeneratefolderlist
nothing happens.
No log file.
No .list file.
It seems it is doing nothing.

i post the script here, can you see anything wrong?

plexgeneratefolderlist.txt

@ajkis
Copy link
Owner

ajkis commented Mar 7, 2017

Where is your Plex Library stored ?
I see you are replacing same path for same path ?

Is it possible something is wrong with your permissions, can you test
touch /root/.cache/TimeStamp-plex.list under same user you run the script.

@memnos
Copy link
Author

memnos commented Mar 7, 2017

With command touch /root/.cache/TimeStamp-plex.list the file is created.
My plex library is:
/var/lib/plexmediaserver/Library

What do you mean with:
I see you are replacing same path for same path ?

Tnx

@ajkis
Copy link
Owner

ajkis commented Mar 7, 2017

Where do you keep your movies / series ?

@memnos
Copy link
Author

memnos commented Mar 7, 2017

My gdrive movie and Serie_Tv is mounted in
/media/google_crypt/crypt/
So i have /media/google_crypt/crypt/Movies and /media/google_crypt/crypt/Serie_Tv
While after downloads i copy files in /home/fabio/upload in their own folder as i want to be moved to gdrive white your script:
rclone-upload.cron

@ajkis
Copy link
Owner

ajkis commented Mar 7, 2017

The 2nd script is already upload script you cant use both.

Use this one that i changed to use proper paths: http://pastebin.com/KLqt0Z9E

@memnos
Copy link
Author

memnos commented Mar 7, 2017

There must be something wrong.
I used your script http://pastebin.com/KLqt0Z9E, but nothing happens.

Here is what i see:
bash -x ./plexgeneratefolderlist

  • pidof -o %PPID -x ./plexgeneratefolderlist
  • LOGFILE=/root/logs/local2acdcrypt.cron.log
  • readarray -t UPLOAD
    ++ find /home/fabio/upload/ -mindepth 1 -type f -mmin +15 -not -path '/.' -not -iname '.partial'
  • [[ -n '' ]]
  • exit

@ajkis
Copy link
Owner

ajkis commented Mar 7, 2017

what OS are you using ?

did you chmod a+x scriptname

@memnos
Copy link
Author

memnos commented Mar 7, 2017

Ubuntu.

Yes, file is executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants