Code Monkey home page Code Monkey logo

Comments (14)

ajkis avatar ajkis commented on September 18, 2024

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.

from scripts.

memnos avatar memnos commented on September 18, 2024

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

from scripts.

ajkis avatar ajkis commented on September 18, 2024

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

from scripts.

memnos avatar memnos commented on September 18, 2024

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?

from scripts.

ajkis avatar ajkis commented on September 18, 2024

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 ?

from scripts.

memnos avatar memnos commented on September 18, 2024

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

from scripts.

ajkis avatar ajkis commented on September 18, 2024

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.

from scripts.

memnos avatar memnos commented on September 18, 2024

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

from scripts.

ajkis avatar ajkis commented on September 18, 2024

Where do you keep your movies / series ?

from scripts.

memnos avatar memnos commented on September 18, 2024

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

from scripts.

ajkis avatar ajkis commented on September 18, 2024

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

from scripts.

memnos avatar memnos commented on September 18, 2024

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

from scripts.

ajkis avatar ajkis commented on September 18, 2024

what OS are you using ?

did you chmod a+x scriptname

from scripts.

memnos avatar memnos commented on September 18, 2024

Ubuntu.

Yes, file is executable.

from scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.