-
Notifications
You must be signed in to change notification settings - Fork 20
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-pipUpgrade pip
sudo pip3 install --upgrade pipClone 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_playlistsInstall needed pip modules:
sudo pip3 install -r requirements.txtcp settings.ini.example settings.ini
nano settings.iniFill out the required information
- Plex Token CTRL+X then y to save and exit
Make the Script executable.
sudo chmod +x plex_playlist_update.pyRun the script
python3 ./plex_playlist_update.py runTo see available commands, run it without any arguments or help
python3 ./plex_playlist_update.py helpGo into the plex_top_playlist folder
git pullUpdate requirements
pip3 install -r requirements.txt --upgradecrontab -eAdd 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