mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Adjust code
This commit is contained in:
parent
a331f7d43d
commit
9453417da0
1 changed files with 3 additions and 4 deletions
|
@ -301,9 +301,8 @@ class PlaybackUtils():
|
||||||
del response
|
del response
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
f = open(path, 'wb')
|
with open(path, 'wb') as f:
|
||||||
f.write(response.content)
|
f.write(response.content)
|
||||||
f.close()
|
|
||||||
del response
|
del response
|
||||||
|
|
||||||
return path
|
return path
|
||||||
|
|
Loading…
Reference in a new issue