Skip to content

Commit 79f6ab3

Browse files
committed
encode response to utf-8
1 parent 76f105d commit 79f6ab3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def startup(self):
4545
if path:
4646
self.vlc_process = subprocess.Popen([path, "--extraintf=http"])
4747
else:
48-
print("VLC not found or unsupported platform.")
48+
print.error("VLC not found or unsupported platform.")
4949

5050
async def run(self):
5151
self.startup()

src/fetching.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def getVlcStatus(password, port, host="localhost"):
66
try:
77
response = requests.get(url, auth=HTTPBasicAuth('', password))
88
if response.status_code == 200:
9+
response.encoding = "utf-8"
910
data = response.json()
1011
meta = data.get('information', {}).get('category', {}).get('meta', {})
1112
return {

0 commit comments

Comments
 (0)