Extra PlutoTV - sub3/NextPVR GitHub Wiki
Pluto TV is an interesting service that can add 100's of stations to your NextPVR collection. Check https://pluto.tv/ to see what is in your country and if that interests you can try it out as follows
Download and install Streamlink from https://streamlink.github.io/install.html for your platform
Windows installs ensure you install for all users and copy "C:\Program Files (x86)\Streamlink\ffmpeg\ffmpeg.exe" to "C:\Program Files (x86)\Streamlink\bin"
Install python following these steps Get Python
The Pluto TV extra requires that you have the require python modules
-
Windows as Administrator run
pip install lxml requests
-
other platforms
sudo pip3 install lxml requests
Note: After installing applications will need to restart the NextPVR server to get the upgraded PATH
Download the following into the scripts sub-folder of the NextPVR data directory.
From there unzip the file which should create a new folder in scripts called plutotv.
-
For the Linux users you will need to ensure this folder is writable. Using the deb installer that would be
sudo chown nextpvr:nextpvr /var/opt/nextpvr/scripts/plutotv
The Pluto TV VOD extra requires an addition python module
-
Windows as Administrator run
pip install beautifulsoup4
-
other platforms
sudo pip3 install beautifulsoup4
The delayed Pluto TV xmltv-update [minutes] option requires
-
Windows as Administrator run
pip install psutil
-
other platforms
sudo pip3 install psutil
-
Install and clean cached information
-
Windows
python pluto.py reset-vod
-
Other platforms
sudo python3 pluto.py reset-vod
-
-
Configure genres and series for viewing
Reviewing Pluto TV On Demand https://pluto.tv/on-demand before and during the selection is highly recommended
Open the file in an editor like notepad or nano and toggle yes and no
a. pluto-vod-filter.lst This file contains genres and selection lists for movies
b. pluto-vod-series-filter.lst This file contains loads of old series of many types
-
Create the VOD file for NextPVR
-
Windows
python pluto.py vod
-
Other platforms
sudo python3 pluto.py vod
-
-
Repeat from Step 2 as neccessary
-
From time to time (or if streams aren't available) re-start from Step 1 (you can skip 2 when not modifying your preferences)
If you continue, at this stage I recommend backing up npvr.db3 since you could get more channels then you expect.
Change to scripts/plutotv and then run
-
Windows
python pluto.py install
-
Other platforms
sudo python3 pluto.py install
Pluto TV uses standard XMLTV updating in NextPVR
-
Window include the following in UpdateEPG.bat
python C:\Users\Public\NPVR-data\scripts\plutotv\pluto.py xmltv
-
In linux (deb version) include the following in UpdateEPG.sh file.
python3 /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv
-
Other installs wwill be platform specific
If you followed you will have lots of channels. I would review the channels in the various NextPVR Groups that were created and see which Groups interest you then in the file scripts/pluto/pluto-filter.lst change All=no and set all the groups you don't want to no as well. You may would to go back to your backup database at this point
Starting in NextPVR 5.1.1 sub added a feature to allow incremental updates to the EPG so only the Pluto EPG gets updated. This is important because there are only 4-6 hours of EPG updates so it needs to run more frequently
- For manual updates the new parameter is xmltv_update
Using this options the script downloads a new XMLTV file and then updates NextPVR for channels with the Pluto XMLTV source.
Additionally there a is on optional second parameter xmltv-update ### where ### is the minutes to wait for the update. This will automate the upload process. The following example does an update every 3 hours.
In PostLoadEPG add PostStartUp add the following
-
In Windows (.bat)
start /b "" python C:\Users\Public\NPVR-data\scripts\plutotv\pluto.py xmltv-update 180
-
For linux deb installer (.sh)
nohup python3 /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv-update 180 &
Notes:
- No updates will be scheduled over night (after 11pm or before 8am)
- After unzipping this file on Linux you likely will need to change the file permission of the folder eg. with the Debian installer
History
2024-08-01 Removed extra because of misuse
2024-05-16 Streamlink 6.7 zip)
2021-12-11 Added VOD zip)
2021-04-29 Initital release zip)