mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add recently added XML shortcut
This commit is contained in:
parent
5736e12bc3
commit
427201a4ce
2 changed files with 6 additions and 2 deletions
|
@ -100,7 +100,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="home-padded-header padded-header">
|
<div class="home-padded-header padded-header">
|
||||||
<h3 class="pull-left">Recently Added</h3>
|
<h3 class="pull-left"><span id="recently-added-xml">Recently Added</span></h3>
|
||||||
<ul class="nav nav-header nav-dashboard pull-right" style="margin-top: -3px;">
|
<ul class="nav nav-header nav-dashboard pull-right" style="margin-top: -3px;">
|
||||||
<li>
|
<li>
|
||||||
<a href="#" id="recently-added-page-left" class="paginate btn-gray disabled" data-id="+1"><i class="fa fa-lg fa-chevron-left"></i></a>
|
<a href="#" id="recently-added-page-left" class="paginate btn-gray disabled" data-id="+1"><i class="fa fa-lg fa-chevron-left"></i></a>
|
||||||
|
@ -847,6 +847,10 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#recently-added-count').tooltip({ container: 'body', placement: 'top', html: true });
|
$('#recently-added-count').tooltip({ container: 'body', placement: 'top', html: true });
|
||||||
|
|
||||||
|
$('#recently-added-xml').on('tripleclick', function () {
|
||||||
|
openPlexXML('/library/recentlyAdded', false, {'X-Plex-Container-Start': 0, 'X-Plex-Container-Size': recently_added_count});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
% endif
|
% endif
|
||||||
% if _session['user_group'] == 'admin' and config['update_show_changelog']:
|
% if _session['user_group'] == 'admin' and config['update_show_changelog']:
|
||||||
|
|
|
@ -278,7 +278,7 @@ class WebInterface(object):
|
||||||
def return_plex_xml_url(self, endpoint='', plextv=False, **kwargs):
|
def return_plex_xml_url(self, endpoint='', plextv=False, **kwargs):
|
||||||
kwargs['X-Plex-Token'] = plexpy.CONFIG.PMS_TOKEN
|
kwargs['X-Plex-Token'] = plexpy.CONFIG.PMS_TOKEN
|
||||||
|
|
||||||
if plextv:
|
if plextv == 'true':
|
||||||
base_url = 'https://plex.tv'
|
base_url = 'https://plex.tv'
|
||||||
else:
|
else:
|
||||||
if plexpy.CONFIG.PMS_URL_OVERRIDE:
|
if plexpy.CONFIG.PMS_URL_OVERRIDE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue