Coverage for src/iptvtools/constants/helps.py: 100%
18 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-31 13:48 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-31 13:48 +0000
1#!/usr/bin/env python
2"""Helps for iptvtools.
4File: constants.py
5Author: huxuan
6Email: i(at)huxuan.org
7"""
9CONFIG = "Configuration file to unify title and id."
10CHANNEL_EXCLUDE = (
11 "Channels to exclude with regex. "
12 "Note: Blacklist has higher priority than whitelist."
13)
14CHANNEL_INCLUDE = (
15 "Channels to include with regex. "
16 "Note: Only channels in the whitelist will be included if set."
17)
18GROUP_EXCLUDE = (
19 "Groups to exclude with regex.Note: Blacklist has higher priority than whitelist."
20)
21GROUP_INCLUDE = (
22 "Groups to include with regex."
23 "Note: Only groups in the whitelist will be included if set."
24)
25INPUTS = "One or more input m3u playlist files/urls."
26INTERVAL = "Interval in seconds between successive fetching requests."
27LOG_LEVEL = "Log level."
28MAX_HEIGHT = "Maximum height/resolution to accept, -1 means no resolution filtering."
29MIN_HEIGHT = "Minimum height/resolution to accept, 0 means no resolution filtering."
30OUTPUT = "Output file name."
31REPLACE_GROUP_BY_SOURCE = (
32 "Flag to replace the group title with the source name, where the source "
33 "name is the basename of input files/urls without extension."
34)
35RESOLUTION_ON_TITLE = (
36 "Flag to append resolution such as 8K, 4K, 1080p, 720p to the title."
37)
38SORT_KEYS = (
39 "List of keys to sort the channels. Valid options currently supported "
40 "are `group-title`, `tvg-id`, `template-order`, `height` and `title`."
41)
42TEMPLATES = (
43 "Template m3u files/urls with well-maintained channel information to "
44 "replace the matched entries."
45)
46TIMEOUT = "Timeout threshold for fetching request."
47UDPXY = "UDP Proxy for certain IPTV channels."
48SKIP_CONNECTIVITY_CHECK = "Skip connectivity check."