From e5ec93bb09459130fb75627c11463ba20daedf89 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 30 Apr 2013 13:21:21 -0400 Subject: [PATCH] added play buttons to song table --- MediaBrowser.Controller/IO/NativeMethods.cs | 39 ------------------- .../ImageFromMediaLocationProvider.cs | 2 +- .../Providers/ImagesByNameProvider.cs | 2 +- 3 files changed, 2 insertions(+), 41 deletions(-) diff --git a/MediaBrowser.Controller/IO/NativeMethods.cs b/MediaBrowser.Controller/IO/NativeMethods.cs index 632ef02166..2f15f124dd 100644 --- a/MediaBrowser.Controller/IO/NativeMethods.cs +++ b/MediaBrowser.Controller/IO/NativeMethods.cs @@ -69,45 +69,6 @@ namespace MediaBrowser.Controller.IO /// The STG m_ READ /// public const uint STGM_READ = 0; - - /// - /// Finds the first file ex. - /// - /// Name of the lp file. - /// The f info level id. - /// The lp find file data. - /// The f search op. - /// The lp search filter. - /// The dw additional flags. - /// IntPtr. - [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); - - /// - /// Finds the first file. - /// - /// Name of the file. - /// The lp find file data. - /// IntPtr. - [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] - public static extern IntPtr FindFirstFile(string fileName, out WIN32_FIND_DATA lpFindFileData); - - /// - /// Finds the next file. - /// - /// The h find file. - /// The lp find file data. - /// IntPtr. - [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] - public static extern IntPtr FindNextFile(IntPtr hFindFile, out WIN32_FIND_DATA lpFindFileData); - - /// - /// Finds the close. - /// - /// The h find file. - /// true if XXXX, false otherwise - [DllImport("kernel32")] - public static extern bool FindClose(IntPtr hFindFile); } //create a _SERVER_INFO_100 STRUCTURE diff --git a/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs b/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs index 2adee6883e..cb3445dd3d 100644 --- a/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs +++ b/MediaBrowser.Controller/Providers/ImageFromMediaLocationProvider.cs @@ -143,7 +143,7 @@ namespace MediaBrowser.Controller.Providers /// /// The item. /// The filename without extension. - /// System.Nullable{WIN32_FIND_DATA}. + /// FileSystemInfo. 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")); diff --git a/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs b/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs index f4a807a644..1df52f0610 100644 --- a/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs +++ b/MediaBrowser.Controller/Providers/ImagesByNameProvider.cs @@ -143,7 +143,7 @@ namespace MediaBrowser.Controller.Providers /// /// The item. /// The filename without extension. - /// System.Nullable{WIN32_FIND_DATA}. + /// FileSystemInfo. protected override FileSystemInfo GetImage(BaseItem item, string filenameWithoutExtension) { var location = GetLocation(item);