mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Separate export poster and art
This commit is contained in:
parent
0203a1d4dc
commit
6bc7de7a6d
6 changed files with 63 additions and 34 deletions
|
@ -70,12 +70,19 @@ DOCUMENTATION :: END
|
|||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="export_include_images" name="export_include_images" value="1"> Export artwork and posters
|
||||
<input type="checkbox" id="export_include_thumb" name="export_include_thumb" value="1"> Export poster / cover images
|
||||
</label>
|
||||
<p class="help-block">
|
||||
Enable to export artwork and poster image files. Warning: This will take a long time!<br>
|
||||
Note: Only applies to movies, shows, seasons, artists, albums, collections, and playlists.
|
||||
</p>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" id="export_include_art" name="export_include_art" value="1"> Export background artwork images
|
||||
</label>
|
||||
</div>
|
||||
<p class="help-block">
|
||||
Enable to export posters and covers or background artwork image files.<br>
|
||||
Warning: Exporting images may take a long time!<br>
|
||||
Note: Only applies to movies, shows, seasons, artists, albums, collections, and playlists.
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -93,7 +100,8 @@ DOCUMENTATION :: END
|
|||
var metadata_export_level = $('#metadata_export_level_select option:selected').val();
|
||||
var media_info_export_level = $('#media_info_export_level_select option:selected').val();
|
||||
var file_format = $('#file_format_select option:selected').val();
|
||||
var include_images = $("#export_include_images").is(':checked') ? 1 : 0;
|
||||
var include_thumb = $("#export_include_thumb").is(':checked') ? 1 : 0;
|
||||
var include_art = $("#export_include_art").is(':checked') ? 1 : 0;
|
||||
|
||||
$.ajax({
|
||||
url: 'export_metadata',
|
||||
|
@ -103,7 +111,8 @@ DOCUMENTATION :: END
|
|||
metadata_level: metadata_export_level,
|
||||
media_info_level: media_info_export_level,
|
||||
file_format: file_format,
|
||||
include_images: include_images
|
||||
include_thumb: include_thumb,
|
||||
include_art: include_art
|
||||
},
|
||||
async: true,
|
||||
success: function (data) {
|
||||
|
|
|
@ -85,7 +85,7 @@ export_table_options = {
|
|||
"createdCell": function (td, cellData, rowData, row, col) {
|
||||
if (cellData !== '') {
|
||||
var images = '';
|
||||
if (rowData['include_images']) {
|
||||
if (rowData['include_thumb'] || rowData['include_art']) {
|
||||
images = ' + images';
|
||||
}
|
||||
$(td).html(cellData + images);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue