Invidious is an alternative front-end to YouTube
Add movies to search results
Omar Rothbb604c892572
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.crindex aeb275d3..321e1833 100644--- a/src/invidious/helpers/helpers.cr+++ b/src/invidious/helpers/helpers.cr@@ -210,8 +210,6 @@ def extract_videos(nodeset, ucid = nil)endcase node.xpath_node(%q(.//div)).not_nil!["class"]- when .includes? "yt-lockup-movie-vertical-poster"- nextwhen .includes? "yt-lockup-playlist"nextwhen .includes? "yt-lockup-channel"@@ -243,6 +241,7 @@ def extract_videos(nodeset, ucid = nil)published = decode_date(metadata[0].content.lchop("Streamed ").lchop("Starts "))rescue exend+beginpublished ||= Time.epoch(metadata[0].xpath_node(%q(.//span)).not_nil!["data-timestamp"].to_i64)rescue ex@@ -253,6 +252,7 @@ def extract_videos(nodeset, ucid = nil)view_count = metadata[0].content.rchop(" watching").delete(",").try &.to_i64?rescue exend+beginview_count ||= metadata.try &.[1].content.delete("No views,").try &.to_i64?rescue ex