mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
fix view count extraction
This commit is contained in:
parent
dc929be198
commit
e3c1cb3ec9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue