mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added count api methods for studios and genres
This commit is contained in:
parent
8991f9ea45
commit
4c852cbbdc
1 changed files with 18 additions and 0 deletions
|
@ -86,12 +86,30 @@
|
||||||
html += '<label for="radioGuestStar">Guest Starred (' + result.EpisodeGuestStarCount + ')</label>';
|
html += '<label for="radioGuestStar">Guest Starred (' + result.EpisodeGuestStarCount + ')</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.TrailerCount) {
|
||||||
|
|
||||||
|
html += '<input type="radio" name="ibnItems" id="radioTrailers" value="on" data-mini="true">';
|
||||||
|
html += '<label for="radioTrailers">Trailers (' + result.TrailerCount + ')</label>';
|
||||||
|
}
|
||||||
|
|
||||||
if (result.GameCount) {
|
if (result.GameCount) {
|
||||||
|
|
||||||
html += '<input type="radio" name="ibnItems" id="radioGames" value="on" data-mini="true">';
|
html += '<input type="radio" name="ibnItems" id="radioGames" value="on" data-mini="true">';
|
||||||
html += '<label for="radioGames">Games (' + result.SeriesCount + ')</label>';
|
html += '<label for="radioGames">Games (' + result.SeriesCount + ')</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (result.AlbumCount) {
|
||||||
|
|
||||||
|
html += '<input type="radio" name="ibnItems" id="radioAlbums" value="on" data-mini="true">';
|
||||||
|
html += '<label for="radioAlbums">Albums (' + result.AlbumCount + ')</label>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result.SongCount) {
|
||||||
|
|
||||||
|
html += '<input type="radio" name="ibnItems" id="radioSongs" value="on" data-mini="true">';
|
||||||
|
html += '<label for="radioSongs">Songs (' + result.SongCount + ')</label>';
|
||||||
|
}
|
||||||
|
|
||||||
html += '</fieldset>';
|
html += '</fieldset>';
|
||||||
|
|
||||||
var elem = $('#items', page).html(html).trigger('create');
|
var elem = $('#items', page).html(html).trigger('create');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue