Fix playlist view extractor

pull/143/head
Omar Roth 2018-08-20 10:25:05 -05:00
rodzic 4725f7222b
commit deb4b06ea0
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -139,7 +139,7 @@ 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
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 ")