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
Using the mobile browser as a resolver #279
Comments
Welcome @doko-desuka Yes it is a neat idea, but should be used as a last resort probably for sites locked behind click captcha/recaptcha such as netu or heavy js obfuscation such as mycloud/streamrapid. |
Thanks for reading all of that @Gujal00. I wanted to let you know about the reference code in there, so since you saw it I'll close this now. I've thought of a way to improve the process so I don't have to go around the web searching for sources.
* For others like me who are new to IT, a static local IP address is usually something like 192.168.1.### (with ### being for a number between 1 and 255), which you set up in the Wi-Fi or Ethernet system settings of your device where Kodi will be used. It's not a Kodi setting, but an Android system setting: you need to use a static local IP instead of 'dynamic IP with DHCP' for the Kodi device, because the browser extension needs to know exactly what static local IP to send the POST request with details. |
(Oh, and I had to install uBlock Origin on Kiwi browser because, as you said, there were so many ads that some hosters were literally unplayable because each click redirected the video player page... Thankfully uBlock solved that for now.) |
Yeah that is the reason why I dont like to ask average users to browse to ad laden sites on a mobile browser. It is okay for tech savvy people but the average user would use it without a proper setup and then complain that kodi infected their mobile phone with malware. |
Hi Gujal00. It's because of little changes like these:
...that I was thinking if there wasn't a definitive solution.
Using the WebExtension API we can create a browser extension that can listen to the headers and destination URLs of all requests that your browser makes.
So I tested making an extension that did that: https://github.com/doko-desuka/StreamCatcher
On Kodi, in an add-on, you have some Python code listening until it receives the URL + headers that the extension on the phone has prepared and sent it:
StreamCatcher_Demo.mp4
It's working on an Android phone (using the Kiwi browser) + Android TV box setup.
There's a few sources it can't detectIt detected all hosters I tried. This includes some reCaptcha-protected videos, because the browser passes the test of course. Anything you can watch on the Kiwi browser is potentially playable on Kodi.I think this can finally make so many updates unnecessary. The process becomes:
And this isn't cheating, as we aren't scraping anything: we're visiting these sites on our phones, so we're shown ads, promotions etc. The website owners aren't being explored. This is simply "instead of playing it on my phone screen, play it on my Kodi device".
Cheers
The text was updated successfully, but these errors were encountered: