Skip to content

Conversation

@Dobi-Dev
Copy link

Some improvement or fix.
Don't hesitate to ask me if something seems to be wrong or if I must change something.

Dobi-Dev and others added 18 commits May 9, 2020 18:15
The encoding of the XML TV file can be found either:
 1. with a regular expression on the encoding tag in the XML file
 2. or using the chardet.detect() function on the content of the XML file

Option 1 is improved by updating the regex: an encoding tag using
single quotes will also be detected now.

Option 2 could last more than several minutes for huge files. So if the
file has more than 50,000 characters, the detection is done only on the
first 50,000 characters (which should be enough to detect the encoding).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants