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 class="fieldDescription">
|
||||||
<div>${LabelWatchFolderHelp}</div>
|
<div>${LabelWatchFolderHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtMinFileSize">${LabelMinFileSizeForOrganize}</label>
|
<paper-input type="number" id="txtMinFileSize" name="txtMinFileSize" label="${LabelMinFileSizeForOrganize}" pattern="[0-9]*" min="0" required></paper-input>
|
||||||
<input type="number" id="txtMinFileSize" name="txtMinFileSize" pattern="[0-9]*" required="required" min="0" />
|
|
||||||
<div class="fieldDescription">${LabelMinFileSizeForOrganizeHelp}</div>
|
<div class="fieldDescription">${LabelMinFileSizeForOrganizeHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtSeasonFolderPattern">${LabelSeasonFolderPattern}</label>
|
<paper-input type="text" id="txtSeasonFolderPattern" name="txtSeasonFolderPattern" label="${LabelSeasonFolderPattern}" required></paper-input>
|
||||||
<input type="text" id="txtSeasonFolderPattern" name="txtSeasonFolderPattern" required="required" />
|
|
||||||
<div class="fieldDescription seasonFolderFieldDescription"></div>
|
<div class="fieldDescription seasonFolderFieldDescription"></div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtSeasonZeroName">${LabelSeasonZeroFolderName}</label>
|
<paper-input type="text" id="txtSeasonZeroName" name="txtSeasonZeroName" label="${LabelSeasonZeroFolderName}" required></paper-input>
|
||||||
<input type="text" id="txtSeasonZeroName" name="txtSeasonZeroName" required="required" />
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div data-role="collapsible">
|
<div data-role="collapsible">
|
||||||
|
@ -52,14 +48,12 @@
|
||||||
<div>
|
<div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<label for="txtEpisodePattern">${LabelEpisodePattern}</label>
|
<paper-input type="text" id="txtEpisodePattern" name="txtEpisodePattern" label="${LabelEpisodePattern}" required></paper-input>
|
||||||
<input type="text" id="txtEpisodePattern" name="txtEpisodePattern" required="required" />
|
|
||||||
<div class="fieldDescription episodePatternDescription"></div>
|
<div class="fieldDescription episodePatternDescription"></div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<label for="txtMultiEpisodePattern">${LabelMultiEpisodePattern}</label>
|
<paper-input type="text" id="txtMultiEpisodePattern" name="txtMultiEpisodePattern" label="${LabelMultiEpisodePattern}" required></paper-input>
|
||||||
<input type="text" id="txtMultiEpisodePattern" name="txtMultiEpisodePattern" required="required" />
|
|
||||||
<div class="fieldDescription multiEpisodePatternDescription"></div>
|
<div class="fieldDescription multiEpisodePatternDescription"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -143,7 +137,7 @@
|
||||||
<br />
|
<br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<label for="copyOrMoveFile">${LabelTransferMethod}</label>
|
<label for="copyOrMoveFile" class="selectLabel">${LabelTransferMethod}</label>
|
||||||
<select id="copyOrMoveFile" data-mini="true">
|
<select id="copyOrMoveFile" data-mini="true">
|
||||||
<option value="true">${OptionCopy}</option>
|
<option value="true">${OptionCopy}</option>
|
||||||
<option value="false">${OptionMove}</option>
|
<option value="false">${OptionMove}</option>
|
||||||
|
@ -155,8 +149,7 @@
|
||||||
<label for="chkOverwriteExistingEpisodes">${OptionOverwriteExistingEpisodes}</label>
|
<label for="chkOverwriteExistingEpisodes">${OptionOverwriteExistingEpisodes}</label>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="txtDeleteLeftOverFiles">${LabelDeleteLeftOverFiles}</label>
|
<paper-input type="text" id="txtDeleteLeftOverFiles" name="txtDeleteLeftOverFiles" label="${LabelDeleteLeftOverFiles}"></paper-input>
|
||||||
<input type="text" id="txtDeleteLeftOverFiles" name="txtDeleteLeftOverFiles" />
|
|
||||||
<div class="fieldDescription">${LabelDeleteLeftOverFilesHelp}</div>
|
<div class="fieldDescription">${LabelDeleteLeftOverFilesHelp}</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.0.34",
|
"version": "1.0.35",
|
||||||
"_release": "1.0.34",
|
"_release": "1.0.35",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.0.34",
|
"tag": "1.0.35",
|
||||||
"commit": "1bbacdd65aa7c7af955cdd7f0500a4419064a98b"
|
"commit": "d84b62c2a98faed179e07ef805e54cd7e6d2e036"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
|
||||||
"_target": "~1.0.3",
|
"_target": "~1.0.3",
|
||||||
|
|
|
@ -3414,5 +3414,35 @@
|
||||||
|
|
||||||
return self.getJSON(url);
|
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);
|
populateList(page, infos);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}, onApiFailure);
|
|
||||||
|
|
||||||
|
}, function () {
|
||||||
|
|
||||||
|
Dashboard.hideLoadingMsg();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function populateList(page, result) {
|
function populateList(page, result) {
|
||||||
|
@ -55,8 +58,7 @@
|
||||||
if (info.OrganizerType != currentType) {
|
if (info.OrganizerType != currentType) {
|
||||||
currentType = info.OrganizerType;
|
currentType = info.OrganizerType;
|
||||||
|
|
||||||
if (html.length > 0)
|
if (html.length > 0) {
|
||||||
{
|
|
||||||
html += "</ul>";
|
html += "</ul>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +76,7 @@
|
||||||
|
|
||||||
html += "<p>" + info.MatchStrings[n] + "</p>";
|
html += "<p>" + info.MatchStrings[n] + "</p>";
|
||||||
|
|
||||||
html += "<a id='btnDeleteMatchEntry" + info.Id + "' class='btnDeleteMatchEntry' href='#' data-id='" + info.Id + "' data-matchstring='" + info.MatchStrings[n] + "' data-icon='delete'>" + Globalize.translate('ButtonDelete') + "</a>";
|
html += "<a id='btnDeleteMatchEntry" + info.Id + "' class='btnDeleteMatchEntry' href='#' data-id='" + info.Id + "' data-matchstring='" + info.MatchStrings[n] + "' data-icon='delete'>" + Globalize.translate('ButtonDelete') + "</a>";
|
||||||
|
|
||||||
html += "</a>";
|
html += "</a>";
|
||||||
|
|
||||||
|
@ -92,8 +94,7 @@
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
|
|
||||||
Dashboard.alert({
|
Dashboard.alert({
|
||||||
title: Globalize.translate('AutoOrganizeError'),
|
message: Globalize.translate('DefaultErrorMessage')
|
||||||
message: Globalize.translate('ErrorOrganizingFileWithErrorCode', e.getResponseHeader("X-Application-Error-Code"))
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue