Add 'deleted' to channel info

This commit is contained in:
Omar Roth
2019-02-09 10:18:24 -06:00
parent 7a9ef0d664
commit 30e6d29106
4 changed files with 11 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ class InvidiousChannel
id: String,
author: String,
updated: Time,
deleted: Bool,
})
end
@@ -187,7 +188,7 @@ def fetch_channel(ucid, client, db, pull_all_videos = true, locale = nil)
db.exec("DELETE FROM channel_videos * WHERE NOT id = ANY ('{#{ids.map { |id| %("#{id}") }.join(",")}}') AND ucid = $1", ucid)
end
channel = InvidiousChannel.new(ucid, author, Time.now)
channel = InvidiousChannel.new(ucid, author, Time.now, false)
return channel
end