2017-07-12, 01:06
Hi all,
I'm having an issue with playing an MP4 with my addon which comes from a specific source. I scrape other Mp4's with my plugin and they work perfectly, but anything from tunefiles fails?
This mp4 plays perfectly in a browser, but the exact same link fails in Kodi with:
This is the link:
And my get_url code is below (which works for everything else... I have a ton of media that I scrape)
Any suggestions?
I'm having an issue with playing an MP4 with my addon which comes from a specific source. I scrape other Mp4's with my plugin and they work perfectly, but anything from tunefiles fails?
This mp4 plays perfectly in a browser, but the exact same link fails in Kodi with:
Code:
08:12:25.014 T:5760 ERROR: CDVDDemuxFFmpeg::Open - Error, could not open file
This is the link:
Code:
https://cw011.tunefiles.com/files/videos/2017/07/10/149963244429bf7-720.mp4
And my get_url code is below (which works for everything else... I have a ton of media that I scrape)
Code:
def get_url(url):
req = urllib2.Request(url)
req.add_header('User-agent', 'Mozilla/5.0 (X11; Linux x86_64; SmartTV) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'),('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'),('Accept-Encoding', 'none'),('Accept-Language', 'en-US,en;q=0.8'),('Connection', 'keep-alive')
req.add_header('Referer', url)
response = urllib2.urlopen(req)
link=response.read()
response.close()
return link
Any suggestions?