diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-05 09:00:39 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-05 09:00:39 -0600 |
| commit | 4e33d3a0b9a43fad979dbb0f4e3f365083df5386 (patch) | |
| tree | 9eae9e87b82127bf5a01f723c37a22475fdb41bc | |
| parent | 9e022f3b04ca5edc3922b1d31624a21b85e2ba04 (diff) | |
| download | invidious-4e33d3a0b9a43fad979dbb0f4e3f365083df5386.tar.gz invidious-4e33d3a0b9a43fad979dbb0f4e3f365083df5386.tar.bz2 invidious-4e33d3a0b9a43fad979dbb0f4e3f365083df5386.zip | |
Fix index out of bounds for playlist ucid
Diffstat (limited to '')
| -rw-r--r-- | src/invidious/playlists.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index d85084eb..cc149ea8 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -187,7 +187,7 @@ def fetch_playlist(plid) 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 ||= "" - 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 views = anchor.xpath_node(%q(.//li[3])).not_nil!.content.delete("No views, ") |
