kopia lustrzana https://github.com/iv-org/invidious
Update channel when fetched by thread
rodzic
8ed9624e0a
commit
cc047bb5e5
|
@ -138,6 +138,7 @@ channel_threads.times do |i|
|
||||||
begin
|
begin
|
||||||
id = rs.read(String)
|
id = rs.read(String)
|
||||||
channel = fetch_channel(id, client, PG_DB, false)
|
channel = fetch_channel(id, client, PG_DB, false)
|
||||||
|
PG_DB.exec("UPDATE channels SET updated = $1 WHERE id = $2", Time.now, id)
|
||||||
rescue ex
|
rescue ex
|
||||||
STDOUT << id << " : " << ex.message << "\n"
|
STDOUT << id << " : " << ex.message << "\n"
|
||||||
next
|
next
|
||||||
|
|
Ładowanie…
Reference in New Issue