Skip to content

Commit

Permalink
set encoding (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
DYefremov committed Sep 23, 2023
1 parent 29171ef commit b48c129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/lib/tvdemon/app/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def get_playlist(self, provider, refresh=False) -> bool:
def check_playlist(self, provider):
legit = False
if os.path.exists(provider.path):
with open(provider.path, "r") as file:
with open(provider.path, "r", encoding="utf-8", errors="ignore") as file:
content = file.read()
if "#EXTM3U" in content and "#EXTINF" in content:
legit = True
Expand Down

0 comments on commit b48c129

Please sign in to comment.