pmg for plex

windows PMS IPTV tutorial

Anywhere!

A live TV iptv M3U generator for PLEX

This is a web scraper that locates internet streams and combines them into a nice neat m3u file that has been optimized for use in PLEX!

Quality control freaks, please, stay away. You will be disappointed.

These are low quality and mono but it's a neat project.

*Live TV with Web Player and Windows Apps are broken in latest PMS. Known Issue. Use PMS 1.16.XXX. (Devices, i.e. Roku, Android, iOS are not affected.)*

Prerequisites for this tutorial:

Windows 10 (1903 build)

(Works on other builds & OSs but I have not tested)

Plex Media Server (latest build)


Plex Pass (required for the live tv function)

Firefox Browser (for back-end component, needs to be installed, not used)

Internet Connection;)

This should all be done on your Plex Media Server because it needs to be on all the time.

part one

Download and Install Python

Tick Add Python x.x to PATH

Install Now - The installation includes pip. (We will need that)

Now we'll install Firefox Browser. (yes, this is required, I don't know why)

Download from here and install with all defaults.

You're done here, and if you don't use Firefox as your browser, you'll never see it again.

part two

Setup pmg

This is an open source project by

https://github.com/schwifty42069/ He has some more cool projects on his github, check it out.

Open a command prompt.

Type the following command:

pip install piptv_pmg

If you need a more detailed explanation for windows 10, see doc/windows.md in the pmg repository

Now we need to tell it where to put the generated m3u file & make it run every 4 hours to refresh the token.

We'll do this by running a .bat file with task scheduler.

Open notepad and type:

@echo off

py.exe -m piptv_pmg.pmg -o "C:\User\YourAccount\file.m3u"


Change "YourAccount" to whatever your account name is...

Save it as pmg.bat (replacing .txt with .bat) in our User folder. (C:\User\YourAccount\)

Go ahead and run it by double clicking the .bat file, just to make sure it's working and accept access through your firewall.

pmg pops up a window. Do not close this.

After a few minutes or less, pmg has created or replaced your file.m3u you specified in pmg.bat earlier.

Setup a Scheduled Task to run pmg.bat every 4 hours when you log in.

Tick Run with the highest privileges

Un-Tick Stop the task if it runs longer than:

All good? Good. You may continue. If not. That's on you.

part three

xTeVe was just updated and the Stream Buffer settings have changed. I'm looking into it...

Download and place xteve.exe in your User folder.

Run it once by double clicking the xteve.exe file.

A command window opens and an .xteve folder has magically appeared in your User folder.

Leave the window open. (yes, forever)

In a web browser, go to http://localhost:34400/web

Go to Settings. Look for the following:

Number of Tuners: I dunno, how fast is your PC? 2... 5...?

EPG Source: PMS

Schedule for updating (Playlist, XMLTV, Backup): 0000,0100,0200,0300,0400,0500,0600,0700,0800,0900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2300,

(pmg will fetch a new token every 4 hours, this makes sure xTeVe is always using the new token)

Stream Buffer: (xTeVe Works for me but VLC & ffmpeg are supported and can fix some m3u8 errors)

Save

Go to Playlist

Click New

Type: = M3U

Next

Name: pmg

M3U File: Path to your file.m3u file

Tuner / Streams: Same as you picked earlier.

Save

xteve is done and ready. It must remain open!

part four

Plex Server Time!

Go to Live TV & DVR under Settings

Click on SET UP PLEX DVR

Maybe it will find xTeVe maybe it won't.

If found click Continue, if not click the orange text: Don't see your HDHomeRun device? Enter it's network address manually & enter localhost:34400, click Connect then Continue

Choose Cable from the dropdown on the left.

You can see Plex has found some channels.

The names will make sense later.

Use my guide data by clicking the orange text, pic below, Details are under the grid below, or Set Postal Code 10004 - That's New York City

(Multiple cities are sourced so, Not correct for locals but it works)

If using Postal Code, Choose: DirecTV Eastern Time Zone Digital, pmg, being awesome, names the channel codes so, Plex has correctly found the correct mapping.

Double check but it should all line up...

You are Done!

Plex will download all the guide data and it can take a while but you can open the guide and try it out!


you did it!

If you would like to use my nice looking guide data (this will stop working soon. i received no help and I have turned off the script. donations make a difference...), with my custom channel logos I would ask that you donate so you can help keep my server alive. Like $1 a month? The free guide data from Plex works fine but mine is better;) If people are abusing this, I will have to turn it off.

Using an XMLTV file will require you to map the channels, once. Most are self explanatory but:

  • APL = Animal Planet
  • CNE = Cartoon Network
  • COM = Comedy Channel
  • DSC = Discovery
  • DISE = Disney
  • FBN = Fox Business
  • FNC = Fox News
  • HMM = Hall Movies & Mysteries
  • MTHD = Motor Trend
  • NGW = Nat Geo Wild
  • NGC = National Geo
  • NBCE = NBC
  • NKTN = NickToons
  • PAR = Paramount

Double Check - Loading Guide data can take a while.

Big thanks to schwifty42069 for building pmg! Check out his GitHub. He has other projects that could add to this one.

Support this project, Donations Appreciated

37g55ZB6PnQGoJSumYDRwUFLRWQgGBkpxP


Buy me a coffee?

Didn't know this was a thing...

This website does not create or share any video or game broadcast media. All videos are created and shared by tv fans on external websites that are available freely online.