Git Product home page Git Product logo

Comments (9)

Dulanic avatar Dulanic commented on May 26, 2024

Have you tried unmount and remount? Also, for plexdrive issues, I would refer to that programs issues. https://github.com/dweidenfeld/plexdrive

But as an idea, you may want to alter the script and change the code in cloudupload to move instead of copy then it will do it all for you and delete the file.

Should just be changing line 65 from
"${rclone_bin}" copy
to
"${rclone_bin}" move

Another idea might be to use https://github.com/rvoicilas/inotify-tools to fire off the cloudupload whenever a new files gets added? I don';t do it, but it's an idea.

from cloud-media-scripts.

lowprofileusername avatar lowprofileusername commented on May 26, 2024

Thanks for your answer.
Remove files is not the problem. as you 've mention the solution as well I can also use /root/cloud-media-scripts/scripts/rmlocal to remove it.

My main question is how to keep /root/cloud-media-scripts/.cloud-decrypt up to date as file already been change on google drive. Say googledrive /Media has newly added one file. but When I check /root/cloud-media-scripts/.cloud-decrypt there still nothing in it. or does it have some sort of cache and need to be refreshed in a certain way.

I do believe unmount and remount would solve the problem but that's not the perfect way to solve the problem.

"Rclone is used to encrypt, decrypt and upload files to the cloud. Rclone is used to mount and decrypt Plexdrive to a different folder (cloud_decrypt_dir). Rclone encrypts and uploads from a local folder (local_decrypt_dir) to the cloud."

btw, isn't Rclone that mounted drive to cloud_decrypt_dir instead of plexdrive? Also what does ${media_dir}/.cloud-encrypt do? when I enter this folder it list root of my google drive. what is it use for?

Best Regards.

from cloud-media-scripts.

Dulanic avatar Dulanic commented on May 26, 2024

The cache is all done through plexdrive, there may be a delay or some other settings you can change to get it updated faster but I am not sure what it may be. madslundt may know, but I am not sure off hand. I did test a manual upload myself and it does not show right away for me either. It is plexdrive cache thing, just not sure why.

EX: I uploaded 75113f82ad1a461ba9d628d69400471f.mkv...

If I do find . -name 75113f82ad1a461ba9d628d69400471f.mkv I get no results but if I do rclone I see it.

sudo rclone ls gd-crypt: | grep 75113f82ad1a461ba9d628d69400471f.mkv
2534592468 75113f82ad1a461ba9d628d69400471f.mkv

FYI, it did show up in plex drive within 10 minutes. Also, dont recommend ls grep to find a file if you have many many TB of data lol just earned myself a API ban.

from cloud-media-scripts.

lowprofileusername avatar lowprofileusername commented on May 26, 2024

Sorry for causing that ban for you.

I tried replace plexdrive with 5.0 instald of 4.0 to it if it would update the cache more quickly. however because of MongoDB replaced by BoltDB the script does not work.

Do you have time for a update version of script that use plexdrive 5.0?

thanks

from cloud-media-scripts.

Dulanic avatar Dulanic commented on May 26, 2024

from cloud-media-scripts.

lowprofileusername avatar lowprofileusername commented on May 26, 2024

in order to run 5.0 I need to make some change.
So everything is ok but I have problem edit mount.remote script.
I have to execute
/root/cloud-media-scripts/plexdrive/plexdrive-linux-amd64 mount -c /root/cloud-media-scripts/plexdrive/.plexdrive -o allow_other /root/cloud-media-scripts/.cloud-encrypt
before I run mount.remote because I dont know how to modify
screen -dmS plexdrive "$plexdrive_bin" --config="${plexdrive_dir}" $mongo $plexdrive_options "${cloud_dir}"
in a proper way. Can you lend me a hand?

I tried with screen -dmS plexdrive "$plexdrive_bin" mount -c "${plexdrive_dir}/.plexdrive" $plexdrive_options "${cloud_dir}"
but it doesn't work.

Thank you very much

from cloud-media-scripts.

Dulanic avatar Dulanic commented on May 26, 2024

Check those values in config file, thats where you need to change the options and dir etc... plex_dir etc... all comes from cloud-media-scripts/config.

from cloud-media-scripts.

madslundt avatar madslundt commented on May 26, 2024

@lowprofileusername you are of course welcome to create a PR with Plexdrive v5 that I can merge into a new branch, so it will separate v5 and v4. Some users have asked for Plexdrive v5 so when I get the time I'll see if I can do something about it and make the install to install v5 if the user wants it.
The reason that I want to stay with v4 is because v5 only uses memory cache

from cloud-media-scripts.

lowprofileusername avatar lowprofileusername commented on May 26, 2024

I'm willing to contribute something here. But I'm not good at coding. I will post what I did here. so others can make a v5 script base on it.

  1. comment out all the string related to mongo in setup.sh since v5 do not need it anymore.

2.change _plexdrive_url from 4.0.0 to 5.0.0 in setup.sh.

3.plexdrive_options= in config remove --temp=${plexdrive_temp_dir} --clear-chunk-max-size=300G --clear-chunk-age=24h --chunk-size=10M since it store small chunk in memory and release very quickly according to manual.

  1. make change for mount.remote script.
    screen -dmS plexdrive "$plexdrive_bin" mount --config="${plexdrive_dir}" $plexdrive_options "${cloud_dir}" by add mount .

that's all the thing I can remember for what I did to make 5.0.0 work with the script. Maybe something is missing here:P

btw . this maybe a little bit off topic. but how long did you guys wait for ""Libraries are currently being updated" " when you add a google drive mount folder as libary? seems something wrong with my settings. with only one movie it takes forever to upload. seems permissions problem.

from cloud-media-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.