From 9f2831276605db6af5e1103388f1453efefdb900 Mon Sep 17 00:00:00 2001 From: Shahin Agha-Ghassem Date: Sun, 19 Mar 2023 22:06:51 +0100 Subject: [PATCH] Do a daily update of channels --- iptv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iptv b/iptv index db77d9b..49c5357 100755 --- a/iptv +++ b/iptv @@ -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