-
Notifications
You must be signed in to change notification settings - Fork 40
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
Crontab -e (Ubuntu) not working with auto update library code #80
Comments
python3 not python copy paste it and well done edit the name of the folder python-plexlibrary in the script and it will works withoutany problems
|
in your case here
with fixed apth from python-plexlibrary to pydpl beware all recipes under python-plexlibrary/recipes |
Thanks so much, I’ll have a play this weekend. |
Great, I’ll have a stab at that 👍 |
Hey man, I've had a stab and I think I've failed. I've googled around over the weekend but couldn't get it to run. The bash file is located `#!/bin/bash Title: Cloudbox: Python-PlexLibrary Helper ScriptAuthor(s): desimaniacURL: https://github.com/cloudbox/cloudbox--Part of the Cloudbox project: https://cloudbox.works######################################################################### GNU General Public License v3.0######################################################################### CUSTOM SCRIPT WITH CRONATB AUTO ADD######################################################################### ###dont edit below !!! sudocheck() { plexpython() { for file in ${FOLDER}/pydpl/recipes/auto/* I feel like I'm missing something obvious, hence I'm hoping that you'll spot it. Sorry for the hassle! |
The error message I'm getting is: `Traceback (most recent call last): Running the recipe 'tv_trending' It would seem like the database isn't being identified correctly - yet if I run these recipes individually then they work fine... |
Solved. For anyone else having this issue I downgraded the python version to 2.7. |
When moving between python2 and python3 (or rather, different versions of shelve), you have to first delete the shelve file. python2 is no longer supported, you may run into other issues in the future. |
I use the following line of code to run a library scan and update of the TV Trending library
cd /opt/appdata/pydpl/&& sudo python plexlibrary tv_trending
- this works perfectly.In sudo crontab -e, I have entered:
@daily cd /opt/appdata/pydpl/&& sudo python plexlibrary tv_trending
- however crontab does not seem to be running this script and I am having to do this manually.Please could someone advise what I'm doing wrong?
The text was updated successfully, but these errors were encountered: