Skip to content

Commit

Permalink
Fixed load file decode issue in non-english platform
Browse files Browse the repository at this point in the history
Just a small fix for local file loading issue in non-english platform
  • Loading branch information
frank89722 authored Aug 2, 2020
1 parent f5401c6 commit b28f143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3u8/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def load(uri, timeout=None, headers={}, custom_tags_parser=None, http_client=Def


def _load_from_file(uri, custom_tags_parser=None):
with open(uri) as fileobj:
with open(uri, encoding='utf8') as fileobj:
raw_content = fileobj.read().strip()
base_uri = os.path.dirname(uri)
return M3U8(raw_content, base_uri=base_uri, custom_tags_parser=custom_tags_parser)

0 comments on commit b28f143

Please sign in to comment.