Invidious is an alternative front-end to YouTube
Fix error when song title is missing from the track
ChunkyProgrammerf840addd9309
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.crindex 608ae99d..13ee5f65 100644--- a/src/invidious/videos/parser.cr+++ b/src/invidious/videos/parser.cr@@ -330,7 +330,10 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any# Used when the video has multiple songsif song_title = music_desc.dig?("carouselLockupRenderer", "videoLockup", "compactVideoRenderer", "title")# "simpleText" for plain text / "runs" when song has a link- song = song_title["simpleText"]? || song_title.dig("runs", 0, "text")+ song = song_title["simpleText"]? || song_title.dig?("runs", 0, "text")++ # some videos can have empty tracks. See: https://www.youtube.com/watch?v=eBGIQ7ZuuiU+ next if !songendmusic_desc.dig?("carouselLockupRenderer", "infoRows").try &.as_a.each do |desc|