Badchip Posted July 8, 2022 Share Posted July 8, 2022 I'm trying to get the live stream (.mpd) URL using "File_Get_Contents" with JS but I get a "304 Not Modified" status code. Is there any way to get it or it's not possible? I can do it with PHP but then the url only works locally. <script> function file_get_contents(filename) { fetch(filename).then((resp) => resp.text()).then(function(data) { url = JSON.parse(data); location.replace(url['delivery']['url']); }); } file_get_contents('https://mediainfo.tf1.fr/mediainfocombo/L_LCI'); </script> Thank you in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now