diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-04 10:46:58 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-04 10:46:58 -0600 |
| commit | aa63c3f70ed98a12a2915de94fd9afbf476b7ccb (patch) | |
| tree | 732f4b2bca0d35531ae9cdb9093c2bed24d99dfb /src/invidious.cr | |
| parent | 004fb96b2f9b848172aa52a72fac08a616a7913b (diff) | |
| download | invidious-aa63c3f70ed98a12a2915de94fd9afbf476b7ccb.tar.gz invidious-aa63c3f70ed98a12a2915de94fd9afbf476b7ccb.tar.bz2 invidious-aa63c3f70ed98a12a2915de94fd9afbf476b7ccb.zip | |
Update formatting and default feed menu
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index a19a742b..4154f3ee 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -2319,7 +2319,7 @@ get "/feed/playlist/:plid" do |env| document end -# Add support for subscribing to channels via PubSubHubbub +# Support push notifications via PubSubHubbub get "/feed/webhook/:token" do |env| verify_token = env.params.url["token"] @@ -2363,11 +2363,11 @@ post "/feed/webhook/:token" do |env| rss.xpath_nodes("//feed/entry").each do |entry| id = entry.xpath_node("videoid").not_nil!.content - video = get_video(id, PG_DB, proxies) + video = get_video(id, PG_DB, proxies, region: nil) video = ChannelVideo.new(id, video.title, video.published, Time.now, video.ucid, video.author, video.length_seconds) PG_DB.exec("UPDATE users SET notifications = notifications || $1 \ - WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, video.ucid) + WHERE updated < $2 AND $3 = ANY(subscriptions) AND $1 <> ALL(notifications)", video.id, video.published, video.ucid) video_array = video.to_a args = arg_array(video_array) |
