mwlistscom / GetSTRM

GetSTRM creates a directory structure for Plex/Emby of .strm files from an M3U or RockyMyM3U STRM playlist
Creative Commons Zero v1.0 Universal
3 stars 1 forks source link
emby emby-server embyshares iptv iptv-m3u iptv-playlist jellyfin jellyfin-plugin m3u m3u-playlist m3u8 movies plex plex-media-server strm strm-files tv

GetSTRM

GetSTRM manages the directory structure for your Emby/JellyFin strm files. By default it adds the directory structure for every STRM in your m3u IPTV playlist.

The source can be 1 or more m3u or STRM export from RockMyM3u.com or multiple of both.

GetSTRM will delete empty directories and streams that are no longer in the provider list.

For this reason, do not use this with existing directories with media files, and do not run multiple times with different M3U/STRM.

Need help ? Contact us on https://www.facebook.com/rockmym3u or email help@rockmym3u.com

Setup

See release for binaries for Windows or Linux

Alternately install golang and execute "go run GetSTRM.go"

Without any parameters GetSTRM will create a sample sample_config.json file, rename this file and edit

the variables within. This is a JSON standard file do not add comments.

Usage

Usage: GetSTRM [options]

Options:

Path to the configuration file

Name to be printed in the log file and used for config file creation

Log level: 0 = silent, 1 = basic information, 3 = all debug and errors (default: 1)

Directory for TV shows (required)

Directory for movies (required)

URL of the JSON file (can be specified multiple times, required if no m3uURLs)

URL of the M3U file (can be specified multiple times, required if no jsonURLs)

Name of the log file (default: vod_log.txt)

Comma separated list of valid strm file types (default: avi,flv,m4v,mkv,mkv2,mkv5,mkvv,mp4,mp41,mp42,mp44,mpg,wmv)

Working directory (default: current working directory)

Directory for log files (default: workingDir/Log)

Set to 1 to keep downloaded files, 0 to delete (default: 0)

Directory to keep downloaded files (overrides default)

Comma separated list of groups to exclude (default: null)

Comma separated list of groups to include (default: null)

Maximum number of .strm files to delete (default: 25)

Display the version information

Show help message

License

Copyright (c) 2024 Jules Potvin

This software is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.

You may use, distribute, and modify this code under the terms of the license.

To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/

This code is provided "as is", without warranty of any kind, express or implied, including but not limited to the

warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the

authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract,

tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.