Update mixes link

This commit is contained in:
Omar Roth 2020-07-26 11:50:18 -04:00
parent db83ede73c
commit 176ef19cca
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2

View file

@ -24,8 +24,9 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
if cookies
headers = cookies.add_request_headers(headers)
end
response = YT_POOL.client &.get("/watch?v=#{video_id}&list=#{rdid}&gl=US&hl=en&has_verified=1&bpctr=9999999999", headers)
video_id = "CvFH_6DNRCY" if rdid.starts_with? "OLAK5uy_"
response = YT_POOL.client &.get("/watch?v=#{video_id}&list=#{rdid}&gl=US&hl=en", headers)
initial_data = extract_initial_data(response.body)
if !initial_data["contents"]["twoColumnWatchNextResults"]["playlist"]?