added play buttons to song table

pull/702/head
Luke Pulverenti 12 years ago
parent c9038fec27
commit e5ec93bb09

@ -69,45 +69,6 @@ namespace MediaBrowser.Controller.IO
/// The STG m_ READ /// The STG m_ READ
/// </summary> /// </summary>
public const uint STGM_READ = 0; public const uint STGM_READ = 0;
/// <summary>
/// Finds the first file ex.
/// </summary>
/// <param name="lpFileName">Name of the lp file.</param>
/// <param name="fInfoLevelId">The f info level id.</param>
/// <param name="lpFindFileData">The lp find file data.</param>
/// <param name="fSearchOp">The f search op.</param>
/// <param name="lpSearchFilter">The lp search filter.</param>
/// <param name="dwAdditionalFlags">The dw additional flags.</param>
/// <returns>IntPtr.</returns>
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern IntPtr FindFirstFileEx(string lpFileName, FINDEX_INFO_LEVELS fInfoLevelId, out WIN32_FIND_DATA lpFindFileData, FINDEX_SEARCH_OPS fSearchOp, IntPtr lpSearchFilter, int dwAdditionalFlags);
/// <summary>
/// Finds the first file.
/// </summary>
/// <param name="fileName">Name of the file.</param>
/// <param name="lpFindFileData">The lp find file data.</param>
/// <returns>IntPtr.</returns>
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern IntPtr FindFirstFile(string fileName, out WIN32_FIND_DATA lpFindFileData);
/// <summary>
/// Finds the next file.
/// </summary>
/// <param name="hFindFile">The h find file.</param>
/// <param name="lpFindFileData">The lp find file data.</param>
/// <returns>IntPtr.</returns>
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static extern IntPtr FindNextFile(IntPtr hFindFile, out WIN32_FIND_DATA lpFindFileData);
/// <summary>
/// Finds the close.
/// </summary>
/// <param name="hFindFile">The h find file.</param>
/// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
[DllImport("kernel32")]
public static extern bool FindClose(IntPtr hFindFile);
} }
//create a _SERVER_INFO_100 STRUCTURE //create a _SERVER_INFO_100 STRUCTURE

@ -143,7 +143,7 @@ namespace MediaBrowser.Controller.Providers
/// </summary> /// </summary>
/// <param name="item">The item.</param> /// <param name="item">The item.</param>
/// <param name="filenameWithoutExtension">The filename without extension.</param> /// <param name="filenameWithoutExtension">The filename without extension.</param>
/// <returns>System.Nullable{WIN32_FIND_DATA}.</returns> /// <returns>FileSystemInfo.</returns>
protected virtual FileSystemInfo GetImage(BaseItem item, string filenameWithoutExtension) protected virtual FileSystemInfo GetImage(BaseItem item, string filenameWithoutExtension)
{ {
return item.ResolveArgs.GetMetaFileByPath(Path.Combine(item.ResolveArgs.Path, filenameWithoutExtension + ".png")) ?? item.ResolveArgs.GetMetaFileByPath(Path.Combine(item.ResolveArgs.Path, filenameWithoutExtension + ".jpg")); return item.ResolveArgs.GetMetaFileByPath(Path.Combine(item.ResolveArgs.Path, filenameWithoutExtension + ".png")) ?? item.ResolveArgs.GetMetaFileByPath(Path.Combine(item.ResolveArgs.Path, filenameWithoutExtension + ".jpg"));

@ -143,7 +143,7 @@ namespace MediaBrowser.Controller.Providers
/// </summary> /// </summary>
/// <param name="item">The item.</param> /// <param name="item">The item.</param>
/// <param name="filenameWithoutExtension">The filename without extension.</param> /// <param name="filenameWithoutExtension">The filename without extension.</param>
/// <returns>System.Nullable{WIN32_FIND_DATA}.</returns> /// <returns>FileSystemInfo.</returns>
protected override FileSystemInfo GetImage(BaseItem item, string filenameWithoutExtension) protected override FileSystemInfo GetImage(BaseItem item, string filenameWithoutExtension)
{ {
var location = GetLocation(item); var location = GetLocation(item);

Loading…
Cancel
Save