-
Notifications
You must be signed in to change notification settings - Fork 22
Linux Setup and Update
Peter Brink edited this page May 30, 2019
·
5 revisions
These instructions are for Ubuntu. Should also work with Debian or any debian based os. If you run the script python will tell you what modules are missing and you can google what you need for your installation. Please create an issue if this happens so I can fix it.
Install pip:
sudo apt-get install python3 python3-pip
Upgrade pip
sudo pip3 install --upgrade pip
Clone the repository. Be in a place where you want the folder to reside.
git clone https://github.com/pbrink231/plex_top_playlists.git
cd plex_top_playlists
Install needed pip modules:
sudo pip3 install -r requirements.txt
cp settings.ini.example settings.ini
nano settings.ini
Fill out the required information
- Plex Token CTRL+X then y to save and exit
Make the Script executable.
sudo chmod +x plex_playlist_update.py
Run the script
python3 ./plex_playlist_update.py run
To see available commands, run it without any arguments or help
python3 ./plex_playlist_update.py help
Go into the plex_top_playlist folder
git pull
Update requirements
pip3 install -r requirements.txt --upgrade
crontab -e
Add this line to the bottom of the file (will run at 4:05 am every day)
5 4 * * * python3 /usr/scripts/plex_playlist_update.py run