summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-07-26 17:17:16 -0500
committerOmar Roth <omarroth@hotmail.com>2018-07-26 17:17:16 -0500
commitcc047bb5e5a94ed21414d6e50cb31fae49c9e858 (patch)
tree8e05e13a0c5cdfd1b411e03a9385bd29a5c62001
parent8ed9624e0a1d54cd5b88785275543aa706721696 (diff)
downloadinvidious-cc047bb5e5a94ed21414d6e50cb31fae49c9e858.tar.gz
invidious-cc047bb5e5a94ed21414d6e50cb31fae49c9e858.tar.bz2
invidious-cc047bb5e5a94ed21414d6e50cb31fae49c9e858.zip
Update channel when fetched by thread
-rw-r--r--src/invidious.cr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 8f7bf2ee..de247592 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -138,6 +138,7 @@ channel_threads.times do |i|
begin
id = rs.read(String)
channel = fetch_channel(id, client, PG_DB, false)
+ PG_DB.exec("UPDATE channels SET updated = $1 WHERE id = $2", Time.now, id)
rescue ex
STDOUT << id << " : " << ex.message << "\n"
next