mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 08:05:40 -04:00
Initial upload
This commit is contained in:
25
download.sh
Normal file
25
download.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
DATE=$(date '+%m-%d-%Y %H:%M:%S')
|
||||
|
||||
# #
|
||||
# Run Download
|
||||
# #
|
||||
|
||||
echo -e
|
||||
echo -e " Start : Downloading latest ${FILE_NAME} m3u + xml"
|
||||
|
||||
# Download .xml
|
||||
wget -q -O /config/www/${FILE_NAME}.xml ${URL_XML}
|
||||
echo -e " Getting ${FILE_NAME}.xml › ${URL_XML}"
|
||||
|
||||
# Download .xml.gz
|
||||
wget -q -O /config/www/${FILE_NAME}.xml.gz ${URL_XML_GZ}
|
||||
echo -e " Getting ${FILE_NAME}.xml.gz › ${URL_XML_GZ}"
|
||||
|
||||
# Download .m3u8
|
||||
wget -q -O /config/www/${FILE_NAME}.m3u8 ${URL_M3U}
|
||||
echo -e " Getting ${FILE_NAME}.m3u8 › ${URL_M3U}"
|
||||
|
||||
echo -e " End : Finished update at ${DATE}"
|
||||
Reference in New Issue
Block a user