Skip to content

Commit

Permalink
rss:yt fix age bypass, yt key needed
Browse files Browse the repository at this point in the history
  • Loading branch information
satbaby committed Apr 24, 2022
1 parent 3a06d25 commit d231a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/rss/rss_addon/yt_video_url.lua
Expand Up @@ -546,7 +546,7 @@ function media.getVideoUrl(yurl)
if data:find('LOGIN_REQUIRED') and youtube_dev_id then
local id = yurl:match("/watch%?v=([%w+%p+]+)")
if id then
local postdat='{"context": {"client": {"clientName": "ANDROID", "clientVersion": "16.20", "hl": "en", "clientScreen": "EMBED"}, "thirdParty": {"embedUrl": "https://google.com"}}, "videoId": "' .. id .. '", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS", "signatureTimestamp": 18872}}, "contentCheckOk": true, "racyCheckOk": true}'
local postdat='{"context": {"client": {"clientName": "TVHTML5_SIMPLY_EMBEDDED_PLAYER", "clientVersion": "2.0", "hl": "en"}, "thirdParty": {"embedUrl": "https://www.youtube.com/"}}, "videoId": "' .. id .. '", "playbackContext": {"contentPlaybackContext": {"html5Preference": "HTML5_PREF_WANTS", "signatureTimestamp": 19103}}, "contentCheckOk": "True", "racyCheckOk": "True"}'
local header_opt ={'content-type:application/json'}
data = getdata('https://www.youtube.com/youtubei/v1/player?key=' .. youtube_dev_id, nil, postdat, 0, header_opt)
if data then age_formats = true end
Expand Down

0 comments on commit d231a4a

Please sign in to comment.