mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 00:29:53 +05:30
Update formatting and default feed menu
This commit is contained in:
parent
004fb96b2f
commit
aa63c3f70e
@ -2319,7 +2319,7 @@ get "/feed/playlist/:plid" do |env|
|
|||||||
document
|
document
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add support for subscribing to channels via PubSubHubbub
|
# Support push notifications via PubSubHubbub
|
||||||
|
|
||||||
get "/feed/webhook/:token" do |env|
|
get "/feed/webhook/:token" do |env|
|
||||||
verify_token = env.params.url["token"]
|
verify_token = env.params.url["token"]
|
||||||
@ -2363,7 +2363,7 @@ post "/feed/webhook/:token" do |env|
|
|||||||
rss.xpath_nodes("//feed/entry").each do |entry|
|
rss.xpath_nodes("//feed/entry").each do |entry|
|
||||||
id = entry.xpath_node("videoid").not_nil!.content
|
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)
|
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 \
|
PG_DB.exec("UPDATE users SET notifications = notifications || $1 \
|
||||||
|
@ -17,7 +17,7 @@ user: String,
|
|||||||
domain: String?, # Domain to be used for links to resources on the site where an absolute URL is required
|
domain: String?, # Domain to be used for links to resources on the site where an absolute URL is required
|
||||||
use_pubsub_feeds: {type: Bool, default: false}, # Subscribe to channels using PubSubHubbub (requires domain, hmac_key)
|
use_pubsub_feeds: {type: Bool, default: false}, # Subscribe to channels using PubSubHubbub (requires domain, hmac_key)
|
||||||
default_home: {type: String, default: "Top"},
|
default_home: {type: String, default: "Top"},
|
||||||
feed_menu: {type: Array(String), default: ["Popular", "Top", "Trending"]},
|
feed_menu: {type: Array(String), default: ["Popular", "Top", "Trending", "Subscriptions"]},
|
||||||
top_enabled: {type: Bool, default: true},
|
top_enabled: {type: Bool, default: true},
|
||||||
captcha_enabled: {type: Bool, default: true},
|
captcha_enabled: {type: Bool, default: true},
|
||||||
login_enabled: {type: Bool, default: true},
|
login_enabled: {type: Bool, default: true},
|
||||||
|
Loading…
Reference in New Issue
Block a user