mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
remove https from channel thumbnail in search
This commit is contained in:
parent
e35345f135
commit
d0dbbd1cb1
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ def extract_item(item : JSON::Any, author_fallback : String? = nil, author_id_fa
|
||||||
author = i["title"]["simpleText"]?.try &.as_s || author_fallback || ""
|
author = i["title"]["simpleText"]?.try &.as_s || author_fallback || ""
|
||||||
author_id = i["channelId"]?.try &.as_s || author_id_fallback || ""
|
author_id = i["channelId"]?.try &.as_s || author_id_fallback || ""
|
||||||
|
|
||||||
author_thumbnail = i["thumbnail"]["thumbnails"]?.try &.as_a[0]?.try { |u| "https:#{u["url"]}" } || ""
|
author_thumbnail = i["thumbnail"]["thumbnails"]?.try &.as_a[0]?.try &.["url"]?.try &.as_s || ""
|
||||||
subscriber_count = i["subscriberCountText"]?.try &.["simpleText"]?.try &.as_s.try { |s| short_text_to_number(s.split(" ")[0]) } || 0
|
subscriber_count = i["subscriberCountText"]?.try &.["simpleText"]?.try &.as_s.try { |s| short_text_to_number(s.split(" ")[0]) } || 0
|
||||||
|
|
||||||
auto_generated = false
|
auto_generated = false
|
||||||
|
|
Loading…
Reference in a new issue