fhs_m3u2strm
M3u iptv to strm files for iptv2vod services. My current iptv provider delivers a m3u file with a lot of VOD programs into it also. But i wanted to have a nice way to use it from kodi or jellyfin as normal media.
So i created this program which makes it easy to use vod streams from an iptv provider using a mediaserver/player as kodi / plex / jellyfin / emby and a lot more i think.
Thanks to:
Usage
Vod group in m3u_file to directory strm file
fhs-m3u2strm vod-group-to-dir –m3ufile <path_to_local_file> –group ‘GROUPNAME’’ –output-dir ‘OUTPUT_DIR’
arguments
m3ufile: path to m3ufile
group: group to convert to strm files (see list-groups options to show groups in m3ufile)
output-dir: directory where to put strm files
optional arguments
rm-end-name: remove this text from end of episodes text
rm-in-name: remove this text in the episode and/or serie name
rm-regex-name: remove this regex in the episode and/or serie name
season-folders: create season folders
square-brackets: remove all text within square brackets from episode and/or serie name
Listing groups in m3u_file
fhs-m3u2strm list-groups –m3ufile <path_to_local_file> [–vod-only]
arguments
m3ufile: path to m3ufile
vod-only: show only vod from m3ufile
Listing groups in m3u_file with details (like movies, channels and episodes)
fhs-m3u2strm list-groups-details –m3ufile <path_to_local_file> [–vod-only]
arguments
m3ufile: path to m3ufile
vod-only: show only vod from m3ufile
Multiple vod groups in m3u_file to groups
fhs-m3u2strm vod-groups-to-dir –yamlconfig sync.yml –m3ufile <path_to_local_file> –base-dir ‘OUTPUT_DIR’
arguments
yaml_config: path to yaml config with groups
m3ufile: path to m3ufile
base_dir: is used to replace {PATH} in output_dir (see example yaml file)
Example yaml file
For vod-groups-to-dir
---
config:
season_folders: true
square_brackets: true
m3ufile: path to m3ufile (optional also posible by argument)
base_dir: base directory (optional also posible by argument)
rm_regex_name: (optional here, for all groups, also rm_in_name and rm_end_name can be used in the config part)
- " S\\d{2} .*$"
- " S\\d{2}$"
groups:
- group: 'GROUP1'
output_dir: "{PATH}/group1"
rm_in_name: "GRP "
rm_end_name: " STAGE"
rm_regex_name: (or here for only one group)
- " S\\d{2} .*$"
- " S\\d{2}$"
- group: 'GROUP2'
output_dir: "{PATH}/group2"
rm_in_name: "EN "
Installation
git clone https://github.com/foxhunt72/fhs-m3u2strm
cd fhs-m3u2strm
pip3 install .
pipx install fhs_m3u2strm
or
pip3 install fhs_m3u2strm
Requirements
typer[all]
pyyaml
rich
Compatibility
Licence
MIT License
Metadata
Release files for fhs-m3u2strm 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fhs-m3u2strm-1.0.5.tar.gz | 12.6 kB | Without provenance | Details for fhs-m3u2strm-1.0.5.tar.gz |
Release files / fhs-m3u2strm-1.0.5.tar.gz
| Download URL | fhs-m3u2strm-1.0.5.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d5d8f68dbc185b970b21a03aaeed53570bb27b29106af0c92a6679400b83c8a
|
|
BLAKE2b-256 checksum How to use checksums |
0a98a2f944b6b1c8e7e69d89c455bb05cd86ad0668dc245e069e600e991159de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for fhs-m3u2strm 1.0.5
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.