Skip to main content

fhs_iptv_tools

Iptv Tools Version: 0.8.13

** For changes see** changelog.

Foxhunt Software IPTV Tools

Making iptv easier

Index

Main features

  • load any m3u
  • remove unused channels
  • join multipe m3u files
  • edit channels
  • scan/probe streams/channels (get resolution, codec and bitrate for channels
  • save new m3u file
  • do this all interactive
  • or run this all automatic with a yaml

Future features

  • select on codec / bitrate / resolution
  • clean probe/scan check
  • clean interactive history file (max lines)

Thanks to:

For inspiration and some code

Usage


 # use it with docker like this
 docker run --rm -h fhs-iptv-tools -t -i rdevos72/fhs-iptv-tools --help

 fhs-iptv-tools interactive

 # load m3u file from disk
 (fhs_iptv_tools) load_m3u --file=./m3u

 # count channels, it you want to know, you can also list_channels, list_groups, and more.
 (fhs_iptv_tools) count_channels

 # select channels based on text in group title, more options are on name, id and more see help.
 (fhs_iptv_tools) select --group_title "NL" --set_tag keep
 selected 6 channels.

 # modified the channels, change to group to NL
 (fhs_iptv_tools) modify_channels --with_tag keep --set_group_title NL

 # delete all the channels we didn't tag with the select command.
 (fhs_iptv_tools) delete_channels --without_tag keep
 removed 15 channels.

 # sort all channels
 sort_channels --sort_key1 tvg_group_title --sort_key2 tvg_name

 # probe channels
 probe_scan

 # and save to m3u file, the the delete is not realy needed you can also use --with_tag keep in the save action.
 (fhs_iptv_tools) save_m3u --file m3u.new
 channels saved to m3u file m3u.new

 # save everything you did so that you can repeat it automatically
 (fhs_iptv_tools) save_tasks --file=/tmp/tasks.yaml

 # then run it as
 fhs-iptv-tools run-tasks --yaml-command /tmp/tasks.yaml


 # In interactive mode, try 
 (fhs_iptv_tools) help

 # And try the command with --help to see the options
 (fhs_iptv_tools) select --help
 Usage: select [-h] [--store STORE] [--with_tag WITH_TAG] [--without_tag WITHOUT_TAG]
              [--group_title GROUP_TITLE] [--name NAME] [--id ID] [--source SOURCE] [--set_tag SET_TAG]
              [--clear_tag CLEAR_TAG]

 optional arguments:
  -h, --help            show this help message and exit
  --store STORE         store name
  --with_tag WITH_TAG
  --without_tag WITHOUT_TAG
  --group_title GROUP_TITLE
  --name NAME
  --id ID
  --source SOURCE
  --set_tag SET_TAG
  --clear_tag CLEAR_TAG

Installation


git clone https://github.com/foxhunt72/fhs-iptv-tools
cd fhs-iptv-tools
pip3 install .

pipx install fhs_iptv_tools
or
pip3 install fhs_iptv_tools

# install ffprobe

##Requirements

  • typer[all]
  • cmd2
  • jinja2
  • appdirs

Docker

Add docker image and automatically builds

See https://hub.docker.com/r/rdevos72/fhs-iptv-tools

docker run --rm -v /tmp/files:/opt/files -ti rdevos72/fhs-iptv-tools --help

Compatibility


Examples


Licence


MIT license

Author


Richard de Vos

fhs_iptv_tools was written by Richard de Vos.

Metadata

Release files for fhs-iptv-tools 0.8.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fhs-iptv-tools 0.8.13
File Size Uploaded Provenance Actions
fhs-iptv-tools-0.8.13.tar.gz 22.6 kB Without provenance Details for fhs-iptv-tools-0.8.13.tar.gz

Release files / fhs-iptv-tools-0.8.13.tar.gz

Download URL fhs-iptv-tools-0.8.13.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e7b67780269a4669665eb4fc76689d95f8f6275c680731d4776afdf1d3ca49b5
BLAKE2b-256 checksum
How to use checksums
819c17b176f0cb8621a10b7499eba9ac4bd8c3994632e734749b21f4141706a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for fhs-iptv-tools 0.8.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page