mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix decoding for channel playlists extractor
This commit is contained in:
parent
833a60f29c
commit
b58950c574
1 changed files with 4 additions and 2 deletions
|
@ -526,10 +526,12 @@ end
|
||||||
|
|
||||||
def extract_channel_playlists_cursor(url, auto_generated)
|
def extract_channel_playlists_cursor(url, auto_generated)
|
||||||
cursor = URI.parse(url).query_params
|
cursor = URI.parse(url).query_params
|
||||||
.try { |i| Base64.decode(i["continuation"]) }
|
.try { |i| URI.decode_www_form(i["continuation"]) }
|
||||||
|
.try { |i| Base64.decode(i) }
|
||||||
.try { |i| IO::Memory.new(i) }
|
.try { |i| IO::Memory.new(i) }
|
||||||
.try { |i| Protodec::Any.parse(i) }
|
.try { |i| Protodec::Any.parse(i) }
|
||||||
.try { |i| i["80226972:0:embedded"]["3:1:base64"]["15:7:string"].as_s }
|
.try { |i| i["80226972:0:embedded"]["3:1:base64"].as_h.find { |k, v| k.starts_with?("15:") } }
|
||||||
|
.try &.[1].as_s || ""
|
||||||
|
|
||||||
if !auto_generated
|
if !auto_generated
|
||||||
cursor = URI.decode_www_form(cursor)
|
cursor = URI.decode_www_form(cursor)
|
||||||
|
|
Loading…
Reference in a new issue