mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
parent
fd9ed1291d
commit
4ec8ef3ab3
1 changed files with 5 additions and 1 deletions
|
@ -1815,7 +1815,11 @@ class Export(object):
|
||||||
# Only playlists export allowed for users
|
# Only playlists export allowed for users
|
||||||
items = self.obj.playlists()
|
items = self.obj.playlists()
|
||||||
else:
|
else:
|
||||||
method = getattr(self.obj, self.export_type)
|
if self.export_type != 'all':
|
||||||
|
export_method = self.export_type + 's'
|
||||||
|
else:
|
||||||
|
export_method = self.export_type
|
||||||
|
method = getattr(self.obj, export_method)
|
||||||
items = method()
|
items = method()
|
||||||
|
|
||||||
self.total_items = len(items)
|
self.total_items = len(items)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue