mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Fix index out of bounds for playlist ucid
This commit is contained in:
parent
9e022f3b04
commit
4e33d3a0b9
@ -187,7 +187,7 @@ def fetch_playlist(plid)
|
|||||||
author = anchor.xpath_node(%q(.//li[1]/a)).not_nil!.content
|
author = anchor.xpath_node(%q(.//li[1]/a)).not_nil!.content
|
||||||
author_thumbnail = document.xpath_node(%q(//img[@class="channel-header-profile-image"])).try &.["src"]
|
author_thumbnail = document.xpath_node(%q(//img[@class="channel-header-profile-image"])).try &.["src"]
|
||||||
author_thumbnail ||= ""
|
author_thumbnail ||= ""
|
||||||
ucid = anchor.xpath_node(%q(.//li[1]/a)).not_nil!["href"].split("/")[2]
|
ucid = anchor.xpath_node(%q(.//li[1]/a)).not_nil!["href"].split("/")[-1]
|
||||||
|
|
||||||
video_count = anchor.xpath_node(%q(.//li[2])).not_nil!.content.delete("videos, ").to_i
|
video_count = anchor.xpath_node(%q(.//li[2])).not_nil!.content.delete("videos, ").to_i
|
||||||
views = anchor.xpath_node(%q(.//li[3])).not_nil!.content.delete("No views, ")
|
views = anchor.xpath_node(%q(.//li[3])).not_nil!.content.delete("No views, ")
|
||||||
|
Loading…
Reference in New Issue
Block a user