mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Formatting
This commit is contained in:
parent
8dcc98b3b9
commit
86333cd434
1 changed files with 6 additions and 6 deletions
|
@ -652,13 +652,13 @@ module HelperExtractors
|
|||
#
|
||||
# Returns a 0 when it's unable to do so
|
||||
def self.get_video_count(container : JSON::Any) : Int32
|
||||
puts container
|
||||
puts container
|
||||
if box = container["videoCountText"]?
|
||||
if (extracted_text = extract_text(box)) && !extracted_text.includes? " subscriber"
|
||||
return extracted_text.gsub(/\D/, "").to_i
|
||||
else
|
||||
return 0
|
||||
end
|
||||
if (extracted_text = extract_text(box)) && !extracted_text.includes? " subscriber"
|
||||
return extracted_text.gsub(/\D/, "").to_i
|
||||
else
|
||||
return 0
|
||||
end
|
||||
elsif box = container["videoCount"]?
|
||||
return box.as_s.to_i
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue