Skip to content
Permalink
Browse files
fix view count extraction
  • Loading branch information
ChunkyProgrammer committed Apr 2, 2023
1 parent dc929be commit e3c1cb3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -484,7 +484,7 @@ private module Parsers
# View count used to be in the reelWatchEndpoint, but that changed?
view_count_text ||= item_contents.dig?("viewCountText", "simpleText")

view_count = view_count_text.try &.as_s.gsub(/\D+/, "").to_i64? || 0_i64
view_count = short_text_to_number(view_count_text.try &.as_s || "0")

# Duration

0 comments on commit e3c1cb3

Please sign in to comment.