Ensure a videoId when fetching video info

This commit is contained in:
Brahim Hadriche committed 2025-01-01 13:40:57 -05:00
1 parent 09902e0ec3
commit fde8eaa0c2
1 file changed
+5
@@ -69,6 +69,11 @@ namespace InnertubeService
parsedResponse = Innertube.ParseInnertubeNextResponse(nextResponse.Json(), parsedResponse)
end if
' If for some reason we missed the videoId, add it back
if parsedResponse.error = invalid and StringUtils.IsNullOrEmpty(parsedResponse.videoId)
parsedResponse["videoId"] = videoId
end if
return parsedResponse
end function