magiruuvelvet / LightweightQtDRMStreamViewer

A lightweight as possible DRM stream viewer based on the Qt Web Engine
MIT License
17 stars 4 forks source link

Script failure on execution MIME #1

Closed ryanmusante closed 6 years ago

ryanmusante commented 6 years ago

Compiled and run with error stating the following ::

 Netflix Player detected! Injecting Netflix 1080p Unlocker...js: Refused to execute script from 'https://assets.nflxext.com/en_us/ffe/player/html/cadmium-playercore-5.0008.803.011.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
omni6 commented 6 years ago

Same here. App works well with urlInterceptor:false but then not in HD. With enabled interceptor i get Netflix error UI3010 Yes i cleaned cache and reloaded...

magiruuvelvet commented 6 years ago

I managed to fix it and it works now. Pushing a commit soon.

Here is a screenshot for proof. screenshot_20180328_093528

The problem was the MIME type. Chromium (the one which Qt uses under the hood) refuses to execute plain text files. raw.githubusercontent.com apparently returns the wrong MIME type. I'm using Rawgit for now. I may mirror the script on my own servers though if it breaks again.

I never quite figured it out what was wrong until now.

magiruuvelvet commented 6 years ago

Fixed in e4ea4599a694f8d3480216b5de315a7dec0b205b