diff --git a/hltv b/hltv index f9403f9..3c13e2c 100755 --- a/hltv +++ b/hltv @@ -20,6 +20,10 @@ then elif [ "$QUERY_STRING" = "matches" ] then $CGI_BIN/hltv_matches +elif [ "$QUERY_STRING" = "reload" ] +then + curl "https://illegaldrugs.net/skor?reload" >/dev/null + $CGI_BIN/hltv_matches else $CGI_BIN/hltv_matches fi diff --git a/hltv_matches b/hltv_matches index 19eb47c..48571f7 100755 --- a/hltv_matches +++ b/hltv_matches @@ -81,6 +81,7 @@ live_matches = [ x for x in matches if x["start_time"] == "LIVE" ] upcoming_matches = [ x for x in matches if x["start_time"] != "LIVE" and x["start_time"] != "OVER" ] ended_matches = [ x for x in matches if x["start_time"] == "OVER" ] + if len(live_matches) != 0: print("# LIVE") print_matches(live_matches) @@ -94,4 +95,6 @@ if len(ended_matches) != 0: print("# COMPLETED") print_matches(ended_matches) +print("=> ?reload Refresh match list (only use this if a match that should be live is still in \"upcoming\")") + print("Powered by sk0R") diff --git a/hltv_news b/hltv_news index 7b9e0d1..8027b3f 100755 --- a/hltv_news +++ b/hltv_news @@ -1,6 +1,7 @@ #!/usr/bin/php