@ -207,12 +207,25 @@ def decrypt_signature(a, base)
a.reverse!
a = swap(a, 8)
a = swap(a, 61)
when "vflCCoUi2"
a = swap(a, 26)
when "vflg4IfMn"
a = swap(a, 6)
a = swap(a, 64)
a = swap(a, 25)
a = swap(a, 53)
a.delete_at(0..1)
a.delete_at(0..2)
else
raise "Could not decrypt signature for player #{base}"
end
return a.join("")
def rank_videos(db, n)
top = [] of {Float64, String}