Skip to content

Commit 3fca0d6

Browse files
committed
feat: update default external M3U automatic update interval to 2 hours
1 parent 6622c44 commit 3fca0d6

File tree

8 files changed

+14
-15
lines changed

8 files changed

+14
-15
lines changed

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ external-m3u = https://example.com/iptv.m3u
128128
external-m3u = file:///path/to/playlist.m3u
129129

130130
# 外部 M3U 更新间隔(秒)
131-
# 默认 86400(24 小时),设为 0 禁用自动更新
132-
external-m3u-update-interval = 86400
131+
# 默认 7200(2 小时),设为 0 禁用自动更新
132+
external-m3u-update-interval = 7200
133133

134134
# 组播周期性重新加入间隔(秒,默认: 0 禁用)
135135
# 设置为正值(如 60)以周期性重新加入组播组

docs/m3u-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ external-m3u = https://example.com/iptv.m3u
2727
external-m3u = file:///path/to/playlist.m3u
2828

2929
# 外部 M3U 更新间隔(秒)
30-
# 默认 86400(24 小时),设为 0 禁用自动更新
31-
external-m3u-update-interval = 86400
30+
# 默认 7200(2 小时),设为 0 禁用自动更新
31+
external-m3u-update-interval = 7200
3232
```
3333

3434
### 方法二:在配置文件中直接内联 M3U

openwrt-support/luci-app-rtp2httpd/htdocs/luci-static/resources/view/rtp2httpd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ return view.extend({
417417
"external_m3u_update_interval",
418418
_("External M3U Update Interval"),
419419
_(
420-
"External M3U automatic update interval in seconds (default: 86400 = 24 hours). Set to 0 to disable automatic updates."
420+
"External M3U automatic update interval in seconds (default: 7200 = 2 hours). Set to 0 to disable automatic updates."
421421
)
422422
);
423423
o.datatype = "uinteger";
424-
o.placeholder = "86400";
424+
o.placeholder = "7200";
425425
o.depends("use_config_file", "0");
426426

427427
o = s.taboption(

openwrt-support/luci-app-rtp2httpd/po/templates/rtp2httpd.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ msgstr ""
6868

6969
#: htdocs/luci-static/resources/view/rtp2httpd.js:420
7070
msgid ""
71-
"External M3U automatic update interval in seconds (default: 86400 = 24 "
71+
"External M3U automatic update interval in seconds (default: 7200 = 2 "
7272
"hours). Set to 0 to disable automatic updates."
7373
msgstr ""
7474

openwrt-support/luci-app-rtp2httpd/po/zh_Hans/rtp2httpd.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ msgstr "外部 M3U 更新间隔"
8181

8282
#: htdocs/luci-static/resources/view/rtp2httpd.js:420
8383
msgid ""
84-
"External M3U automatic update interval in seconds (default: 86400 = 24 "
84+
"External M3U automatic update interval in seconds (default: 7200 = 2 "
8585
"hours). Set to 0 to disable automatic updates."
8686
msgstr ""
87-
"外部 M3U 自动更新间隔(秒),默认 86400(24 小时)。设为 0 禁用自动更新。"
87+
"外部 M3U 自动更新间隔(秒),默认 7200(2 小时)。设为 0 禁用自动更新。"
8888

8989
#: htdocs/luci-static/resources/view/rtp2httpd.js:393
9090
msgid "FCC Listen Port Range"

openwrt-support/rtp2httpd/files/rtp2httpd.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config rtp2httpd
2626
# option player_page_path '/player'
2727
# option r2h_token 'your-secret-token-here'
2828
# option external_m3u 'https://example.com/playlist.m3u'
29-
# option external_m3u_update_interval '86400'
29+
# option external_m3u_update_interval '7200'
3030
# option mcast_rejoin_interval '0'
3131
# option fcc_listen_port_range '40000-40100'
3232
# option video_snapshot '0'

rtp2httpd.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ verbosity = 1
5555
# or use a local file
5656
;external-m3u = file:///path/to/playlist.m3u
5757

58-
# External M3U update interval in seconds (default 86400 = 24 hours)
58+
# External M3U update interval in seconds (default 7200 = 2 hours)
5959
# Set to 0 to disable automatic updates, or a positive value for custom interval
60-
;external-m3u-update-interval = 86400
60+
;external-m3u-update-interval = 7200
6161

6262
# Multicast rejoin interval in seconds (default 0, disabled)
6363
# Set to a positive value (e.g., 60) to periodically rejoin multicast groups

src/configuration.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ void restore_conf_defaults(void)
840840
cmd_player_page_path_set = 0;
841841

842842
safe_free_string(&config.external_m3u_url);
843-
config.external_m3u_update_interval = 86400; /* 24 hours default */
843+
config.external_m3u_update_interval = 7200; /* 2 hours default */
844844
config.last_external_m3u_update_time = 0;
845845

846846
if (config.upstream_interface[0] != '\0')
@@ -914,7 +914,7 @@ void usage(FILE *f, char *progname)
914914
"\t-s --status-page-path <path> HTTP path for status UI (default: /status)\n"
915915
"\t-p --player-page-path <path> HTTP path for player UI (default: /player)\n"
916916
"\t-M --external-m3u <url> External M3U playlist URL (file://, http://, https://)\n"
917-
"\t-I --external-m3u-update-interval <seconds> Auto-update interval (default: 86400 = 24h, 0=disabled)\n"
917+
"\t-I --external-m3u-update-interval <seconds> Auto-update interval (default: 7200 = 2h, 0=disabled)\n"
918918
"\t-Z --zerocopy-on-send Enable zero-copy send with MSG_ZEROCOPY for better performance (default: off)\n"
919919
"\t default " CONFIGFILE "\n",
920920
prog);
@@ -1201,4 +1201,3 @@ void parse_cmd_line(int argc, char *argv[])
12011201
logger(LOG_DEBUG, "Verbosity: %d, Maxclients: %d, Workers: %d",
12021202
config.verbosity, config.maxclients, config.workers);
12031203
}
1204-

0 commit comments

Comments
 (0)