mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update auto-organize
This commit is contained in:
parent
8aa5acfee4
commit
d665b12b82
4 changed files with 48 additions and 24 deletions
|
@ -30,21 +30,17 @@
|
|||
<div class="fieldDescription">
|
||||
<div>${LabelWatchFolderHelp}</div>
|
||||
</div>
|
||||
<br />
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtMinFileSize">${LabelMinFileSizeForOrganize}</label>
|
||||
<input type="number" id="txtMinFileSize" name="txtMinFileSize" pattern="[0-9]*" required="required" min="0" />
|
||||
<paper-input type="number" id="txtMinFileSize" name="txtMinFileSize" label="${LabelMinFileSizeForOrganize}" pattern="[0-9]*" min="0" required></paper-input>
|
||||
<div class="fieldDescription">${LabelMinFileSizeForOrganizeHelp}</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtSeasonFolderPattern">${LabelSeasonFolderPattern}</label>
|
||||
<input type="text" id="txtSeasonFolderPattern" name="txtSeasonFolderPattern" required="required" />
|
||||
<paper-input type="text" id="txtSeasonFolderPattern" name="txtSeasonFolderPattern" label="${LabelSeasonFolderPattern}" required></paper-input>
|
||||
<div class="fieldDescription seasonFolderFieldDescription"></div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtSeasonZeroName">${LabelSeasonZeroFolderName}</label>
|
||||
<input type="text" id="txtSeasonZeroName" name="txtSeasonZeroName" required="required" />
|
||||
<paper-input type="text" id="txtSeasonZeroName" name="txtSeasonZeroName" label="${LabelSeasonZeroFolderName}" required></paper-input>
|
||||
</li>
|
||||
</ul>
|
||||
<div data-role="collapsible">
|
||||
|
@ -52,14 +48,12 @@
|
|||
<div>
|
||||
<br />
|
||||
<div>
|
||||
<label for="txtEpisodePattern">${LabelEpisodePattern}</label>
|
||||
<input type="text" id="txtEpisodePattern" name="txtEpisodePattern" required="required" />
|
||||
<paper-input type="text" id="txtEpisodePattern" name="txtEpisodePattern" label="${LabelEpisodePattern}" required></paper-input>
|
||||
<div class="fieldDescription episodePatternDescription"></div>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<label for="txtMultiEpisodePattern">${LabelMultiEpisodePattern}</label>
|
||||
<input type="text" id="txtMultiEpisodePattern" name="txtMultiEpisodePattern" required="required" />
|
||||
<paper-input type="text" id="txtMultiEpisodePattern" name="txtMultiEpisodePattern" label="${LabelMultiEpisodePattern}" required></paper-input>
|
||||
<div class="fieldDescription multiEpisodePatternDescription"></div>
|
||||
</div>
|
||||
|
||||
|
@ -143,7 +137,7 @@
|
|||
<br />
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li>
|
||||
<label for="copyOrMoveFile">${LabelTransferMethod}</label>
|
||||
<label for="copyOrMoveFile" class="selectLabel">${LabelTransferMethod}</label>
|
||||
<select id="copyOrMoveFile" data-mini="true">
|
||||
<option value="true">${OptionCopy}</option>
|
||||
<option value="false">${OptionMove}</option>
|
||||
|
@ -155,8 +149,7 @@
|
|||
<label for="chkOverwriteExistingEpisodes">${OptionOverwriteExistingEpisodes}</label>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtDeleteLeftOverFiles">${LabelDeleteLeftOverFiles}</label>
|
||||
<input type="text" id="txtDeleteLeftOverFiles" name="txtDeleteLeftOverFiles" />
|
||||
<paper-input type="text" id="txtDeleteLeftOverFiles" name="txtDeleteLeftOverFiles" label="${LabelDeleteLeftOverFiles}"></paper-input>
|
||||
<div class="fieldDescription">${LabelDeleteLeftOverFilesHelp}</div>
|
||||
</li>
|
||||
<li>
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.0.34",
|
||||
"_release": "1.0.34",
|
||||
"version": "1.0.35",
|
||||
"_release": "1.0.35",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.0.34",
|
||||
"commit": "1bbacdd65aa7c7af955cdd7f0500a4419064a98b"
|
||||
"tag": "1.0.35",
|
||||
"commit": "d84b62c2a98faed179e07ef805e54cd7e6d2e036"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
||||
"_target": "~1.0.3",
|
||||
|
|
|
@ -3414,5 +3414,35 @@
|
|||
|
||||
return self.getJSON(url);
|
||||
};
|
||||
|
||||
self.getSmartMatchInfos = function (options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/SmartMatches", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.deleteSmartMatchEntry = function (name, options) {
|
||||
|
||||
var url = self.getUrl("Library/FileOrganizations/SmartMatches", options || {});
|
||||
|
||||
var postData = {
|
||||
Name: name
|
||||
};
|
||||
|
||||
return self.ajax({
|
||||
|
||||
type: "POST",
|
||||
url: url,
|
||||
data: JSON.stringify(postData),
|
||||
contentType: "application/json"
|
||||
});
|
||||
};
|
||||
};
|
||||
});
|
|
@ -19,8 +19,11 @@
|
|||
populateList(page, infos);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}, onApiFailure);
|
||||
|
||||
}, function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
|
||||
function populateList(page, result) {
|
||||
|
@ -55,8 +58,7 @@
|
|||
if (info.OrganizerType != currentType) {
|
||||
currentType = info.OrganizerType;
|
||||
|
||||
if (html.length > 0)
|
||||
{
|
||||
if (html.length > 0) {
|
||||
html += "</ul>";
|
||||
}
|
||||
|
||||
|
@ -92,8 +94,7 @@
|
|||
Dashboard.hideLoadingMsg();
|
||||
|
||||
Dashboard.alert({
|
||||
title: Globalize.translate('AutoOrganizeError'),
|
||||
message: Globalize.translate('ErrorOrganizingFileWithErrorCode', e.getResponseHeader("X-Application-Error-Code"))
|
||||
message: Globalize.translate('DefaultErrorMessage')
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue