Skip to content

Commit

Permalink
forget to alter variable at last commit
Browse files Browse the repository at this point in the history
Signed-off-by: Sandmann79 <sandmann79@gmx.net>
  • Loading branch information
Sandmann79 committed Sep 26, 2023
1 parent 4a96e03 commit 5739338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.video.amazon-test/resources/lib/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from .common import Globals, Settings, sleep, parseHTML
from .network import getURL
from .logging import Log, WriteLog, LogJSON
from .l10n import getString
from .l10n import getString, datetimeParser
from .configs import getConfig, writeConfig

try:
Expand Down Expand Up @@ -65,7 +65,7 @@ def getTerritory(user):
user.update(area)
else:
Log('Retrieve territoral config')
loc = ','.join(x[0] for x in _g.supported_langs)
loc = ','.join(k for k, v in datetimeParser.items() if 'language' in v)
data = getURL(
'https://atv-ps.amazon.com/cdp/usage/v3/GetAppStartupConfig?deviceTypeID=A28RQHJKHM2A2W&deviceID=%s&firmware=1&version=1&supportedLocales=%s&format=json'
% (user['deviceid'], loc))
Expand Down

0 comments on commit 5739338

Please sign in to comment.