mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Typo: missing '?' when looking for key in dislikes_button
Co-authored-by: Matthew McGarvey <matthewmcgarvey14@gmail.com>
This commit is contained in:
parent
ceb1feb350
commit
91f8395222
1 changed files with 1 additions and 1 deletions
|
@ -914,7 +914,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
|
|||
.try &.["toggleButtonRenderer"]
|
||||
|
||||
if dislikes_button
|
||||
dislikes_txt = (dislikes_button["defaultText"] || dislikes_button["toggledText"]?)
|
||||
dislikes_txt = (dislikes_button["defaultText"]? || dislikes_button["toggledText"]?)
|
||||
.try &.dig?("accessibility", "accessibilityData", "label")
|
||||
dislikes = dislikes_txt.as_s.gsub(/\D/, "").to_i64? if dislikes_txt
|
||||
|
||||
|
|
Loading…
Reference in a new issue