Watch history has video info (#524)

* Watch history has video info

* Lint fix

* Fix upcoming in watch history

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2024-12-26 13:14:59 -05:00
1 parent 1e28ee4e27
commit 83f867a21c
12 files changed
+239 -26

No files matched your search

@@ -1,5 +1,5 @@
' Auto-generated file - do not modify manually
' md5:dfefe3075a9c6332b6072e7c02fdccf8
' md5:ab48a52d517ca819a9720973f690d0e5
import "pkg:/source/Protobuf/BinaryReader.bs"
import "pkg:/source/Protobuf/BinaryWriter.bs"
@@ -131,6 +131,23 @@ namespace Protobuf
end if
end function
function encodeNextParams(message as dynamic, asByteArray = false as boolean) as dynamic
buffer = CreateObject("roByteArray")
writer = new Protobuf.BinaryWriter()
writer.SetBuffer(buffer)
encoder = new Protobuf.Encoder(writer)
if message.DoesExist("video_id")
for each value in message["video_id"]
encoder.EncodeString(5, value)
end for
end if
if asByteArray
return buffer
else
return buffer.ToBase64String().EncodeUriComponent()
end if
end function
end namespace