mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Add ability to unregister mobile devices
This commit is contained in:
parent
f60c978d80
commit
ddf671abd1
6 changed files with 133 additions and 2 deletions
|
@ -548,6 +548,17 @@ def blacklist_logger():
|
|||
logger._BLACKLIST_WORDS.extend(blacklist)
|
||||
|
||||
|
||||
def delete_mobile_device(device_id=None):
|
||||
monitor_db = database.MonitorDatabase()
|
||||
|
||||
if device_id:
|
||||
logger.debug(u"PlexPy Notifiers :: Deleting device_id %s from the database." % device_id)
|
||||
result = monitor_db.action('DELETE FROM mobile_devices WHERE device_id = ?', [device_id])
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
class PrettyMetadata(object):
|
||||
def __init__(self, parameters):
|
||||
self.parameters = parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue