mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
13 lines
No EOL
391 B
Python
13 lines
No EOL
391 B
Python
class InvalidCategoryException(Exception):
|
|
pass
|
|
|
|
class Category(object):
|
|
def __init__(self, id, parent_api):
|
|
self.id = id
|
|
self.parent_api = parent_api
|
|
self.name = None
|
|
|
|
self.parent_api.cached_categories[self.id] = self # add self to cache of known Category objects
|
|
|
|
def __repr__(self):
|
|
return "Category: %s - id: %s" % (self.name, self.id) |