Try to pull UCID instead of brand name in search results

このコミットが含まれているのは:
Omar Roth 2018-11-28 10:20:52 -06:00
コミット 7fd4c76a59
1個のファイルの変更3行の追加1行の削除

ファイルの表示

@ -249,7 +249,9 @@ def extract_items(nodeset, ucid = nil)
)
when .includes? "yt-lockup-channel"
author = title.strip
ucid = id.split("/")[-1]
ucid = node.xpath_node(%q(.//button[contains(@class, "yt-uix-subscription-button")])).try &.["data-channel-external-id"]?
ucid ||= id.split("/")[-1]
author_thumbnail = node.xpath_node(%q(.//div/span/img)).try &.["data-thumb"]?
author_thumbnail ||= node.xpath_node(%q(.//div/span/img)).try &.["src"]