Code Docs

General utils

resources.lib.utils.__get_mac_address(delay=1)[source]

Returns the users mac address

Parameters:delay (int) – retry delay in sec
Returns:string – Devices MAC address
resources.lib.utils.get_class_methods(class_item=None)[source]

Returns the class methods of agiven class object

Parameters:class_item (object) – Class item to introspect
Returns:list – Class methods
resources.lib.utils.get_user_agent()[source]

Determines the user agent string for the current platform. Needed to retrieve a valid ESN (except for Android, where the ESN can be generated locally)

Returns:str – User agent string
resources.lib.utils.log(func)[source]

Log decarator that is used to annotate methods & output everything to the Kodi debug log

Parameters:delay (int) – retry delay in sec
Returns:string – Devices MAC address
resources.lib.utils.noop(**kwargs)[source]

Takes everything, does nothing, classic no operation function

resources.lib.utils.uniq_id(delay=1)[source]

Returns a unique id based on the devices MAC address

Parameters:delay (int) – Retry delay in sec
Returns:string – Unique secret

Indices and tables