Skip to content

Commit

Permalink
follow-up 0c01eea
Browse files Browse the repository at this point in the history
음악 정보로 가사 검색 못하던 문제 해결
  • Loading branch information
sunghwan2789 committed Dec 21, 2015
1 parent 0c01eea commit ab7123b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions osu!Lyrics/Audio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public Audio()
this.Sync = 0;
}

public Audio(string path) : this()
public Audio(string path, string beatmapPath) : this()
{
this.Path = path;
try
Expand All @@ -23,7 +23,7 @@ public Audio(string path) : this()
catch {}
try
{
this.Beatmap = Beatmap.Load(path);
this.Beatmap = Beatmap.Load(beatmapPath);
}
catch {}
}
Expand Down
8 changes: 4 additions & 4 deletions osu!Lyrics/Beatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ namespace osu_Lyrics
{
internal class Beatmap
{
public readonly string Artist;
public readonly string ArtistUnicode;
public readonly string Title;
public readonly string TitleUnicode;
public string Artist { get; private set; }
public string ArtistUnicode { get; private set; }
public string Title { get; private set; }
public string TitleUnicode { get; private set; }

public Beatmap() {}

Expand Down
2 changes: 1 addition & 1 deletion osu!Lyrics/Lyrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private async void Osu_Signal(string line)
new Lyric(0, "가사 받는 중...")
};

curAudio = new Audio(data[1]);
curAudio = new Audio(data[1], data[4]);

// 파일 해시로 가사 검색
var newLyrics = await GetLyrics(new Dictionary<string, string>
Expand Down

0 comments on commit ab7123b

Please sign in to comment.