diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-08-20 10:25:05 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-08-20 10:25:05 -0500 |
| commit | deb4b06ea0ebfdc629c1c54c920eeb147b4f91d3 (patch) | |
| tree | 1b11091a6a2216124e555e95dc45705aad4d174c | |
| parent | 4725f7222b1bcbfa38c75b54cf72e8aaaf23f49c (diff) | |
| download | invidious-deb4b06ea0ebfdc629c1c54c920eeb147b4f91d3.tar.gz invidious-deb4b06ea0ebfdc629c1c54c920eeb147b4f91d3.tar.bz2 invidious-deb4b06ea0ebfdc629c1c54c920eeb147b4f91d3.zip | |
Fix playlist view extractor
| -rw-r--r-- | src/invidious/playlists.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 9bd5724d..a6a03e84 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -139,8 +139,8 @@ def fetch_playlist(plid) author = anchor.xpath_node(%q(.//li[1]/a)).not_nil!.content ucid = anchor.xpath_node(%q(.//li[1]/a)).not_nil!["href"].split("/")[2] - 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("views,").to_i64 + 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("views, ").to_i64 updated = anchor.xpath_node(%q(.//li[4])).not_nil!.content.lchop("Last updated on ").lchop("Updated ") updated = decode_date(updated) |
