diff --git a/osu!Lyrics/Audio.cs b/osu!Lyrics/Audio.cs index d014fcd..da473e0 100644 --- a/osu!Lyrics/Audio.cs +++ b/osu!Lyrics/Audio.cs @@ -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 @@ -23,7 +23,7 @@ public Audio(string path) : this() catch {} try { - this.Beatmap = Beatmap.Load(path); + this.Beatmap = Beatmap.Load(beatmapPath); } catch {} } diff --git a/osu!Lyrics/Beatmap.cs b/osu!Lyrics/Beatmap.cs index a006916..71a52bd 100644 --- a/osu!Lyrics/Beatmap.cs +++ b/osu!Lyrics/Beatmap.cs @@ -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() {} diff --git a/osu!Lyrics/Lyrics.cs b/osu!Lyrics/Lyrics.cs index 36c2fea..b2c5d45 100644 --- a/osu!Lyrics/Lyrics.cs +++ b/osu!Lyrics/Lyrics.cs @@ -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