public async Task <ILRCFile> TryGetLrcAsync(string songName, string artistName, string albumName) { var output = await GetLinesLrcFileAsync(songName, artistName, albumName); ILRCFile ilRCFile = output.Value; var lines = output.Key; if (lines != null && ilRCFile != null) { var lRCFile = ParseLRCFile(lines); if (lRCFile == null && LrcFileExists(songName, artistName, albumName)) { throw new Exception("FAILED TO PARSE " + songName + " " + artistName + " " + albumName); } ilRCFile.Update(lRCFile); } return(ilRCFile); }
public abstract Task <bool> Update(ILRCFile lRCFile);