class Invidious::Jobs::PullPopularVideosJob

Defined in:

invidious/jobs/pull_popular_videos_job.cr

Constant Summary

POPULAR_VIDEOS = Atomic.new([] of ChannelVideo)
QUERY = " SELECT DISTINCT ON (ucid) *\n FROM channel_videos\n WHERE ucid IN (SELECT channel FROM (SELECT UNNEST(subscriptions) AS channel FROM users) AS d\n GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40)\n ORDER BY ucid, published DESC"

Constructors

Instance Method Summary

Instance methods inherited from class Invidious::Jobs::BaseJob

begin begin

Constructor Detail

def self.new(db : DB::Database) #

[View source]

Instance Method Detail

def begin #

[View source]