Fix typo in video extractor

pull/650/head
Omar Roth 5 years ago
parent 0321dda1d7
commit f643175156
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

@ -1187,7 +1187,7 @@ def fetch_video(id, region)
title = player_json["videoDetails"]["title"].as_s
author = player_json["videoDetails"]["author"]?.try &.as_s || ""
ucid = player_json["videoDetails"]["ucid"]?.try &.as_s || ""
ucid = player_json["videoDetails"]["channelId"]?.try &.as_s || ""
views = html.xpath_node(%q(//meta[@itemprop="interactionCount"]))
.try &.["content"].to_i64? || 0_i64

Loading…
Cancel
Save