diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-30 10:12:41 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-30 10:12:41 -0500 |
| commit | f6431751564fcab712e798ea31f2397b841b5c27 (patch) | |
| tree | ac08772b2cf8b3c93b9b34601a959f55a752d4ee /src | |
| parent | 0321dda1d76cb17a20b90a0fe26542dd5b3af0d0 (diff) | |
| download | invidious-f6431751564fcab712e798ea31f2397b841b5c27.tar.gz invidious-f6431751564fcab712e798ea31f2397b841b5c27.tar.bz2 invidious-f6431751564fcab712e798ea31f2397b841b5c27.zip | |
Fix typo in video extractor
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 7abc8404..ea02b938 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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 |
