mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-14 06:10:35 +05:30
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
@ -914,7 +914,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_
|
|||||||
.try &.["toggleButtonRenderer"]
|
.try &.["toggleButtonRenderer"]
|
||||||
|
|
||||||
if dislikes_button
|
if dislikes_button
|
||||||
dislikes_txt = (dislikes_button["defaultText"] || dislikes_button["toggledText"]?)
|
dislikes_txt = (dislikes_button["defaultText"]? || dislikes_button["toggledText"]?)
|
||||||
.try &.dig?("accessibility", "accessibilityData", "label")
|
.try &.dig?("accessibility", "accessibilityData", "label")
|
||||||
dislikes = dislikes_txt.as_s.gsub(/\D/, "").to_i64? if dislikes_txt
|
dislikes = dislikes_txt.as_s.gsub(/\D/, "").to_i64? if dislikes_txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user