Extra PlutoTV - sub3/NextPVR GitHub Wiki

Pluto TV Extra

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

Steps to install

Install Streamlink

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 and Python modules

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

Install the PlutoTV Extra

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
    

Install the PlutoTV VOD Extra (Optional)

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
    
  1. Install and clean cached information

    • Windows

      python pluto.py reset-vod

    • Other platforms

      sudo python3 pluto.py reset-vod

  2. 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

  3. Create the VOD file for NextPVR

    • Windows

      python pluto.py vod

    • Other platforms

      sudo python3 pluto.py vod

  4. Repeat from Step 2 as neccessary

  5. From time to time (or if streams aren't available) re-start from Step 1 (you can skip 2 when not modifying your preferences)

You may not need to continue as most files from Pluto are available on Demand.

Install the PlutoTV Live TV Extra (Optional)

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
    

Install the PlutoTV EPG

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

Configure channels

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

Configure incremental EPG update

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)
  1. 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)

⚠️ **GitHub.com Fallback** ⚠️