|
From: <sa...@us...> - 2007-04-30 21:00:57
|
Revision: 365
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=365&view=rev
Author: saamand
Date: 2007-04-30 14:00:23 -0700 (Mon, 30 Apr 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/MyLyrics/MyLyrics.suo
Removed Paths:
-------------
trunk/plugins/MyLyrics/My Lyrics/MyLyricsUtil.cs
Deleted: trunk/plugins/MyLyrics/My Lyrics/MyLyricsUtil.cs
===================================================================
--- trunk/plugins/MyLyrics/My Lyrics/MyLyricsUtil.cs 2007-04-30 20:05:26 UTC (rev 364)
+++ trunk/plugins/MyLyrics/My Lyrics/MyLyricsUtil.cs 2007-04-30 21:00:23 UTC (rev 365)
@@ -1,75 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-
-using LyricsEngine;
-
-namespace MyLyrics
-{
- internal class MyLyricsUtil
- {
- internal const string MARK = "(no lyric attached)";
-
- internal const int LYRIC_NOT_FOUND = -1;
- internal const int LYRIC_MARKED = 0;
- internal const int LYRIC_FOUND = 1;
-
- internal static int isTrackInLyricsDatabase(LyricsDatabase lyricDB, string artist, string title)
- {
- string lyricText = "";
- try
- {
- string capatalizedArtist = LyricUtil.capatalizeString(artist);
- string capatalizedTitle = LyricUtil.capatalizeString(title);
-
- lyricText = lyricDB[CorrectKeyFormat(capatalizedArtist, capatalizedTitle)].Lyrics;
- }
- catch
- {
- return LYRIC_NOT_FOUND;
- }
-
- if (lyricText.Equals(MARK))
- {
- return LYRIC_MARKED;
- }
- else
- {
- return LYRIC_FOUND;
- }
- }
-
- internal static int isTrackInLyricsMarkedDatabase(LyricsDatabase lyricMarkedDB, string artist, string title)
- {
- string lyricsText = "";
- try
- {
- lyricsText = lyricMarkedDB[MyLyricsUtil.CorrectKeyFormat(LyricUtil.capatalizeString(artist), LyricUtil.capatalizeString(title))].Lyrics;
- }
- catch{
- return LYRIC_NOT_FOUND;
- }
- return LYRIC_MARKED;
- }
-
-
- public static string LookUpLyricInDatabase(LyricsDatabase lyricDB, string artist, string title)
- {
- string lyricText = "";
- try
- {
- lyricText = lyricDB[CorrectKeyFormat(LyricUtil.capatalizeString(artist), LyricUtil.capatalizeString(title))].Lyrics;
- return lyricText.Replace("\n", "\r\n");
- }
- catch
- {
- return lyricText;
- }
- }
-
- public static string CorrectKeyFormat(string artist, string title)
- {
- return artist + "-" + title;
- }
- }
-}
Modified: trunk/plugins/MyLyrics/MyLyrics.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|