[skip ci] small fixes

This commit is contained in:
Brahim Hadriche committed 2025-07-05 10:20:07 -04:00
1 parent 51b2f7793a
commit 10f9d1bf05
2 files changed
+6 -3

No files matched your search

@@ -75,7 +75,6 @@ namespace Innertube
"videoId": videoDetails["videoId"]
"videoThumbnails": videoDetails["thumbnail"]["thumbnails"]
"storyboards": ParseStoryboards(payload, lengthSeconds)
"viewCount": videoDetails["viewCount"].ToInt()
"author": videoDetails["author"]
"authorId": videoDetails["channelId"]
"lengthSeconds": lengthSeconds
@@ -87,6 +86,10 @@ namespace Innertube
"recommendedVideos": []
}
if videoDetails.DoesExist("viewCount")
videoInfo["viewCount"] = videoDetails["viewCount"].ToInt()
end if
return videoInfo
end function
@@ -213,8 +213,8 @@ function AddUrls(streamUrls as object, url as string, urlLocal as dynamic, urlFi
end if
end function
function AddInstanceToUrlIfNeeded(url as object, instance as string) as string
if url.StartsWith("/")
function AddInstanceToUrlIfNeeded(url as dynamic, instance as string) as dynamic
if IsString(url) and url.StartsWith("/")
return instance + url
end if
return url