summaryrefslogtreecommitdiff
path: root/iptv.sh
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-01-23 15:16:12 +0800
committerZhineng Li <[email protected]>2026-01-23 15:27:53 +0800
commita09862485086f7ce5648950dc45823d993466cd3 (patch)
tree6f45f63cdab850c32a076f4b59d25c5723b7a7ad /iptv.sh
parent1e9f4d4dd575834db6e64bbab3d6934178a99f09 (diff)
downloadchina-unicom-iptv-gd-a09862485086f7ce5648950dc45823d993466cd3.tar.gz
china-unicom-iptv-gd-a09862485086f7ce5648950dc45823d993466cd3.zip
local variables
Diffstat (limited to 'iptv.sh')
-rwxr-xr-xiptv.sh20
1 files changed, 12 insertions, 8 deletions
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