Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix not corectly passed parameters in callInThread call
Added User-Agent header since some servers are answering 403 if they are missing
- Loading branch information
5f9335c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have had to revert to Commits on Jan 18, 2023 because EPGImporter was not pulling in my providers via jedimakerxtream, but it does work with xstreamity
running latest version of openatv7.3
getting this error in debug.log
14:02:06.5745 [EPGImport][threadGetPage] error: Exceeded 30 redirects.
14:02:06.5746 [EPGImport][downloadFail] download failed: Exceeded 30 redirects
5f9335c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henrylicious thanks for fixing this stupid label error.
@urie57 -you might have a word with Kiddac as its not directly an import issue. With the test files I use there are upto 3 redirects and they are handled corrcetly, so not sure why/how there are so many redirects from one url.
5f9335c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reply I will talk to KiddaC.
5f9335c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the possible cause of this might be jedimakerxtream wraps urls in cdata wrapper. As those urls have querystrings.
example
<url><![CDATA[http://blah.uk:8080/xmltv.php?username=blah&password=blah&next_days=7]]></url>
in xstreamity I don't use cdata tags but instead convert ampersands in the querystring to
&
jedimakerxtream plugin is old now and wrote it a long time ago. Its not really in a position to be updated. There is a totally new version being written in the background.
but from the conversation above, I presume .encode() might still be needed on the url for lots of iptv plugins that used the cdata method in the sources xml.
response = get(url, verify=False, headers=urlheaders, timeout=15)
5f9335c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have all been doing some testing tonight. Pretty sure what I wrote above is not the reason anymore.
But some observations so far.
You are creating filenames from urls, without correctly removing illegal characters that are not allowed in filenames.
If a host has a port number. The filename will include colons.
There is definitely a redirect issue for any urls that redirect. Redirects are failing.