Skip to content

Commit

Permalink
Merge branch 'release-1.3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Otiel committed Sep 24, 2020
2 parents 391f8e7 + 65d7a81 commit 18acd29
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.3.3

## Bug fixes

* Fixed the reading of Bandcamp metadata since their changes. [#153](https://github.com/Otiel/BandcampDownloader/issues/153)

# 1.3.2

## Improvements
Expand Down
9 changes: 6 additions & 3 deletions src/BandcampDownloader/Helpers/BandcampHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,20 @@ private static string FixJson(string albumData) {
}

private static string GetAlbumData(string htmlCode) {
string startString = "var TralbumData = {";
string stopString = "};";
string startString = "data-tralbum=\"{";
string stopString = "}\"";

if (htmlCode.IndexOf(startString) == -1) {
// Could not find startString
throw new Exception("Could not find the following string in HTML code: var TralbumData = {");
throw new Exception($"Could not find the following string in HTML code: {startString}");
}

string albumDataTemp = htmlCode.Substring(htmlCode.IndexOf(startString) + startString.Length - 1);
string albumData = albumDataTemp.Substring(0, albumDataTemp.IndexOf(stopString) + 1);

// Replace " by "
albumData = albumData.Replace(""", "\"");

return albumData;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/BandcampDownloader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.2")]
[assembly: AssemblyFileVersion("1.3.2")]
[assembly: AssemblyVersion("1.3.3")]
[assembly: AssemblyFileVersion("1.3.3")]
[assembly: GuidAttribute("8C171C7F-9BAC-4EC0-A287-59908B48953F")]

0 comments on commit 18acd29

Please sign in to comment.