mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-15 09:35:09 +00:00
Removed dummy values and added checks for items.ecr
This commit is contained in:
@@ -21,7 +21,6 @@ struct ChannelVideo
|
||||
property live_now : Bool = false
|
||||
property premiere_timestamp : Time? = nil
|
||||
property views : Int64? = nil
|
||||
property author_verified : Bool #TODO currently a dummy
|
||||
|
||||
def to_json(locale, json : JSON::Builder)
|
||||
json.object do
|
||||
@@ -219,7 +218,6 @@ def fetch_channel(ucid, pull_all_videos : Bool)
|
||||
live_now: live_now,
|
||||
premiere_timestamp: premiere_timestamp,
|
||||
views: views,
|
||||
author_verified: false, #TODO dummy for components/item.ecr
|
||||
})
|
||||
|
||||
LOGGER.trace("fetch_channel: #{ucid} : video #{video_id} : Updating or inserting video")
|
||||
@@ -257,7 +255,6 @@ def fetch_channel(ucid, pull_all_videos : Bool)
|
||||
live_now: video.live_now,
|
||||
premiere_timestamp: video.premiere_timestamp,
|
||||
views: video.views,
|
||||
author_verified: false, #TODO dummy for components/item.ecr
|
||||
}) }
|
||||
|
||||
videos.each do |video|
|
||||
|
||||
Reference in New Issue
Block a user