-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NHK World vods posted after September 26th, 2023 are broken #8242
Comments
new system prod: {
postMessageTargetOrigin: window.location.origin,
allowDomainListJsonUrl: "https://movie-a.nhk.or.jp/world/player/config/domain-list.json",
geoApiUrl: "https://geocontrol1.stream.ne.jp/nhk-a-geo/check.jsonp",
playerBaseUrl: "/nhkworld/common/player/tv/vod/world/player/",
eq: {
apiUrl: "https://api01-platform.stream.co.jp/apiservice/getMediaByParam/",
subtitleApiUrl: "https://api01-platform.stream.co.jp/apiservice/getSubtitleList/",
token: "NDc4NThCNTkxQzFCNkQ3ODA4NjcwNTZGREYzNURBNzM=",
customMetadataNames: {
domesticFlag: "domesticFlag",
embedType: "embedType",
aaType: "aaType"
}
}, in https://movie-a.nhk.or.jp/world/player/js/movie-player.js (minified)
the js has a |
for this link - https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2049134/ |
Closes #8242 Authored by: garret1317
While English-language videos at
Not sure if these videos were ever intended to function correctly. When I first tried this a few days ago I couldn't download them and simply assumed it had the same root cause mentioned in this ticket. These videos are intended for Japanese out of country so downloadable only outside of Japan. The site sends different HTTP response bodies depending on whether or not it perceives a request source IP address to be within Japan or outside of Japan. When outside of Japan the page shows: By my understanding the videos highlighted with red border don't have any retention, NHK only ever offers the current day's video for download. These two examples are today's 7 pm news (ニュース7 aka nyusu 7) and noon news (正午のニュース aka shogo no nyusu). "Within" Japan you'll get: Basically asking you to to use you NHK Plus account to watch a show you missed or to get yourself an NHK World Premium subscription. Is the |
@Contik |
@bashonly sure thing, opened issue #8303 |
Closes yt-dlp#8242 Authored by: garret1317
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
Canada (but presumably worldwide)
Provide a description that is worded well enough to be understood
It appears NHK World has changed their video player recently, as well as the underlying infrastructure. As a result, episode VODs posted after the transition can't be downloaded by yt-dlp.
There is a Reddit post with other people who have noticed the issue: https://reddit.com/r/NHKWorldFans/comments/16tkdyu/new_video_player_on_nhk/
Examples of URLs that still work for now:
https://www3.nhk.or.jp/nhkworld/en/ondemand/video/4026201/ (Document 72 Hours, Sept. 12)
https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2049133/ (Japan Railway Journal, Sept. 14)
Examples of URLs that don't work:
https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2049134/ (Japan Railway Journal, Sept. 28)
https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2073139/ (J-Arena, Sept. 29)
https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2093047/ (Zero Waste Life, Sept. 29)
The problem is that the Piksel movie-s.nhk.or.jp URL (https://movie-s.nhk.or.jp/v/refid/nhkworld/prefid/nw_vod_v_en_2049_134_20230928233000_01_1695913422) returns a "no data found" message from the server, instead of the usual HTML output the Piksel extractor uses to retrieve the app token and other stuff. A quick scan of the assets API endpoint (https://movie-s.nhk.or.jp/ws/ws_asset/api/67f5b750-b419-11e9-8a16-0e45e8988f42/mode/json/apiv/5?sortdir=desc) shows nothing new since September 26th, and attempting to retrieve episode details using that API for the affected episodes returns no results (compare https://movie-s.nhk.or.jp/ws/ws_asset/api/67f5b750-b419-11e9-8a16-0e45e8988f42/mode/json/apiv/5?title=%25umineko%25&sortdir=asc&start=0&end=99 which returns the Document 72 Hours episode above that works fine, to https://movie-s.nhk.or.jp/ws/ws_asset/api/67f5b750-b419-11e9-8a16-0e45e8988f42/mode/json/apiv/5?title=%25hokuriku%25&sortdir=asc&start=0&end=99 which returns two Cycle Around Japan episodes but NOT the Japan Railway Journal episode that also includes "Hokuriku" in the title).
It is possible to retrieve video streams from the new episodes, though I can't find any 1080p versions anymore. On the NHK World VOD pages, a script calls api01-platform.stream.co.jp/apiservice/getMediaByParam/, which returns a JSON response with a
movie_url
object containing several m3u8 URLs. These contain a 320x180, 640x360 and two 1280x720 stream playlists. Dropping one of the playlist URLs directly into yt-dlp works fine, though I do get a warning "Live HLS streams are not supported by the native downloader. If this is a livestream, please add "--downloader ffmpeg --hls-use-mpegts" to your command".Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: