mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Format and add function for vflCCoUi2 and vflg4IfMn
This commit is contained in:
parent
5b47be2b4d
commit
e46ce28939
1 changed files with 32 additions and 19 deletions
|
@ -207,12 +207,25 @@ def decrypt_signature(a, base)
|
||||||
a.reverse!
|
a.reverse!
|
||||||
a = swap(a, 8)
|
a = swap(a, 8)
|
||||||
a = swap(a, 61)
|
a = swap(a, 61)
|
||||||
|
when "vflCCoUi2"
|
||||||
|
a = swap(a, 26)
|
||||||
|
a.reverse!
|
||||||
|
a = swap(a, 8)
|
||||||
|
a = swap(a, 61)
|
||||||
|
when "vflg4IfMn"
|
||||||
|
a = swap(a, 6)
|
||||||
|
a = swap(a, 64)
|
||||||
|
a = swap(a, 25)
|
||||||
|
a = swap(a, 53)
|
||||||
|
a.delete_at(0..1)
|
||||||
|
a.reverse!
|
||||||
|
a.delete_at(0..2)
|
||||||
else
|
else
|
||||||
raise "Could not decrypt signature for player #{base}"
|
raise "Could not decrypt signature for player #{base}"
|
||||||
end
|
end
|
||||||
|
|
||||||
return a.join("")
|
return a.join("")
|
||||||
end
|
end
|
||||||
|
|
||||||
def rank_videos(db, n)
|
def rank_videos(db, n)
|
||||||
top = [] of {Float64, String}
|
top = [] of {Float64, String}
|
||||||
|
|
Loading…
Reference in a new issue