I am developing a Chrome extension which provides additional subtitles for Netflix.com
I need to detect the moment when Netflix preload trailer is successfully played.
– For Netflix original content it's 6 seconds from the beginning of the video.
– For third-party content (not Netflix) it's 3 seconds.
Since Netflix API is not available for public I am wondering how to detect if video is "Netflix original" content or not.
Both times links and title don't include special parameters.
Link to Netflix original content ("Orange is the new black" series):
https://www.netflix.com/watch/70259443?trackId=14170286&tctx=5%2C1%2C2b463a20-083c-4bc2-99db-5d8a82300233-330725099
Link to Non-Netflix original ("Supergirl" series):
https://www.netflix.com/watch/80120392?trackId=14170035&tctx=4%2C2%2C2b463a20-083c-4bc2-99db-5d8a82300233-330725099
Please, help me to detect the difference. Any ideas?
You can scrape the result of those links. Then you can find a javascript variable called netflix.falcorCache
. Inside that variable, one of the fields is "isOriginal:true
" or "isOriginal:false
".