Ensure a videoId when fetching video info
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user