garret1317 / yt-dlp-rajiko

improved radiko.jp extractor for yt-dlp
https://427738.xyz/yt-dlp-rajiko/
Other
32 stars 1 forks source link

Does it work with timefree 30 now? #22

Closed cykac04 closed 3 days ago

cykac04 commented 4 days ago

I have tried to pass cookies by cookie.txt and browser but it still said the cookies not work.

yt-dlp "https://radiko.jp/#!/ts/802/20241025170000" --cookies "C:\Users\User\Documents\radiko.txt" [RadikoTimeFree] Extracting URL: https://radiko.jp/#!/ts/802/20241025170000 [RadikoTimeFree] 802: Downloading programme data ERROR: [RadikoTimeFree] 20241025170000: Programme is only available with a Timefree 30 subscription. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies

garret1317 commented 4 days ago

No, it doesn't work at the minute, sorry. I put the code to handle it there half-finished, for me to complete later once I'd figured out how to handle the login etc and then when it's done I'd make a release with the working version. I wasn't expecting anyone to be running off the master branch...

garret1317 commented 4 days ago

d84e4dbe4f4b1be71e17072dc2a2f3685b9a2997 give this a go, should work

note that the usual on-demand stream provider doesn't have timefree30 stuff, so we have to use one that streams it as-live so you can only download in real-time unfortunately ("record" would be the better word i guess)

cykac04 commented 4 days ago

I have found your commit in yt-dlp and it works like this. Is that extractor still not work properly yet?

yt-dlp "https://radiko.jp/#!/ts/802/20241025170000" --cookies radiko.txt [Radiko] Extracting URL: https://radiko.jp/#!/ts/802/20241025170000 [Radiko] Checking account status from cookies [Radiko] 802: Downloading programme information for 20241025 [Radiko] Checking cached token [Radiko] 802-20241025170000: Downloading stream information [Radiko] 802-20241025170000: Downloading m3u8 information from tf-f-rpaa-radiko.smartstream.ne.jp WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden [Radiko] 802-20241025170000: Downloading m3u8 information from tf-c-rpaa-radiko.smartstream.ne.jp WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden [Radiko] 802-20241025170000: Downloading m3u8 information from rd-wowza-radiko.radiko-cf.com WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden [Radiko] 802-20241025170000: Downloading m3u8 information from radiko.jp WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden ERROR: [Radiko] 802-20241025170000: No video formats found!; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

garret1317 commented 4 days ago

clear your yt-dlp cache (--rm-cache-dir), it's using an old auth token from when you weren't signed in then it should work but yeah as you can see it's still a bit rough around the edges

cykac04 commented 4 days ago

Still 403 error. Should I share the account to you?

yt-dlp "https://radiko.jp/#!/ts/802/20241025170000" --rm-cache-dir --username "" --password "" Removing cache dir C:\Users\ADMIN/.cache\yt-dlp ... [Radiko] Logging in [Radiko] Extracting URL: https://radiko.jp/#!/ts/802/20241025170000 [Radiko] 802: Downloading programme information for 20241025 [Radiko] Downloading authentication page [Radiko] Downloading player js code [Radiko] Authenticating [Radiko] 802-20241025170000: Downloading stream information [Radiko] 802-20241025170000: Downloading m3u8 information from tf-f-rpaa-radiko.smartstream.ne.jp WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden [Radiko] 802-20241025170000: Downloading m3u8 information from tf-c-rpaa-radiko.smartstream.ne.jp WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden [Radiko] 802-20241025170000: Downloading m3u8 information from rd-wowza-radiko.radiko-cf.com WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden [Radiko] 802-20241025170000: Downloading m3u8 information from radiko.jp WARNING: [Radiko] Failed to download m3u8 information: HTTP Error 403: Forbidden ERROR: [Radiko] 802-20241025170000: No video formats found!; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

garret1317 commented 4 days ago

i might be able to diagnose with a verbose log from the plugin but sure, send to garret1317@yandex.com or garret1317 on discord

garret1317 commented 4 days ago

per discussion on discord: my patch for yt-dlp proper doesn't work with areafree, because it's requesting with type=b (seems to be only for in-area), but it should be using type=c (seems to be for areafree) https://github.com/yt-dlp/yt-dlp/pull/11498#issuecomment-2493782013 plugin works because it always sets itself to be in area