Do a daily update of channels

This commit is contained in:
Shahin Agha-Ghassem 2023-03-19 22:06:51 +01:00
parent cc8605b1cd
commit 9f28312766

5
iptv
View File

@ -59,6 +59,11 @@ if [ ! -z "$m3u" ]; then
exit
fi
if [[ $(find "$channels_file" -mtime +1) ]]; then
printf "Doing a daily update of channels..\n"
save_channels
fi
selected=$(cat "$channels_file" | sed 's/ [^ ]*$//' | fzf)
if [ ! -n "$selected" ]; then