Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into kodi
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Aug 31, 2023
2 parents 74254ca + 1fbe62d commit 742e3d3
Show file tree
Hide file tree
Showing 114 changed files with 11,179 additions and 2,502 deletions.
6 changes: 3 additions & 3 deletions alexarc4shng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(self, id):
##############################################################################

class AlexaRc4shNG(SmartPlugin):
PLUGIN_VERSION = '1.0.3'
PLUGIN_VERSION = '1.0.4'
ALLOW_MULTIINSTANCE = False
"""
Main class of the Plugin. Does all plugin specific stuff and provides
Expand Down Expand Up @@ -1122,7 +1122,7 @@ def auto_login_by_request(self):
"Referer": myLocation
}
newUrl = "https://www.amazon.de"+"/ap/signin/"+actSessionID
postfields = urllib3.request.urlencode(PostData)
postfields = urlencode(PostData)

myStatus,myRespHeader, myRespCookie, myContent = self.send_post_request(newUrl,myHeaders,myCollectionCookie,PostData)
myCollectionTxtCookie = self.parse_response_cookie_2_txt(myRespCookie,myCollectionTxtCookie)
Expand Down Expand Up @@ -1165,7 +1165,7 @@ def auto_login_by_request(self):
myResults.append('MFA : ' + 'use MFA/OTP - Login OTP : {}'.format(mfaCode))


postfields = urllib3.request.urlencode(PostData)
postfields = urlencode(PostData)
myStatus,myRespHeader, myRespCookie, myContent = self.send_post_request(newUrl,myHeaders,myCollectionCookie,PostData)
myCollectionTxtCookie = self.parse_response_cookie_2_txt(myRespCookie,myCollectionTxtCookie)
myCollectionCookie = self.parse_response_cookie(myRespCookie,myCollectionCookie)
Expand Down
2 changes: 1 addition & 1 deletion alexarc4shng/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugin:
maintainer: AndreK
tester: henfri, juergen, psilo
#documentation: https://www.smarthomeng.de/user/plugins/alexarc4shng/user_doc.html # url of documentation
version: 1.0.3 # Plugin version
version: 1.0.4 # Plugin version
sh_minversion: 1.5.2 # minimum shNG version to use this plugin
multi_instance: False # plugin supports multi instance
classname: AlexaRc4shNG # class containing the plugin
Expand Down
8 changes: 8 additions & 0 deletions beolink/locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,23 @@ plugin_translations:
'Produkt Typ': {'de': '=', 'en': 'Product Type'}
'nach Devices suchen': {'de': '=', 'en': 'Scan for devices'}

# translations for the web interface
'B&O Gerät': {'de': '=', 'en': 'B&O Device'}
'Software Version': {'de': '=', 'en': '='}
'Einschalt-Status': {'de': '=', 'en': 'Power State'}
'Quelle': {'de': '=', 'en': 'Source'}

'Audiomode': {'de': '=', 'en': '='}
'Volume': {'de': '=', 'en': '='}
'Muted': {'de': '=', 'en': '='}
'Stand': {'de': '=', 'en': '='}

'standby': {'de': 'Standby', 'en': '='}
'unknown': {'de': 'unbekannt', 'en': '='}
'on': {'de': 'Ein', 'en': '='}
'-': {'de': '=', 'en': '='}

'Wert 4': {'de': '=', 'en': 'Value 4'}
# Alternative format for translations of longer texts:
'Hier kommt der Inhalt des Webinterfaces hin.':
de: '='
Expand Down
Loading

0 comments on commit 742e3d3

Please sign in to comment.