From a4ba6542c9823d799941ece19b2d257cfe9f8b1d Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sat, 14 Nov 2020 18:13:27 +0100 Subject: [PATCH] fix guessit py3 --- lib/guessit/rules/properties/website.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guessit/rules/properties/website.py b/lib/guessit/rules/properties/website.py index b01e86c8..cbf677a3 100644 --- a/lib/guessit/rules/properties/website.py +++ b/lib/guessit/rules/properties/website.py @@ -29,7 +29,7 @@ def website(config): rebulk = rebulk.regex_defaults(flags=re.IGNORECASE).string_defaults(ignore_case=True) rebulk.defaults(name="website") - with open(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'tlds-alpha-by-domain.txt')) as tld_file: + with open(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'tlds-alpha-by-domain.txt'), 'rb') as tld_file: tlds = [ tld.strip().decode('utf-8') for tld in tld_file.readlines()