Giter Site home page Giter Site logo

Comments (9)

Gujal00 avatar Gujal00 commented on August 21, 2024

@jsergio123 it is failing as SMR is using a defunct UA. Using any other UA works.

curl -I http://185.176.192.20/vids/<-edited->___5a3de7817874b.mp4 -e http://entervideo.net/ -A "Mozilla/5.0 (Windows NT 6.3; Win64; IA64; Trident/7.0; rv:11.0) like Gecko"
HTTP/1.1 403 Forbidden
Server: nginx/1.10.3
Date: Mon, 20 Aug 2018 00:08:30 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive

curl -I http://185.176.192.20/vids/<-edited->___5a3de7817874b.mp4 -e http://entervideo.net/ -A iPad
HTTP/1.1 200 OK
Server: nginx/1.10.3
Date: Mon, 20 Aug 2018 00:03:31 GMT
Content-Type: video/mp4
Content-Length: 633247129
Last-Modified: Sat, 23 Dec 2017 05:29:11 GMT
Connection: keep-alive
ETag: "5a3de9a7-25be9599"
Expires: Wed, 28 Nov 2018 00:03:31 GMT
Cache-Control: max-age=8640000
Access-Control-Allow-Headers: *
Access-Control-Expose-Headers: Server,range,Content-Length,Content-Range
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Origin: *
Accept-Ranges: bytes

from script.module.resolveurl.

jsergio123 avatar jsergio123 commented on August 21, 2024

@Gujal00 entervideo uses the generic resolver which uses a random user agent. I have removed the IE user agent and substituted it for the EDGE user agent. Let me know if this fixes the issues. Thanks for debugging it.
917c4ea
dbd9419

from script.module.resolveurl.

kylesheila avatar kylesheila commented on August 21, 2024

You guys are awesome, thanks so much for all you do

from script.module.resolveurl.

Gujal00 avatar Gujal00 commented on August 21, 2024

@jsergio123
I think the issue is still there as I see this in the final request
User-Agent=Mozilla/5.0 (Windows NT 6.3; Win64; IA64; Trident/7.0; rv:11.0) like Gecko
The issue is IA64 architecture for Windows doesn't exist, so I presume that UA is rejected
Edge UA is as below
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
I did a quick check on where it could be coming from and I see it defined here
lib/resolveurl/lib/net.py:FEATURES = ['; WOW64', '; Win64; IA64', '; Win64; x64', '']

from script.module.resolveurl.

jsergio123 avatar jsergio123 commented on August 21, 2024

@Gujal00 oops you're right, missed that lol. I'll update them tomorrow. I might just dump the whole get_ua code and just have it return one random ua from the common.py. What do you think?

from script.module.resolveurl.

Gujal00 avatar Gujal00 commented on August 21, 2024

@jsergio123 Yeah, I think it is better to have some 10 latest UAs from a few different platforms in common.py and be done with it

from script.module.resolveurl.

jsergio123 avatar jsergio123 commented on August 21, 2024

@Gujal00 here try this please 7df9e61

from script.module.resolveurl.

Gujal00 avatar Gujal00 commented on August 21, 2024

Yes, entervideo works now with the new common.py. Thanks

from script.module.resolveurl.

jsergio123 avatar jsergio123 commented on August 21, 2024

Great thanks for everything

from script.module.resolveurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.