mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
removed dead code
This commit is contained in:
parent
7dd45dea75
commit
2d078e4a2f
1 changed files with 1 additions and 43 deletions
|
@ -52,49 +52,7 @@
|
||||||
|
|
||||||
function organizeEpsiodeWithCorrections(page, item) {
|
function organizeEpsiodeWithCorrections(page, item) {
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
showEpisodeCorrectionPopup(page, item);
|
||||||
|
|
||||||
var seriesItems;
|
|
||||||
|
|
||||||
ApiClient.getItems(null, {
|
|
||||||
recursive: true,
|
|
||||||
includeItemTypes: 'Series',
|
|
||||||
sortBy: 'SortName'
|
|
||||||
|
|
||||||
}).then(function (result) {
|
|
||||||
|
|
||||||
seriesItems = result.Items;
|
|
||||||
|
|
||||||
ApiClient.getVirtualFolders().then(function (result) {
|
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
|
||||||
|
|
||||||
var movieLocations = [];
|
|
||||||
var seriesLocations = [];
|
|
||||||
|
|
||||||
for (var n = 0; n < result.length; n++) {
|
|
||||||
|
|
||||||
var virtualFolder = result[n];
|
|
||||||
|
|
||||||
for (var i = 0, length = virtualFolder.Locations.length; i < length; i++) {
|
|
||||||
var location = {
|
|
||||||
value: virtualFolder.Locations[i],
|
|
||||||
display: virtualFolder.Name + ': ' + virtualFolder.Locations[i]
|
|
||||||
};
|
|
||||||
|
|
||||||
if (virtualFolder.CollectionType == 'movies') {
|
|
||||||
movieLocations.push(location);
|
|
||||||
}
|
|
||||||
if (virtualFolder.CollectionType == 'tvshows') {
|
|
||||||
seriesLocations.push(location);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
showEpisodeCorrectionPopup(page, item, seriesItems, movieLocations, seriesLocations);
|
|
||||||
}, onApiFailure);
|
|
||||||
|
|
||||||
}, onApiFailure);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showEpisodeCorrectionPopup(page, item) {
|
function showEpisodeCorrectionPopup(page, item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue