Index: action.py ================================================================== --- action.py +++ action.py @@ -372,11 +372,11 @@ if text: self.src = text # Only read filename if it matches allowed extension if fn and self.probe_ext(fn): self.fn = fn - self.src = open(fn, "rt").read() + self.src = open(fn, conf.open_mode).read() # Test URL/path "extension" for ".pls" / ".m3u" etc. def probe_ext(self, url): e = re.findall("\.(pls|m3u|xspf|jspf|asx|wpl|wsf|smil|html|url|json|desktop)\d?$", url)