mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-11 02:46:34 +00:00
Peer review comments
This commit is contained in:
parent
0108ed15e2
commit
7fab07661f
1 changed files with 2 additions and 1 deletions
|
|
@ -342,7 +342,8 @@ def get_credentials():
|
||||||
elif os.path.exists(os.path.join(ADDON_DATA, 'data.txt')):
|
elif os.path.exists(os.path.join(ADDON_DATA, 'data.txt')):
|
||||||
os.rename(os.path.join(ADDON_DATA, 'data.txt'), os.path.join(ADDON_DATA, 'data.json'))
|
os.rename(os.path.join(ADDON_DATA, 'data.txt'), os.path.join(ADDON_DATA, 'data.json'))
|
||||||
else:
|
else:
|
||||||
open(os.path.join(ADDON_DATA, 'data.json'), 'a')
|
with open(os.path.join(ADDON_DATA, 'data.json'), 'w'):
|
||||||
|
pass
|
||||||
|
|
||||||
with open(os.path.join(ADDON_DATA, 'data.json')) as infile:
|
with open(os.path.join(ADDON_DATA, 'data.json')) as infile:
|
||||||
credentials = json.load(infile)
|
credentials = json.load(infile)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue