mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix styling and sorting for for recently added items.
This commit is contained in:
parent
9eca41d56f
commit
253a1efb3a
3 changed files with 5 additions and 5 deletions
|
@ -220,7 +220,7 @@ class PmsConnect(object):
|
|||
recent_items = {}
|
||||
recents_list.append(recent_items)
|
||||
|
||||
output = {'recently_added': recents_list}
|
||||
output = {'recently_added': sorted(recents_list, key=lambda k: k['addedAt'], reverse=True)}
|
||||
return output
|
||||
|
||||
"""
|
||||
|
@ -562,9 +562,9 @@ class PmsConnect(object):
|
|||
try:
|
||||
http_handler = HTTPConnection(self.host, self.port, timeout=10)
|
||||
if width != '0' and height != '0':
|
||||
image_path = '/photo/:/transcode?url=http://127.0.0.1:' + self.port + img + '&width=' + width + '&height=' + height
|
||||
image_path = '/photo/:/transcode?url=http://127.0.0.1:32400' + img + '&width=' + width + '&height=' + height
|
||||
else:
|
||||
image_path = '/photo/:/transcode?url=http://127.0.0.1:' + self.port + img
|
||||
image_path = '/photo/:/transcode?url=http://127.0.0.1:32400' + img
|
||||
http_handler.request("GET", image_path + '&X-Plex-Token=' + self.token)
|
||||
response = http_handler.getresponse()
|
||||
request_status = response.status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue