From: <sa...@us...> - 2007-11-07 18:51:33
|
Revision: 1035 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1035&view=rev Author: saamand Date: 2007-11-07 10:51:29 -0800 (Wed, 07 Nov 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/MyLyrics/LyricsEngine/LyricSearch.cs trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/Wiki.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics.csproj Added Paths: ----------- trunk/plugins/MyLyrics/LyricsEngine/bin/ trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/ trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll.config trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.pdb trunk/plugins/MyLyrics/LyricsEngine/bin/Release/ trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.XmlSerializers.dll trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll.config trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.pdb trunk/plugins/MyLyrics/LyricsEngine/obj/ trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/ trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.Properties.Resources.resources trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.csproj.GenerateResource.Cache trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.dll trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.pdb trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/Refactor/ trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/Refactor/LyricsEngine.dll trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/ trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/Web References.org.lyricwiki.Reference.cs.dll trunk/plugins/MyLyrics/LyricsEngine/obj/LyricsEngine.csproj.FileList.txt trunk/plugins/MyLyrics/LyricsEngine/obj/Release/ trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.Properties.Resources.resources trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.XmlSerializers.dll trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.csproj.GenerateResource.Cache trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.dll trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.pdb trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/ trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/Web References.org.lyricwiki.Reference.cs.dll trunk/plugins/MyLyrics/MusicDatabaseV8.db3 trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/ trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.Designer.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.resx trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.Designer.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.resx trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/Information.Designer.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/Information.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/Information.resx trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/LyricsLibrary.Designer.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/LyricsLibrary.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/LyricsLibrary.resx trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MusicDatabaseBrowse.Designer.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MusicDatabaseBrowse.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MusicDatabaseBrowse.resx trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MyLyricsSetup.Designer.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MyLyricsSetup.cs trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MyLyricsSetup.resx trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/MyLyricsSetup_test.cs trunk/plugins/MyLyrics/My Lyrics/bin/ trunk/plugins/MyLyrics/My Lyrics/bin/Debug/ trunk/plugins/MyLyrics/My Lyrics/bin/Debug/AxInterop.WMPLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Bass.Net.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/BassRegistration.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/CSScriptLibrary.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Core.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Databases.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Dialogs.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Debug/DirectShowLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/ICSharpCode.SharpZipLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Interop.WMPLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/LyricsEngine.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/LyricsEngine.pdb trunk/plugins/MyLyrics/My Lyrics/bin/Debug/MediaPortal.Support.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/MediaPortal.Support.pdb trunk/plugins/MyLyrics/My Lyrics/bin/Debug/MediaPortal.xml trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Microsoft.DirectX.Direct3D.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Microsoft.DirectX.Direct3DX.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Microsoft.DirectX.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/MyLyrics.exe trunk/plugins/MyLyrics/My Lyrics/bin/Debug/MyLyrics.pdb trunk/plugins/MyLyrics/My Lyrics/bin/Debug/MyLyrics.vshost.exe trunk/plugins/MyLyrics/My Lyrics/bin/Debug/Utils.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Debug/WindowPlugins.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/XihSolutions.DotMSN.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/ trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/FolderDatabase3.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/LyricsDatabaseV2.db trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/LyricsMarkedDatabaseV2.db trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/MusicDatabaseV10.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/MusicVideoDatabaseV3.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/PictureDatabase.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/ProgramDatabaseV4.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/RadioDatabase4.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/TVDatabaseV21.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/TVSeriesDatabase4.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/VideoDatabaseV5.db3 trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/convert/ trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/convert/ConvertMusicDBToV10.cmd trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/convert/MusicDBConvertFrom8To10.sql trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/convert/convertv2v3.cmd trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/convert/sqlite.exe trunk/plugins/MyLyrics/My Lyrics/bin/Debug/database/convert/sqlite3.exe trunk/plugins/MyLyrics/My Lyrics/bin/Debug/edtftpnet-1.2.2.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/log/ trunk/plugins/MyLyrics/My Lyrics/bin/Debug/log/MediaPortal.log trunk/plugins/MyLyrics/My Lyrics/bin/Debug/log/MyLyrics.log trunk/plugins/MyLyrics/My Lyrics/bin/Debug/log/MyLyricsBatch.log trunk/plugins/MyLyrics/My Lyrics/bin/Debug/log/error.log trunk/plugins/MyLyrics/My Lyrics/bin/Debug/sqlite.dll trunk/plugins/MyLyrics/My Lyrics/bin/Debug/taglib-sharp.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/ trunk/plugins/MyLyrics/My Lyrics/bin/Release/AxInterop.WMPLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/Bass.Net.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/BassRegistration.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/CSScriptLibrary.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/Core.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Release/Databases.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Release/Dialogs.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Release/DirectShowLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/ICSharpCode.SharpZipLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/Interop.WMPLib.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/LyricsEngine.XmlSerializers.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/LyricsEngine.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/LyricsEngine.pdb trunk/plugins/MyLyrics/My Lyrics/bin/Release/MediaPortal.Support.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/MediaPortal.Support.pdb trunk/plugins/MyLyrics/My Lyrics/bin/Release/Microsoft.DirectX.Direct3D.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/Microsoft.DirectX.Direct3DX.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/Microsoft.DirectX.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/MyLyrics.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/MyLyrics.pdb trunk/plugins/MyLyrics/My Lyrics/bin/Release/Utils.DLL trunk/plugins/MyLyrics/My Lyrics/bin/Release/WindowPlugins.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/XihSolutions.DotMSN.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/edtftpnet-1.2.2.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/sqlite.dll trunk/plugins/MyLyrics/My Lyrics/bin/Release/taglib-sharp.dll trunk/plugins/MyLyrics/My Lyrics/obj/ trunk/plugins/MyLyrics/My Lyrics/obj/Debug/ trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.AddNewSong.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.FindLyric.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.Information.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.LyricsLibrary.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.MusicDatabaseBrowse.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.MyLyricsSetup.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.Properties.Resources.resources trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.csproj.GenerateResource.Cache trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.exe trunk/plugins/MyLyrics/My Lyrics/obj/Debug/MyLyrics.pdb trunk/plugins/MyLyrics/My Lyrics/obj/Debug/Refactor/ trunk/plugins/MyLyrics/My Lyrics/obj/Debug/ResolveAssemblyReference.cache trunk/plugins/MyLyrics/My Lyrics/obj/Debug/TempPE/ trunk/plugins/MyLyrics/My Lyrics/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll trunk/plugins/MyLyrics/My Lyrics/obj/MyLyrics.csproj.FileList.txt trunk/plugins/MyLyrics/My Lyrics/obj/Release/ trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.MyLyricsSetup.resources trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.MyLyricsSetup_AddNewSong.resources trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.MyLyricsSetup_LyricsLibrary.resources trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.MyLyricsSetup_SearchTitleDialog.resources trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.Properties.Resources.resources trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.csproj.GenerateResource.Cache trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.dll trunk/plugins/MyLyrics/My Lyrics/obj/Release/MyLyrics.pdb trunk/plugins/MyLyrics/My Lyrics/obj/Release/ResolveAssemblyReference.cache trunk/plugins/MyLyrics/My Lyrics/obj/Release/TempPE/ trunk/plugins/MyLyrics/My Lyrics/obj/Release/TempPE/Properties.Resources.Designer.cs.dll Modified: trunk/plugins/MyLyrics/LyricsEngine/LyricSearch.cs =================================================================== (Binary files differ) Modified: trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/Wiki.cs =================================================================== --- trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/Wiki.cs 2007-11-07 15:19:19 UTC (rev 1034) +++ trunk/plugins/MyLyrics/LyricsEngine/LyricsSites/Wiki.cs 2007-11-07 18:51:29 UTC (rev 1035) @@ -115,6 +115,12 @@ break; } } + + if (lyric.Contains("API request randomly") || lyric.Contains("Upgrading right")) + { + lyric = string.Empty; + } + return lyric; } } Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll.config =================================================================== --- trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll.config (rev 0) +++ trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.dll.config 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <configSections> + <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > + <section name="LyricsEngine.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> + </sectionGroup> + </configSections> + <applicationSettings> + <LyricsEngine.Properties.Settings> + <setting name="Google_GoogleSearchService" serializeAs="String"> + <value>http://api.google.com/search/beta2</value> + </setting> + <setting name="LyricsEngine_org_lyricwiki_LyricWiki" serializeAs="String"> + <value>http://lyricwiki.org/server.php</value> + </setting> + <setting name="MyLyrics_Google_GoogleSearchService" serializeAs="String"> + <value>http://api.google.com/search/beta2</value> + </setting> + </LyricsEngine.Properties.Settings> + </applicationSettings> +</configuration> \ No newline at end of file Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/bin/Debug/LyricsEngine.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.XmlSerializers.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.XmlSerializers.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll.config =================================================================== --- trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll.config (rev 0) +++ trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.dll.config 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <configSections> + <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > + <section name="LyricsEngine.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> + </sectionGroup> + </configSections> + <applicationSettings> + <LyricsEngine.Properties.Settings> + <setting name="Google_GoogleSearchService" serializeAs="String"> + <value>http://api.google.com/search/beta2</value> + </setting> + <setting name="LyricsEngine_org_lyricwiki_LyricWiki" serializeAs="String"> + <value>http://lyricwiki.org/server.php</value> + </setting> + <setting name="MyLyrics_Google_GoogleSearchService" serializeAs="String"> + <value>http://api.google.com/search/beta2</value> + </setting> + </LyricsEngine.Properties.Settings> + </applicationSettings> +</configuration> \ No newline at end of file Added: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/bin/Release/LyricsEngine.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.Properties.Resources.resources =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.Properties.Resources.resources ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.csproj.GenerateResource.Cache =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.csproj.GenerateResource.Cache ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/LyricsEngine.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/Refactor/LyricsEngine.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/Refactor/LyricsEngine.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/Web References.org.lyricwiki.Reference.cs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Debug/TempPE/Web References.org.lyricwiki.Reference.cs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/LyricsEngine.csproj.FileList.txt =================================================================== --- trunk/plugins/MyLyrics/LyricsEngine/obj/LyricsEngine.csproj.FileList.txt (rev 0) +++ trunk/plugins/MyLyrics/LyricsEngine/obj/LyricsEngine.csproj.FileList.txt 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,18 @@ +bin\Release\LyricsEngine.dll.config +bin\Release\LyricsEngine.dll +bin\Release\LyricsEngine.XmlSerializers.dll +bin\Release\LyricsEngine.pdb +obj\Release\ResolveAssemblyReference.cache +obj\Release\LyricsEngine.Properties.Resources.resources +obj\Release\LyricsEngine.csproj.GenerateResource.Cache +obj\Release\LyricsEngine.dll +obj\Release\LyricsEngine.pdb +obj\Release\LyricsEngine.XmlSerializers.dll +bin\Debug\LyricsEngine.dll.config +bin\Debug\LyricsEngine.dll +bin\Debug\LyricsEngine.pdb +obj\Debug\ResolveAssemblyReference.cache +obj\Debug\LyricsEngine.Properties.Resources.resources +obj\Debug\LyricsEngine.csproj.GenerateResource.Cache +obj\Debug\LyricsEngine.dll +obj\Debug\LyricsEngine.pdb Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.Properties.Resources.resources =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.Properties.Resources.resources ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.XmlSerializers.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.XmlSerializers.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.csproj.GenerateResource.Cache =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.csproj.GenerateResource.Cache ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.pdb =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/LyricsEngine.pdb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/Properties.Resources.Designer.cs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/Web References.org.lyricwiki.Reference.cs.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/LyricsEngine/obj/Release/TempPE/Web References.org.lyricwiki.Reference.cs.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/MusicDatabaseV8.db3 =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyLyrics/MusicDatabaseV8.db3 ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.Designer.cs =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.Designer.cs (rev 0) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.Designer.cs 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,170 @@ +namespace MyLyrics +{ + partial class AddNewSong + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.gbAddNew = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.tbLyric = new System.Windows.Forms.TextBox(); + this.lbLyric = new MediaPortal.UserInterface.Controls.MPLabel(); + this.tbTitle = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.lbTitle = new MediaPortal.UserInterface.Controls.MPLabel(); + this.tbArtist = new MediaPortal.UserInterface.Controls.MPTextBox(); + this.lbArtist = new MediaPortal.UserInterface.Controls.MPLabel(); + this.btOK = new MediaPortal.UserInterface.Controls.MPButton(); + this.btClose = new MediaPortal.UserInterface.Controls.MPButton(); + this.gbAddNew.SuspendLayout(); + this.SuspendLayout(); + // + // gbAddNew + // + this.gbAddNew.Controls.Add(this.tbLyric); + this.gbAddNew.Controls.Add(this.lbLyric); + this.gbAddNew.Controls.Add(this.tbTitle); + this.gbAddNew.Controls.Add(this.lbTitle); + this.gbAddNew.Controls.Add(this.tbArtist); + this.gbAddNew.Controls.Add(this.lbArtist); + this.gbAddNew.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.gbAddNew.Location = new System.Drawing.Point(9, 12); + this.gbAddNew.Name = "gbAddNew"; + this.gbAddNew.Size = new System.Drawing.Size(508, 294); + this.gbAddNew.TabIndex = 3; + this.gbAddNew.TabStop = false; + this.gbAddNew.Text = "Song Info"; + // + // tbLyric + // + this.tbLyric.Location = new System.Drawing.Point(64, 80); + this.tbLyric.Multiline = true; + this.tbLyric.Name = "tbLyric"; + this.tbLyric.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.tbLyric.Size = new System.Drawing.Size(428, 204); + this.tbLyric.TabIndex = 5; + this.tbLyric.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbLyric_KeyUp); + // + // lbLyric + // + this.lbLyric.AutoSize = true; + this.lbLyric.Location = new System.Drawing.Point(9, 83); + this.lbLyric.Name = "lbLyric"; + this.lbLyric.Size = new System.Drawing.Size(32, 13); + this.lbLyric.TabIndex = 4; + this.lbLyric.Text = "Lyric:"; + // + // tbTitle + // + this.tbTitle.BorderColor = System.Drawing.Color.Empty; + this.tbTitle.Location = new System.Drawing.Point(64, 47); + this.tbTitle.Name = "tbTitle"; + this.tbTitle.Size = new System.Drawing.Size(226, 20); + this.tbTitle.TabIndex = 3; + this.tbTitle.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbTitle_KeyUp); + // + // lbTitle + // + this.lbTitle.AutoSize = true; + this.lbTitle.Location = new System.Drawing.Point(9, 50); + this.lbTitle.Name = "lbTitle"; + this.lbTitle.Size = new System.Drawing.Size(30, 13); + this.lbTitle.TabIndex = 2; + this.lbTitle.Text = "Title:"; + // + // tbArtist + // + this.tbArtist.BorderColor = System.Drawing.Color.Empty; + this.tbArtist.Location = new System.Drawing.Point(64, 17); + this.tbArtist.Name = "tbArtist"; + this.tbArtist.Size = new System.Drawing.Size(226, 20); + this.tbArtist.TabIndex = 1; + this.tbArtist.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tbArtist_KeyUp); + // + // lbArtist + // + this.lbArtist.AutoSize = true; + this.lbArtist.Location = new System.Drawing.Point(9, 20); + this.lbArtist.Name = "lbArtist"; + this.lbArtist.Size = new System.Drawing.Size(33, 13); + this.lbArtist.TabIndex = 0; + this.lbArtist.Text = "Artist:"; + // + // btOK + // + this.btOK.Enabled = false; + this.btOK.Location = new System.Drawing.Point(377, 312); + this.btOK.Name = "btOK"; + this.btOK.Size = new System.Drawing.Size(59, 23); + this.btOK.TabIndex = 3; + this.btOK.Text = "&OK"; + this.btOK.UseVisualStyleBackColor = true; + this.btOK.Click += new System.EventHandler(this.btOK_Click); + // + // btClose + // + this.btClose.Location = new System.Drawing.Point(442, 312); + this.btClose.Name = "btClose"; + this.btClose.Size = new System.Drawing.Size(59, 23); + this.btClose.TabIndex = 4; + this.btClose.Text = "&Close"; + this.btClose.UseVisualStyleBackColor = true; + this.btClose.Click += new System.EventHandler(this.btClose_Click); + // + // MyLyricsSetup_AddNewSong + // + this.AcceptButton = this.btOK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(525, 340); + this.ControlBox = false; + this.Controls.Add(this.btClose); + this.Controls.Add(this.btOK); + this.Controls.Add(this.gbAddNew); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(533, 367); + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(533, 367); + this.Name = "MyLyricsSetup_AddNewSong"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Add new lyric"; + this.gbAddNew.ResumeLayout(false); + this.gbAddNew.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private MediaPortal.UserInterface.Controls.MPGroupBox gbAddNew; + private MediaPortal.UserInterface.Controls.MPLabel lbTitle; + private MediaPortal.UserInterface.Controls.MPTextBox tbArtist; + private MediaPortal.UserInterface.Controls.MPLabel lbArtist; + private MediaPortal.UserInterface.Controls.MPButton btOK; + private MediaPortal.UserInterface.Controls.MPTextBox tbTitle; + private System.Windows.Forms.TextBox tbLyric; + private MediaPortal.UserInterface.Controls.MPLabel lbLyric; + private MediaPortal.UserInterface.Controls.MPButton btClose; + } +} \ No newline at end of file Added: trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.cs =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.cs (rev 0) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.cs 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace MyLyrics +{ + public partial class AddNewSong : Form + { + + LyricsLibrary parent; + + public AddNewSong(LyricsLibrary parent) + { + InitializeComponent(); + this.parent = parent; + this.ShowDialog(); + } + + private void btOK_Click(object sender, EventArgs e) + { + parent.addNewSongToDatabase(tbArtist.Text, tbTitle.Text, tbLyric.Text); + this.Close(); + } + + private void tbArtist_KeyUp(object sender, KeyEventArgs e) + { + validateText(); + } + + private void tbTitle_KeyUp(object sender, KeyEventArgs e) + { + validateText(); + } + + private void tbLyric_KeyUp(object sender, KeyEventArgs e) + { + validateText(); + } + + private void validateText() + { + if (tbArtist.Text.Length != 0 && tbTitle.Text.Length != 0 && tbLyric.Text.Length != 0) + btOK.Enabled = true; + else + btOK.Enabled = false; + } + + private void btClose_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} \ No newline at end of file Added: trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.resx =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.resx (rev 0) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/AddNewSong.resx 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file Added: trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.Designer.cs =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.Designer.cs (rev 0) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.Designer.cs 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,359 @@ +namespace MyLyrics +{ + partial class FindLyric + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.gbSearchInfo = new System.Windows.Forms.GroupBox(); + this.tbTitle = new System.Windows.Forms.TextBox(); + this.lbTitle = new System.Windows.Forms.Label(); + this.tbArtist = new System.Windows.Forms.TextBox(); + this.lbArtist = new System.Windows.Forms.Label(); + this.btFind = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.lvSearchResults = new System.Windows.Forms.ListView(); + this.cbSite = new System.Windows.Forms.ColumnHeader(); + this.cbResult = new System.Windows.Forms.ColumnHeader(); + this.chLyric = new System.Windows.Forms.ColumnHeader(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.tbLyrics = new System.Windows.Forms.TextBox(); + this.gbLyricSites = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.btCancel = new System.Windows.Forms.Button(); + this.cbHotLyrics = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.cbSeekLyrics = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.cbLyricsOnDemand = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.cbLyrics007 = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.cbEvilLabs = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.cbLyricWiki = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.btClose = new System.Windows.Forms.Button(); + this.btUpdate = new System.Windows.Forms.Button(); + this.gbSearchInfo.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.gbLyricSites.SuspendLayout(); + this.SuspendLayout(); + // + // gbSearchInfo + // + this.gbSearchInfo.Controls.Add(this.tbTitle); + this.gbSearchInfo.Controls.Add(this.lbTitle); + this.gbSearchInfo.Controls.Add(this.tbArtist); + this.gbSearchInfo.Controls.Add(this.lbArtist); + this.gbSearchInfo.Location = new System.Drawing.Point(12, 12); + this.gbSearchInfo.Name = "gbSearchInfo"; + this.gbSearchInfo.Size = new System.Drawing.Size(432, 85); + this.gbSearchInfo.TabIndex = 0; + this.gbSearchInfo.TabStop = false; + this.gbSearchInfo.Text = "Search information"; + // + // tbTitle + // + this.tbTitle.Location = new System.Drawing.Point(73, 53); + this.tbTitle.Name = "tbTitle"; + this.tbTitle.Size = new System.Drawing.Size(344, 20); + this.tbTitle.TabIndex = 2; + // + // lbTitle + // + this.lbTitle.AutoSize = true; + this.lbTitle.Location = new System.Drawing.Point(15, 56); + this.lbTitle.Name = "lbTitle"; + this.lbTitle.Size = new System.Drawing.Size(30, 13); + this.lbTitle.TabIndex = 2; + this.lbTitle.Text = "Title:"; + // + // tbArtist + // + this.tbArtist.Location = new System.Drawing.Point(73, 26); + this.tbArtist.Name = "tbArtist"; + this.tbArtist.Size = new System.Drawing.Size(344, 20); + this.tbArtist.TabIndex = 1; + // + // lbArtist + // + this.lbArtist.AutoSize = true; + this.lbArtist.Location = new System.Drawing.Point(15, 29); + this.lbArtist.Name = "lbArtist"; + this.lbArtist.Size = new System.Drawing.Size(33, 13); + this.lbArtist.TabIndex = 0; + this.lbArtist.Text = "Artist:"; + // + // btFind + // + this.btFind.Location = new System.Drawing.Point(281, 67); + this.btFind.Name = "btFind"; + this.btFind.Size = new System.Drawing.Size(65, 23); + this.btFind.TabIndex = 3; + this.btFind.Text = "&Fetch"; + this.btFind.UseVisualStyleBackColor = true; + this.btFind.Click += new System.EventHandler(this.btFind_Click); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.lvSearchResults); + this.groupBox1.Location = new System.Drawing.Point(13, 207); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(431, 147); + this.groupBox1.TabIndex = 1; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Search results"; + // + // lvSearchResults + // + this.lvSearchResults.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.cbSite, + this.cbResult, + this.chLyric}); + this.lvSearchResults.FullRowSelect = true; + this.lvSearchResults.Location = new System.Drawing.Point(17, 21); + this.lvSearchResults.MultiSelect = false; + this.lvSearchResults.Name = "lvSearchResults"; + this.lvSearchResults.Size = new System.Drawing.Size(399, 111); + this.lvSearchResults.TabIndex = 10; + this.lvSearchResults.UseCompatibleStateImageBehavior = false; + this.lvSearchResults.View = System.Windows.Forms.View.Details; + this.lvSearchResults.DoubleClick += new System.EventHandler(this.lvSearchResults_DoubleClick); + this.lvSearchResults.SelectedIndexChanged += new System.EventHandler(this.lvSearchResults_SelectedIndexChanged); + // + // cbSite + // + this.cbSite.Text = "Site"; + this.cbSite.Width = 113; + // + // cbResult + // + this.cbResult.Text = "Result"; + this.cbResult.Width = 58; + // + // chLyric + // + this.chLyric.Text = "Lyric"; + this.chLyric.Width = 223; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.tbLyrics); + this.groupBox2.Location = new System.Drawing.Point(13, 360); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(431, 183); + this.groupBox2.TabIndex = 2; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Lyric"; + // + // tbLyrics + // + this.tbLyrics.Location = new System.Drawing.Point(17, 19); + this.tbLyrics.Multiline = true; + this.tbLyrics.Name = "tbLyrics"; + this.tbLyrics.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.tbLyrics.Size = new System.Drawing.Size(399, 153); + this.tbLyrics.TabIndex = 0; + // + // gbLyricSites + // + this.gbLyricSites.Controls.Add(this.btCancel); + this.gbLyricSites.Controls.Add(this.btFind); + this.gbLyricSites.Controls.Add(this.cbHotLyrics); + this.gbLyricSites.Controls.Add(this.cbSeekLyrics); + this.gbLyricSites.Controls.Add(this.cbLyricsOnDemand); + this.gbLyricSites.Controls.Add(this.cbLyrics007); + this.gbLyricSites.Controls.Add(this.cbEvilLabs); + this.gbLyricSites.Controls.Add(this.cbLyricWiki); + this.gbLyricSites.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.gbLyricSites.Location = new System.Drawing.Point(12, 103); + this.gbLyricSites.Name = "gbLyricSites"; + this.gbLyricSites.Size = new System.Drawing.Size(432, 98); + this.gbLyricSites.TabIndex = 29; + this.gbLyricSites.TabStop = false; + this.gbLyricSites.Text = "Lyric sites to search"; + // + // btCancel + // + this.btCancel.Location = new System.Drawing.Point(352, 67); + this.btCancel.Name = "btCancel"; + this.btCancel.Size = new System.Drawing.Size(65, 23); + this.btCancel.TabIndex = 4; + this.btCancel.Text = "&Cancel"; + this.btCancel.UseVisualStyleBackColor = true; + this.btCancel.Click += new System.EventHandler(this.btCancel_Click); + // + // cbHotLyrics + // + this.cbHotLyrics.AutoSize = true; + this.cbHotLyrics.Checked = true; + this.cbHotLyrics.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbHotLyrics.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbHotLyrics.Location = new System.Drawing.Point(146, 21); + this.cbHotLyrics.Name = "cbHotLyrics"; + this.cbHotLyrics.Size = new System.Drawing.Size(71, 17); + this.cbHotLyrics.TabIndex = 14; + this.cbHotLyrics.Text = "Hot Lyrics"; + this.cbHotLyrics.UseVisualStyleBackColor = true; + // + // cbSeekLyrics + // + this.cbSeekLyrics.AutoSize = true; + this.cbSeekLyrics.Checked = true; + this.cbSeekLyrics.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbSeekLyrics.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbSeekLyrics.Location = new System.Drawing.Point(146, 43); + this.cbSeekLyrics.Name = "cbSeekLyrics"; + this.cbSeekLyrics.Size = new System.Drawing.Size(79, 17); + this.cbSeekLyrics.TabIndex = 15; + this.cbSeekLyrics.Text = "Seek Lyrics"; + this.cbSeekLyrics.UseVisualStyleBackColor = true; + // + // cbLyricsOnDemand + // + this.cbLyricsOnDemand.AutoSize = true; + this.cbLyricsOnDemand.Checked = true; + this.cbLyricsOnDemand.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbLyricsOnDemand.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbLyricsOnDemand.Location = new System.Drawing.Point(16, 43); + this.cbLyricsOnDemand.Name = "cbLyricsOnDemand"; + this.cbLyricsOnDemand.Size = new System.Drawing.Size(108, 17); + this.cbLyricsOnDemand.TabIndex = 12; + this.cbLyricsOnDemand.Text = "Lyrics OnDemand"; + this.cbLyricsOnDemand.UseVisualStyleBackColor = true; + // + // cbLyrics007 + // + this.cbLyrics007.AutoSize = true; + this.cbLyrics007.Checked = true; + this.cbLyrics007.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbLyrics007.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbLyrics007.Location = new System.Drawing.Point(16, 66); + this.cbLyrics007.Name = "cbLyrics007"; + this.cbLyrics007.Size = new System.Drawing.Size(72, 17); + this.cbLyrics007.TabIndex = 13; + this.cbLyrics007.Text = "Lyrics 007"; + this.cbLyrics007.UseVisualStyleBackColor = true; + // + // cbEvilLabs + // + this.cbEvilLabs.AutoSize = true; + this.cbEvilLabs.Checked = true; + this.cbEvilLabs.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbEvilLabs.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbEvilLabs.Location = new System.Drawing.Point(146, 66); + this.cbEvilLabs.Name = "cbEvilLabs"; + this.cbEvilLabs.Size = new System.Drawing.Size(67, 17); + this.cbEvilLabs.TabIndex = 16; + this.cbEvilLabs.Text = "Evil Labs"; + this.cbEvilLabs.UseVisualStyleBackColor = true; + // + // cbLyricWiki + // + this.cbLyricWiki.AutoSize = true; + this.cbLyricWiki.Checked = true; + this.cbLyricWiki.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbLyricWiki.FlatStyle = System.Windows.Forms.FlatStyle.Popup; + this.cbLyricWiki.Location = new System.Drawing.Point(16, 21); + this.cbLyricWiki.Name = "cbLyricWiki"; + this.cbLyricWiki.Size = new System.Drawing.Size(67, 17); + this.cbLyricWiki.TabIndex = 11; + this.cbLyricWiki.Text = "LyricWiki"; + this.cbLyricWiki.UseVisualStyleBackColor = true; + // + // btClose + // + this.btClose.Location = new System.Drawing.Point(354, 549); + this.btClose.Name = "btClose"; + this.btClose.Size = new System.Drawing.Size(75, 23); + this.btClose.TabIndex = 30; + this.btClose.Text = "Close"; + this.btClose.UseVisualStyleBackColor = true; + this.btClose.Click += new System.EventHandler(this.btClose_Click); + // + // btUpdate + // + this.btUpdate.Enabled = false; + this.btUpdate.Location = new System.Drawing.Point(273, 549); + this.btUpdate.Name = "btUpdate"; + this.btUpdate.Size = new System.Drawing.Size(75, 23); + this.btUpdate.TabIndex = 11; + this.btUpdate.Text = "Update"; + this.btUpdate.UseVisualStyleBackColor = true; + this.btUpdate.Click += new System.EventHandler(this.btUpdate_Click); + // + // MyLyricsSetup_SearchTitleDialog + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(456, 584); + this.ControlBox = false; + this.Controls.Add(this.btUpdate); + this.Controls.Add(this.btClose); + this.Controls.Add(this.gbLyricSites); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.gbSearchInfo); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(464, 611); + this.MinimizeBox = false; + this.MinimumSize = new System.Drawing.Size(464, 611); + this.Name = "MyLyricsSetup_SearchTitleDialog"; + this.ShowIcon = false; + this.Text = "Fetch lyric dialog"; + this.gbSearchInfo.ResumeLayout(false); + this.gbSearchInfo.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.gbLyricSites.ResumeLayout(false); + this.gbLyricSites.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox gbSearchInfo; + private System.Windows.Forms.Label lbTitle; + private System.Windows.Forms.TextBox tbArtist; + private System.Windows.Forms.Label lbArtist; + private System.Windows.Forms.TextBox tbTitle; + private System.Windows.Forms.Button btFind; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.TextBox tbLyrics; + private MediaPortal.UserInterface.Controls.MPGroupBox gbLyricSites; + internal MediaPortal.UserInterface.Controls.MPCheckBox cbHotLyrics; + internal MediaPortal.UserInterface.Controls.MPCheckBox cbSeekLyrics; + internal MediaPortal.UserInterface.Controls.MPCheckBox cbLyricsOnDemand; + internal MediaPortal.UserInterface.Controls.MPCheckBox cbLyrics007; + internal MediaPortal.UserInterface.Controls.MPCheckBox cbEvilLabs; + internal MediaPortal.UserInterface.Controls.MPCheckBox cbLyricWiki; + private System.Windows.Forms.ListView lvSearchResults; + private System.Windows.Forms.ColumnHeader cbSite; + private System.Windows.Forms.ColumnHeader cbResult; + private System.Windows.Forms.ColumnHeader chLyric; + private System.Windows.Forms.Button btClose; + private System.Windows.Forms.Button btUpdate; + private System.Windows.Forms.Button btCancel; + } +} \ No newline at end of file Added: trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.cs =================================================================== --- trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.cs (rev 0) +++ trunk/plugins/MyLyrics/My Lyrics/MyLyrics Configuration/FindLyric.cs 2007-11-07 18:51:29 UTC (rev 1035) @@ -0,0 +1,452 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using System.Threading; + +using LyricsEngine; + +namespace MyLyrics +{ + public partial class FindLyric : Form, ILyricForm + { + + public delegate void DelegateStringUpdate(String message, String site); + public DelegateStringUpdate m_DelegateStringUpdate; + public delegate void DelegateStatusUpdate(Int32 noOfLyricsToSearch, Int32 noOfLyricsSearched, Int32 noOfLyricsFound, Int32 noOfLyricsNotFound); + public DelegateStatusUpdate m_DelegateStatusUpdate; + public delegate void DelegateLyricFound(String s, String artist, String track, String site); + public DelegateLyricFound m_DelegateLyricFound; + public delegate void DelegateLyricNotFound(String artist, String title, String message, String site); + public DelegateLyricNotFound m_DelegateLyricNotFound; + public delegate void DelegateThreadFinished(String arist, String title, String message, String site); + public DelegateThreadFinished m_DelegateThreadFinished; + public delegate void DelegateThreadException(Object o); + public DelegateThreadException m_DelegateThreadException; + LyricsController lc; + + // worker thread + Thread m_LyricControllerThread; + + ManualResetEvent m_EventStopThread; + + string originalArtist; + string originalTitle; + int counter; + bool m_automaticFetch = true; + bool m_automaticUpdate = true; + bool m_moveLyricFromMarkedDatabase = true; + bool marked... [truncated message content] |