mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 12:54:58 +00:00
Helper function to retrieve devices real names
Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
This commit is contained in:
parent
b8412dd68a
commit
2a5be42203
@ -31,9 +31,22 @@ device = {}
|
|||||||
|
|
||||||
|
|
||||||
def getDevicesCodenames():
|
def getDevicesCodenames():
|
||||||
|
"""Returns a list containing devices codenames"""
|
||||||
return config.sections()
|
return config.sections()
|
||||||
|
|
||||||
|
|
||||||
|
def getDevicesReadableNames():
|
||||||
|
"""Returns a list of tuples (codename, userReadableName)
|
||||||
|
for each device"""
|
||||||
|
sections = getDevicesCodenames()
|
||||||
|
output = []
|
||||||
|
for s in sections:
|
||||||
|
device = config[s]['userreadablename']
|
||||||
|
output.append({'codename': s,
|
||||||
|
'readableName': config[s]['userreadablename']})
|
||||||
|
return output
|
||||||
|
|
||||||
|
|
||||||
def getDeviceConfig():
|
def getDeviceConfig():
|
||||||
libList = device['sharedlibraries'].split(",")
|
libList = device['sharedlibraries'].split(",")
|
||||||
featureList = device['features'].split(",")
|
featureList = device['features'].split(",")
|
||||||
|
Loading…
Reference in New Issue
Block a user