Feat: Experimental support for potoken inside redis

Using https://git.nadeko.net/Fijxu/youtube-po-token-generator
This commit is contained in:
Fijxu
2024-10-12 02:04:14 -03:00
parent 65f3bbcb10
commit b5ab49e8e8
4 changed files with 21 additions and 7 deletions

View File

@@ -324,7 +324,7 @@ rescue DB::Error
end
def fetch_video(id, region, po_token, visitor_data)
info = extract_video_info(video_id: id, po_token: po_token, visitor_data: visitor_data)
info = extract_video_info(video_id: id, user_po_token: po_token, user_visitor_data: visitor_data)
if reason = info["reason"]?
if reason == "Video unavailable"