SYNOPSIS
Creates an M3U playlist for an HDHomerun tuner
DESCRIPTION
Downloads the lineup from an HDHR tuner, specified by IP address and transforms it into an M3U plalist
When you don't specify an output file, the m3u content will be printed out for preview.
The output file will be generated as UTF-8 without BOM, which isn't the case when you just pipe the output into a file!
PARAMETER $ipaddress
The IP address of the tuner
PARAMETER $outfile
An optional filename to which to save the M3U
.EXAMPLE
C:\PS>
.\hdhr_get_m3u.ps1 192.168.1.1 out.m3u
.EXAMPLE
C:\PS>
.\hdhr_get_m3u.ps1 192.168.1.1
.NOTES
Author: softworkz (https://github.com/softworkz)
Date: May 14, 2021
@Gbreezy83
Save it somewhere as
hdhr_get_m3u.ps1
. You can copy-paste it into Notepad++ and save it, that's fineOpen either Windows Terminal (if you've installed it via the Microsoft Store - it's free and very nice), or a PowerShell console
Change to the directory the script is in, for example:
Run it:
(with the correct IP)
If you've never ran a PowerShell script before, you may need to modify the settings to allow script execution: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
PowerShell scripts are the modern replacement for batch files.