more on image uploading

This commit is contained in:
Luke Pulverenti
2013-05-05 00:49:49 -04:00
parent f236b2a0b3
commit eb45e67c81
12 changed files with 601 additions and 27 deletions

View File

@@ -397,6 +397,19 @@ namespace MediaBrowser.Server.Implementations.Providers
return localPath;
}
/// <summary>
/// Gets the save path.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="targetFileName">Name of the target file.</param>
/// <param name="saveLocally">if set to <c>true</c> [save locally].</param>
/// <returns>System.String.</returns>
public string GetSavePath(BaseItem item, string targetFileName, bool saveLocally)
{
return (saveLocally && item.MetaLocation != null) ?
Path.Combine(item.MetaLocation, targetFileName) :
_remoteImageCache.GetResourcePath(item.GetType().FullName + item.Path.ToLower(), targetFileName);
}
/// <summary>
/// Saves to library filesystem.