Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
sync updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Oct 11, 2017
1 parent 3437769 commit 79983b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 3 additions & 7 deletions localassetmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@
var localFilePath = filerepository.getPathFromArray(localPathArray);

return localFilePath;

}

function getItemFileSize(path) {
Expand All @@ -481,18 +480,16 @@

function downloadFile(url, localItem) {

var folder = filerepository.getLocalPath();
var imageUrl = getImageUrl(localItem.Item.ServerId, localItem.Item.Id, {
type: 'Primary',
index: 0
});
return transfermanager.downloadFile(url, folder, localItem, imageUrl);
return transfermanager.downloadFile(url, localItem, imageUrl);
}

function downloadSubtitles(url, fileName) {

var folder = filerepository.getLocalPath();
return transfermanager.downloadSubtitles(url, folder, fileName);
return transfermanager.downloadSubtitles(url, fileName);
}

function getImageUrl(serverId, itemId, imageOptions) {
Expand Down Expand Up @@ -547,8 +544,7 @@

localItem.AdditionalFiles.push(fileInfo);

var folder = filerepository.getMetadataPath();
return transfermanager.downloadImage(url, folder, localFilePath);
return transfermanager.downloadImage(url, localFilePath);
}

function isDownloadFileInQueue(path) {
Expand Down
6 changes: 0 additions & 6 deletions sync/filerepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
return Promise.resolve(0);
}

function getLocalPath() {
// returns the sync root path
return null;
}

function getImageUrl(pathParts) {
return pathParts.join('/');
}
Expand All @@ -55,7 +50,6 @@
deleteDirectory: deleteDirectory,
fileExists: fileExists,
getItemFileSize: getItemFileSize,
getLocalPath: getLocalPath,
getImageUrl: getImageUrl
};
});

0 comments on commit 79983b6

Please sign in to comment.