1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

separate musicbrainz from lastfm artist providers

This commit is contained in:
Luke Pulverenti 2014-02-02 11:59:14 -05:00
parent 5ce0e6c170
commit 83bb25da8a
2 changed files with 22 additions and 2 deletions

View file

@ -50,6 +50,18 @@
</div>
</div>
<div class="screenshotFields" style="margin-bottom: 2em; display: none;">
<div>
<label for="txtMaxScreenshots">Max number of screenshots per item: </label>
<input type="number" id="txtMaxScreenshots" name="txtMaxScreenshots" pattern="[0-9]*" required="required" min="1" data-mini="true" />
</div>
<div>
<label for="txtMinScreenshotDownloadWidth">Minimum screenshot download width: </label>
<input type="number" id="txtMinScreenshotDownloadWidth" name="txtMinScreenshotDownloadWidth" pattern="[0-9]*" required="required" min="1" data-mini="true" />
</div>
</div>
<fieldset data-role="controlgroup" style="border-bottom: 1px solid #ddd;">
<legend>Fetch Images:</legend>
<div class="imageType" data-imagetype="Primary" style="display: none;">

View file

@ -59,6 +59,12 @@
$('.backdropFields', page).show();
}
if (metadataInfo.SupportedImageTypes.indexOf('Screenshot') == -1) {
$('.screenshotFields', page).hide();
} else {
$('.screenshotFields', page).show();
}
$('.imageType', page).each(function () {
var imageType = this.getAttribute('data-imagetype');
@ -244,7 +250,8 @@
{ name: 'Artist', type: 'MusicArtist' },
{ name: 'Album', type: 'MusicAlbum' },
{ name: 'Song', type: 'Audio' }
{ name: 'Song', type: 'Audio' },
{ name: 'Music Video', type: 'MusicVideo' }
]);
$('.musicTab', page).addClass('ui-btn-active');
@ -258,7 +265,8 @@
{ name: 'Game Genre', type: 'GameGenre' },
{ name: 'Music Genre', type: 'MusicGenre' },
{ name: 'Studio', type: 'Studio' },
{ name: 'Book', type: 'Book' }
{ name: 'Book', type: 'Book' },
{ name: 'Adult Video', type: 'AdultVideo' }
]);
$('.othersTab', page).addClass('ui-btn-active');