Skip to content

Commit

Permalink
Merge branch 'refs/heads/release-1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Otiel committed Nov 2, 2019
2 parents 8c31f35 + eea0c77 commit f1068d8
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 79 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 1.3.1

## Improvements

* Added the following languages thanks to [contributors](https://github.com/Otiel/BandcampDownloader/pull/117): French, Portuguese.
* Updated the following languages thanks to [contributors](https://github.com/Otiel/BandcampDownloader/pull/117): Spanish.

## Bug fixes

* Fixed a bug preventing the app from downloading discography for some artists. Thanks **@yuyoyuppe**! [#118](https://github.com/Otiel/BandcampDownloader/pull/118)

# 1.3.0

## Improvements
Expand Down
2 changes: 2 additions & 0 deletions src/BandcampDownloader/BandcampDownloader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@
<EmbeddedResource Include="Properties\Resources.it.resx" />
<EmbeddedResource Include="Properties\Resources.ko.resx" />
<EmbeddedResource Include="Properties\Resources.nb-NO.resx" />
<EmbeddedResource Include="Properties\Resources.nl.resx" />
<EmbeddedResource Include="Properties\Resources.pl.resx" />
<EmbeddedResource Include="Properties\Resources.pt.resx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
Expand Down
18 changes: 7 additions & 11 deletions src/BandcampDownloader/Core/DownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,19 +465,15 @@ private async Task<List<string>> GetArtistDiscographyAsync(List<string> urls) {
}
}

// Get albums referred on the page
regex = new Regex("TralbumData.*\n.*url:.*'/music'\n");
if (!regex.IsMatch(htmlCode)) {
int count = albumsUrls.Count;
try {
albumsUrls.AddRange(BandcampHelper.GetAlbumsUrl(htmlCode));
} catch (NoAlbumFoundException) {
LogAdded(this, new LogArgs($"No referred album could be found on {artistMusicPage}. Try to uncheck the \"Download artist discography\" option", LogType.Error));
}
if(albumsUrls.Count - count == 0) {
// This seem to be a one-album artist with no "music" page => URL redirects to the unique album URL
albumsUrls.Add(url);
} else {
// We are on a real "music" page
try {
albumsUrls.AddRange(BandcampHelper.GetAlbumsUrl(htmlCode));
} catch (NoAlbumFoundException) {
LogAdded(this, new LogArgs($"No referred album could be found on {artistMusicPage}. Try to uncheck the \"Download artist discography\" option", LogType.Error));
continue;
}
}
}

Expand Down
8 changes: 6 additions & 2 deletions src/BandcampDownloader/Core/UserSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public enum Language {
en,
[Description("Chinese (Simplified) (汉语)")]
zh,
//[Description("Dutch (Nederlands)")]
//nl,
[Description("French (Français)")]
fr,
[Description("German (Deutsch)")]
Expand All @@ -23,8 +25,10 @@ public enum Language {
nb_NO,
[Description("Polish (język polski)")]
pl,
//[Description("Russian (русский)")]
//ru,
[Description("Portuguese (Português)")]
pt,
[Description("Russian (русский)")]
ru,
[Description("Spanish (Español)")]
es,
[Description("Turkish (Türkçe)")]
Expand Down
8 changes: 6 additions & 2 deletions src/BandcampDownloader/Helpers/LanguageHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ private static CultureInfo GetCultureInfo(Language language) {
return new CultureInfo("pl");
//case Language.ko:
// return new CultureInfo("ko");
//case Language.ru:
// return new CultureInfo("ru");
//case Language.nl:
// return new CultureInfo("nl");
case Language.pt:
return new CultureInfo("pt");
case Language.ru:
return new CultureInfo("ru");
case Language.tr:
return new CultureInfo("tr");
//case Language.uk:
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.0")]
[assembly: AssemblyFileVersion("1.3.0")]
[assembly: AssemblyVersion("1.3.1")]
[assembly: AssemblyFileVersion("1.3.1")]
[assembly: GuidAttribute("8C171C7F-9BAC-4EC0-A287-59908B48953F")]
122 changes: 61 additions & 61 deletions src/BandcampDownloader/Properties/Resources.ru.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<xsd:schema xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
Expand Down Expand Up @@ -94,72 +94,18 @@
<data name="buttonViewChangelog" xml:space="preserve">
<value>_Посмотреть</value>
</data>
<data name="checkBoxCheckForUpdates" xml:space="preserve">
<value>Проверять на наличие _обновлений при запуске</value>
</data>
<data name="checkBoxCoverArtInFolderConvertToJpg" xml:space="preserve">
<value>Конвертировать в _JPG</value>
</data>
<data name="checkBoxCoverArtInTagsConvertToJpg" xml:space="preserve">
<value>Конвертировать в JP_G</value>
</data>
<data name="checkBoxCreatePlaylist" xml:space="preserve">
<value>Создать _плейлист для каждого альбома</value>
</data>
<data name="checkBoxDownloadDiscography" xml:space="preserve">
<value>Загрузить всю дискографию _артиста</value>
</data>
<data name="checkBoxSaveCoverArtInFolder" xml:space="preserve">
<value>Сохранить в _папку</value>
</data>
<data name="labelAlbumArtist" xml:space="preserve">
<value>_Исполнитель альбома</value>
</data>
<data name="labelAlbumTitle" xml:space="preserve">
<value>_Название альбома</value>
</data>
<data name="labelArtist" xml:space="preserve">
<value>_Исполнитель</value>
</data>
<data name="messageBoxButtonCancel" xml:space="preserve">
<value>_Отменить</value>
</data>
<data name="messageBoxButtonNo" xml:space="preserve">
<value>_Нет</value>
</data>
<data name="messageBoxButtonOK" xml:space="preserve">
<value>_OK</value>
</data>
<data name="messageBoxButtonYes" xml:space="preserve">
<value>_Да</value>
</data>
<data name="Skin_Dark" xml:space="preserve">
<value>Тёмная</value>
</data>
<data name="Skin_Light" xml:space="preserve">
<value>Светлая</value>
</data>
<data name="TagEditAction_DoNotModify" xml:space="preserve">
<value>Не изменять</value>
</data>
<data name="TagEditAction_Empty" xml:space="preserve">
<value>Очистить данные</value>
</data>
<data name="TagEditAction_Modify" xml:space="preserve">
<value>Сохранить в теге</value>
</data>
<data name="TagRemoveAction_DoNotModify" xml:space="preserve">
<value>Не изменять</value>
</data>
<data name="TagRemoveAction_Empty" xml:space="preserve">
<value>Очистить тег</value>
</data>
<data name="changelogDownloadError" xml:space="preserve">
<value>Не удалось загрузить журнал изменений из {0}</value>
</data>
<data name="checkBoxCheckForUpdates" xml:space="preserve">
<value>Проверять на наличие _обновлений при запуске</value>
</data>
<data name="checkBoxCheckForUpdates_ToolTip_Part" xml:space="preserve">
<value>Запрашивает следующий адрес при запуске приложения:</value>
</data>
<data name="checkBoxCoverArtInFolderConvertToJpg" xml:space="preserve">
<value>Конвертировать в _JPG</value>
</data>
<data name="checkBoxCoverArtInFolderConvertToJpg_ToolTip" xml:space="preserve">
<value>Преобразовать обложку в JPG со сжатием 90 (отличный компромисс между размером и качеством).</value>
</data>
Expand All @@ -169,6 +115,9 @@
<data name="checkBoxCoverArtInFolderResize_ToolTip" xml:space="preserve">
<value>Изменяет размер обложки до указанной максимальной ширины/высоты.</value>
</data>
<data name="checkBoxCoverArtInTagsConvertToJpg" xml:space="preserve">
<value>Конвертировать в JP_G</value>
</data>
<data name="checkBoxCoverArtInTagsConvertToJpg_ToolTip" xml:space="preserve">
<value>Преобразовать обложку в JPG со сжатием 90 (отличный компромисс между размером и качеством).</value>
</data>
Expand All @@ -178,9 +127,15 @@
<data name="checkBoxCoverArtInTagsResize_ToolTip" xml:space="preserve">
<value>Изменить размер обложки до указанной максимальной ширины/высоты.</value>
</data>
<data name="checkBoxCreatePlaylist" xml:space="preserve">
<value>Создать _плейлист для каждого альбома</value>
</data>
<data name="checkBoxCreatePlaylist_ToolTip" xml:space="preserve">
<value>Создает файл дорожки альбома для каждого загруженного альбома.</value>
</data>
<data name="checkBoxDownloadDiscography" xml:space="preserve">
<value>Загрузить всю дискографию _артиста</value>
</data>
<data name="checkBoxDownloadDiscography_ToolTip" xml:space="preserve">
<value>Загрузить всю дискографию артиста.</value>
</data>
Expand Down Expand Up @@ -218,6 +173,9 @@
<value>Получает размер файла, чтобы показать точный прогресс.
If not, some bandwidth/time is saved.</value>
</data>
<data name="checkBoxSaveCoverArtInFolder" xml:space="preserve">
<value>Сохранить в _папку</value>
</data>
<data name="checkBoxSaveCoverArtInFolder_ToolTip" xml:space="preserve">
<value>Загружает обложку в папку альбома.</value>
</data>
Expand All @@ -239,9 +197,18 @@ If not, some bandwidth/time is saved.</value>
<data name="labelAdvancedSettingsWarning" xml:space="preserve">
<value>Измените эти настройки на свой страх и риск.</value>
</data>
<data name="labelAlbumArtist" xml:space="preserve">
<value>_Исполнитель альбома</value>
</data>
<data name="labelAlbumTitle" xml:space="preserve">
<value>_Название альбома</value>
</data>
<data name="labelAllowedFileSizeDifference" xml:space="preserve">
<value>Допустимая _разница в размере файла (%)</value>
</data>
<data name="labelArtist" xml:space="preserve">
<value>_Исполнитель</value>
</data>
<data name="labelButtonResetSettings" xml:space="preserve">
<value>_Сбросить настройки</value>
</data>
Expand Down Expand Up @@ -356,6 +323,18 @@ If not, some bandwidth/time is saved.</value>
<data name="labelYear" xml:space="preserve">
<value>_Год выпуска альбома</value>
</data>
<data name="messageBoxButtonCancel" xml:space="preserve">
<value>_Отменить</value>
</data>
<data name="messageBoxButtonNo" xml:space="preserve">
<value>_Нет</value>
</data>
<data name="messageBoxButtonOK" xml:space="preserve">
<value>_OK</value>
</data>
<data name="messageBoxButtonYes" xml:space="preserve">
<value>_Да</value>
</data>
<data name="messageBoxCancelDownloadsText" xml:space="preserve">
<value>Отменить все загрузки?</value>
</data>
Expand Down Expand Up @@ -398,6 +377,27 @@ If not, some bandwidth/time is saved.</value>
<data name="saveFileDialogTitle" xml:space="preserve">
<value>Сохранить как</value>
</data>
<data name="Skin_Dark" xml:space="preserve">
<value>Тёмная</value>
</data>
<data name="Skin_Light" xml:space="preserve">
<value>Светлая</value>
</data>
<data name="TagEditAction_DoNotModify" xml:space="preserve">
<value>Не изменять</value>
</data>
<data name="TagEditAction_Empty" xml:space="preserve">
<value>Очистить данные</value>
</data>
<data name="TagEditAction_Modify" xml:space="preserve">
<value>Сохранить в теге</value>
</data>
<data name="TagRemoveAction_DoNotModify" xml:space="preserve">
<value>Не изменять</value>
</data>
<data name="TagRemoveAction_Empty" xml:space="preserve">
<value>Очистить тег</value>
</data>
<data name="textBlockReleasesWebsite" xml:space="preserve">
<value>История релизов</value>
</data>
Expand Down
3 changes: 2 additions & 1 deletion src/BandcampDownloader/UI/Dialogs/WindowMain.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public WindowMain() {
#if DEBUG
textBoxUrls.Text = ""
//+ "https://projectmooncircle.bandcamp.com" /* Lots of albums (124) */ + Environment.NewLine
+ "https://goataholicskjald.bandcamp.com/album/dogma" /* #65 Downloaded size ≠ predicted */ + Environment.NewLine
//+ "https://goataholicskjald.bandcamp.com/album/dogma" /* #65 Downloaded size ≠ predicted */ + Environment.NewLine
//+ "https://mstrvlk.bandcamp.com/album/-" /* #64 Album with big cover */ + Environment.NewLine
//+ "https://mstrvlk.bandcamp.com/track/-" /* #64 Track with big cover */ + Environment.NewLine
//+ "https://weneverlearnedtolive.bandcamp.com/album/silently-i-threw-them-skyward" /* #42 Album with lyrics */ + Environment.NewLine
Expand All @@ -58,6 +58,7 @@ public WindowMain() {
//+ "https://liluglymane.bandcamp.com/album/study-of-the-hypothesized-removable-and-or-expandable-nature-of-human-capability-and-limitations-primarily-regarding-introductory-experiences-with-new-and-exciting-technologies-by-way-of-motivati-2" /* #54 Long path */ + Environment.NewLine
//+ "https://brzoskamarciniakmarkiewicz.bandcamp.com/album/wp-aw" /* #82 Tracks with diacritics */ + Environment.NewLine
//+ "https://empyrium.bandcamp.com/album/der-wie-ein-blitz-vom-himmel-fiel" /* #102 Album ending with '...' */ + Environment.NewLine
+ "https://tympanikaudio.bandcamp.com" /* #118 Different discography page */ + Environment.NewLine
;
#endif
}
Expand Down

0 comments on commit f1068d8

Please sign in to comment.