Fix change in parser file

This commit is contained in:
meatball 2024-05-30 21:57:15 +02:00
parent 31ad708206
commit 629599f940
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
if metadata_title == "Category" if metadata_title == "Category"
contents = contents.try &.dig?("runs", 0) contents = contents.try &.dig?("runs", 0)
genre = contents.try &.["text"]? genre = contents.try &.["text"]?
genre_ucid = contents.try &.dig?("navigationEndpoint", "browseEndpoint", "browseId") genre_ucid = contents.try &.dig?("navigationEndpoint", "browseEndpoint", "browseId")
elsif metadata_title == "License" elsif metadata_title == "License"