Change clean up

This commit is contained in:
JackDandy 2024-06-16 17:05:11 +01:00
parent a6122aae66
commit 84d1d81d45
3 changed files with 29 additions and 17 deletions

View file

@ -22,7 +22,8 @@
* Update urllib3 2.0.7 (56f01e0) to 2.2.1 (54d6edf) * Update urllib3 2.0.7 (56f01e0) to 2.2.1 (54d6edf)
* Change growl notifier location for Apprise update refactor * Change growl notifier location for Apprise update refactor
* Change systemd remove py2 and add basic hardening options * Change systemd remove py2 and add basic hardening options
* Change alphabetically sort list at edit show/Exclude global ignore/require words * Change alphabetically sort list at edit show/Exclude global ignore/require words
* Add search on TVmaze, TMDb, or Trakt for other shows with the actor that is viewed on Person page
### 3.31.1 (2024-06-14 01:00:00 UTC) ### 3.31.1 (2024-06-14 01:00:00 UTC)

View file

@ -146,15 +146,17 @@ def param(visible=True, rid=None, cache_person=None, cache_char=None, person=Non
#end if #end if
<style> <style>
#vitals{clear:both} .vitals{clear:both}
.details-title{width:90px !important}
.details-info{margin-left:95px !important}
.details-info.akas{max-height:100px; overflow:auto; min-width:300px; word-break:normal} .details-info.akas{max-height:100px; overflow:auto; min-width:300px; word-break:normal}
.details-info i{font-style:normal; font-size:smaller} .details-info i{font-style:normal; font-size:smaller}
.links{display:block; padding:0} .links{display:block; padding:0; margin:3px 0 0}
.links li{display: inline-block; padding:0 10px 0 0} .links li{display: inline-block; padding:0 10px 0 0}
.links img{margin-bottom: -1px; vertical-align:initial} .links img{margin-bottom: -1px; vertical-align:initial}
</style> </style>
<div class="#vitals" data-birthdate="$person.birthday" data-deathdate="$person.deathday"> <div class="vitals" data-birthdate="$person.birthday" data-deathdate="$person.deathday">
#if $person.real_name #if $person.real_name
<div><span class="details-title">Real name</span><span class="details-info">$person.real_name</span></div> <div><span class="details-title">Real name</span><span class="details-info">$person.real_name</span></div>
#end if #end if
@ -209,14 +211,21 @@ def param(visible=True, rid=None, cache_person=None, cache_char=None, person=Non
</span> </span>
</div> </div>
#end if #end if
#if $person.ids.get($TVINFO_TRAKT) #set $src = (($TVINFO_TVMAZE, 'tvm'), ($TVINFO_TMDB, 'tmdb'), ($TVINFO_TRAKT, 'trakt'))
<div></div><span><a href="$sbRoot/add-shows/trakt-person?person_trakt_id=$person.ids.get($TVINFO_TRAKT)">Search Shows on Trake</a></span></div> #if any([$person.ids.get($cur_src) for ($cur_src, _) in $src])
#end if <div>
#if $person.ids.get($TVINFO_TMDB) <span class="details-title">Other shows</span>
<div><span><a href="$sbRoot/add-shows/tmdb-person?person_tmdb_id=$person.ids.get($TVINFO_TMDB)">Search Shows on TMDB</a></span></div> <span class="details-info">
#end if <ul class="links">
#if $person.ids.get($TVINFO_TVMAZE) #for ($cur_src, $cur_api) in $src
<div><span><a href="$sbRoot/add-shows/tvm-person?person_tvm_id=$person.ids.get($TVINFO_TVMAZE)">Search Shows on TVMaze</a></span></div> #if $person.ids.get($cur_src)
<img alt="$TVInfoAPI($cur_src).name" height="16" width="16" src="$sbRoot/images/$TVInfoAPI($cur_src).config['icon']">#slurp
<li><a href="$sbRoot/add-shows/${cur_api}-person?person_${cur_api}_id=$person.ids.get($cur_src)">$TVInfoAPI($cur_src).name</a></li>
#end if
#end for
</ul>
</span>
</div>
#end if #end if
</div> </div>

View file

@ -464,17 +464,19 @@ $(document).ready(function(){
<input id="search_show_name" class="search form-control form-control-inline input-sm input200" type="search" placeholder="Filter Show Name#if $use_network#/Network#end if#"> <input id="search_show_name" class="search form-control form-control-inline input-sm input200" type="search" placeholder="Filter Show Name#if $use_network#/Network#end if#">
&nbsp;<button type="button" class="resetshows btn btn-inline">Reset Filter</button> &nbsp;<button type="button" class="resetshows btn btn-inline">Reset Filter</button>
</div> </div>
#if $p_ref
<div class="browse-image">
<a class="browse-image" href="$sbRoot/imagecache/person?pid=$p_ref&thumb=1" rel="dialog"><img src="$sbRoot/imagecache/person?pid=$p_ref&thumb=0" class="browse-image"></a>
</div>
#end if
<h4 style="float:left;margin:0 0 0 2px">$browse_title</h4> <h4 style="float:left;margin:0 0 0 2px">$browse_title</h4>
#if $kwargs and $kwargs.get('oldest') #if $kwargs and $kwargs.get('oldest')
<div class="grey-text" style="clear:left;margin-left:2px;font-size:0.85em"> <div class="grey-text" style="clear:left;margin-left:2px;font-size:0.85em">
First aired from $kwargs['oldest'] until $kwargs['newest'] First aired from $kwargs['oldest'] until $kwargs['newest']
</div> </div>
#end if #end if
#if $p_ref
<div class="browse-image" style="margin: 10px 2px 30px; border-radius: 5px">
<a class="browse-image" href="$sbRoot/imagecache/person?pid=$p_ref&thumb=1" rel="dialog"><img class="browse-image" src="$sbRoot/imagecache/person?pid=$p_ref&thumb=0"></a>
</div>
#end if
#end if #end if
<div id="container"> <div id="container">