From a09862485086f7ce5648950dc45823d993466cd3 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 23 Jan 2026 15:16:12 +0800 Subject: local variables --- iptv.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'iptv.sh') diff --git a/iptv.sh b/iptv.sh index c785086..198a2b1 100755 --- a/iptv.sh +++ b/iptv.sh @@ -78,9 +78,9 @@ make_epg () { ensure_jq_is_installed # Default variables - output_file="epg.xml" - endpoint="http://120.87.12.38:8083/epg/api/page/biz_59417088.json" - curl_args="" + local output_file='epg.xml' + local endpoint='http://120.87.12.38:8083/epg/api/page/biz_59417088.json' + local curl_args='' while [ $# -gt 0 ]; do case "$1" in @@ -144,11 +144,15 @@ make_playlist () { ensure_openssl_is_installed # Default values - ip_address="127.0.0.1" - udpxy_endpoint="http://127.0.0.1:4022" - output_file="playlist.M3U8" - curl_args="" - endpoint="http://eds1.unicomgd.com:8082" + local user_id='' + local password='' + local device_id='' + local mac_address='' + local ip_address='127.0.0.1' + local udpxy_endpoint='http://127.0.0.1:4022' + local output_file='playlist.M3U8' + local curl_args='' + local endpoint='http://eds1.unicomgd.com:8082' while [ $# -gt 0 ]; do case "$1" in -- cgit v1.2.3