Browse Source

Add "Size" filter '=0' in history view to filter already deleted media.

tags/release_0.25.1
JackDandy 4 years ago
parent
commit
f6f1362016
  1. 1
      CHANGES.md
  2. 1
      gui/slick/interfaces/default/history.tmpl
  3. 4
      gui/slick/js/history.js

1
CHANGES.md

@ -88,6 +88,7 @@
* Add return paused "Only" to API * Add return paused "Only" to API
* Change Add shows/Search results first aired dates to UI date format setting * Change Add shows/Search results first aired dates to UI date format setting
* Change improve the search progress text * Change improve the search progress text
* Add "Size" filter '=0' in history view to filter already deleted media
[develop changelog] [develop changelog]

1
gui/slick/interfaces/default/history.tmpl

@ -397,6 +397,7 @@
<li>Event Date/Age, or Played: <span class="grey-text">&gt;7 and &lt;60</span> (between 7d and 60d) , <span class="grey-text">&gt;1</span> (played more than once)</li> <li>Event Date/Age, or Played: <span class="grey-text">&gt;7 and &lt;60</span> (between 7d and 60d) , <span class="grey-text">&gt;1</span> (played more than once)</li>
<li>Label (Profile): <span class="grey-text">emby or kodi</span> , <span class="grey-text">!kodi and !plex</span> , <span class="grey-text">emby user2</span> , <span class="grey-text">emby user"</span> (single end quote excludes user2)</li> <li>Label (Profile): <span class="grey-text">emby or kodi</span> , <span class="grey-text">!kodi and !plex</span> , <span class="grey-text">emby user2</span> , <span class="grey-text">emby user"</span> (single end quote excludes user2)</li>
<li>Quality: <span class="grey-text">sd or dl</span> , <span class="grey-text">blu</span></li> <li>Quality: <span class="grey-text">sd or dl</span> , <span class="grey-text">blu</span></li>
<li>Size: <span class="grey-text">=0</span> (deleted media) <span class="grey-text">>321000000</span> (files greater than byte size)</li>
</ul> </ul>
</td> </td>
</tr> </tr>

4
gui/slick/js/history.js

@ -68,7 +68,9 @@ $(document).ready(function() {
return $(node).find('span[data-sort]').attr('data-sort'); return $(node).find('span[data-sort]').attr('data-sort');
}, },
5: function(node) { 5: function(node) {
return $(node).find('span[data-sort]').attr('data-sort'); return !!$(node).siblings('.tvShow').eq(0).find('.strike-deleted').length
? 0
: $(node).find('span[data-sort]').attr('data-sort');
}, },
6: function (node) { 6: function (node) {
return $(node).find('input:checked').length; return $(node).find('input:checked').length;

Loading…
Cancel
Save