Skip to content

Commit

Permalink
Merge branch 'release-1.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Otiel committed Aug 24, 2020
2 parents e1a7473 + 416c1b2 commit 391f8e7
Show file tree
Hide file tree
Showing 15 changed files with 585 additions and 28 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.2

## Improvements

* Added the following languages thanks to [contributors](https://github.com/Otiel/BandcampDownloader/pull/119): Dutch.
* Updated the following languages thanks to [contributors](https://github.com/Otiel/BandcampDownloader/pull/119): French, German, Italian, Polish, Russian.

## Bug fixes

* Fixed a bug that caused the release date for tracks to be set to '1'. Thanks **@Nebula-Mechanica**! [#144](https://github.com/Otiel/BandcampDownloader/issues/144) [#145](https://github.com/Otiel/BandcampDownloader/pull/145)

# 1.3.1

## Improvements
Expand Down
6 changes: 4 additions & 2 deletions src/BandcampDownloader/Core/UserSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ namespace BandcampDownloader {
public enum Language {
[Description("English")]
en,
//[Description("Arabic (العربية)")]
//ar,
[Description("Chinese (Simplified) (汉语)")]
zh,
//[Description("Dutch (Nederlands)")]
//nl,
[Description("Dutch (Nederlands)")]
nl,
[Description("French (Français)")]
fr,
[Description("German (Deutsch)")]
Expand Down
6 changes: 4 additions & 2 deletions src/BandcampDownloader/Helpers/LanguageHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public static void ApplyLanguage(Language language) {
private static CultureInfo GetCultureInfo(Language language) {
// Existing cultures: https://dotnetfiddle.net/e1BX7M
switch (language) {
//case Language.ar:
// return new CultureInfo("ar");
case Language.de:
return new CultureInfo("de");
case Language.en:
Expand All @@ -40,8 +42,8 @@ private static CultureInfo GetCultureInfo(Language language) {
return new CultureInfo("pl");
//case Language.ko:
// return new CultureInfo("ko");
//case Language.nl:
// return new CultureInfo("nl");
case Language.nl:
return new CultureInfo("nl");
case Language.pt:
return new CultureInfo("pt");
case Language.ru:
Expand Down
5 changes: 5 additions & 0 deletions src/BandcampDownloader/Model/JSON/JsonAlbum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public Album ToAlbum() {
// Some albums do not have a cover art
string artworkUrl = ArtId == null ? null : _urlStart + ArtId.PadLeft(10, '0') + _urlEnd;

// Singles might not have a release date #144
if (ReleaseDate == new DateTime()) {
ReleaseDate = AlbumData.ReleaseDate;
}

var album = new Album(Artist, artworkUrl, ReleaseDate, AlbumData.AlbumTitle);

// Some tracks do not have their URL filled on some albums (pre-release...)
Expand Down
6 changes: 5 additions & 1 deletion src/BandcampDownloader/Model/JSON/JsonAlbumData.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
using Newtonsoft.Json;
using System;
using Newtonsoft.Json;

namespace BandcampDownloader {

internal class JsonAlbumData {

[JsonProperty("title")]
public string AlbumTitle { get; set; }

[JsonProperty("release_date")]
public DateTime ReleaseDate { get; set; }
}
}
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.1")]
[assembly: AssemblyFileVersion("1.3.1")]
[assembly: AssemblyVersion("1.3.2")]
[assembly: AssemblyFileVersion("1.3.2")]
[assembly: GuidAttribute("8C171C7F-9BAC-4EC0-A287-59908B48953F")]
136 changes: 136 additions & 0 deletions src/BandcampDownloader/Properties/Resources.ar.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<?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" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="buttonBrowse" xml:space="preserve">
<value>…</value>
</data>
<data name="buttonCancel" xml:space="preserve">
<value>_الغاء</value>
</data>
<data name="buttonCheckForUpdates" xml:space="preserve">
<value>_بحث عن اصدار جديد</value>
</data>
<data name="buttonDownloadUpdate" xml:space="preserve">
<value>_تحميل النسخة الجديدة</value>
</data>
<data name="buttonOpenSettingsWindow" xml:space="preserve">
<value>_الاعدادات</value>
</data>
<data name="buttonSave" xml:space="preserve">
<value>_حفظ</value>
</data>
<data name="buttonStart" xml:space="preserve">
<value>_تحميل</value>
</data>
<data name="buttonStop" xml:space="preserve">
<value>_الغاء</value>
</data>
<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="checkBoxCoverArtInFolderResize" xml:space="preserve">
<value>تحديد اعلى ارتفاع وعرض</value>
</data>
<data name="checkBoxCoverArtInTagsConvertToJpg" xml:space="preserve">
<value>تحويل الصيغة الى JPG</value>
</data>
<data name="checkBoxCoverArtInTagsResize" xml:space="preserve">
<value>تحديد اعلى ارتفاع وعرض</value>
</data>
<data name="checkBoxCreatePlaylist" xml:space="preserve">
<value>صنع قائمة تشغيل لكل البوم</value>
</data>
<data name="checkBoxDownloadDiscography" 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>_اوك</value>
</data>
<data name="messageBoxButtonYes" 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>
</root>
11 changes: 6 additions & 5 deletions src/BandcampDownloader/Properties/Resources.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<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" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
Expand Down Expand Up @@ -121,7 +121,7 @@
<value>…</value>
</data>
<data name="buttonBrowse_ToolTip" xml:space="preserve">
<value>Order wählen</value>
<value>Nach Ordner suchen</value>
</data>
<data name="buttonCancel" xml:space="preserve">
<value>_Abbrechen</value>
Expand Down Expand Up @@ -205,7 +205,7 @@
<value>Benachrichtigungssignal für abgeschlossene Downloads.</value>
</data>
<data name="checkBoxM3uExtended" xml:space="preserve">
<value>_Erweitertes Format (nur für M3U) verwenden</value>
<value>_Erweitertes Format (nur für M3U) verwenden</value>
</data>
<data name="checkBoxM3uExtended_ToolTip" xml:space="preserve">
<value>M3U-Wiedergabelisten im erweiterten Format (Anweisungen, denen das Zeichen # vorangestellt ist).</value>
Expand Down Expand Up @@ -239,7 +239,7 @@ Wenn nicht, wird etwas Bandbreite/Zeit eingespart.</value>
<value>Lädt Grafiken von Covern in den Albumordner herunter.</value>
</data>
<data name="checkBoxSaveCoverArtInTags" xml:space="preserve">
<value>Als _Schlagwort speichern</value>
<value>Als _Schlagwort speichern</value>
</data>
<data name="checkBoxSaveCoverArtInTags_ToolTip" xml:space="preserve">
<value>Speichert Cover in den Titel-Schlagwörter.</value>
Expand Down Expand Up @@ -525,7 +525,8 @@ Empfohlener Wert = 4</value>
<value>Fügen Sie URLs von Alben ein, die Sie hier herunterladen können. Sie können mehrere URLs angeben, indem Sie eine URL pro Zeile eingeben.

Eine Bandcamp-URL sieht so aus: http://[artist].bandcamp.com/album/[album] oder http://[artist].bandcamp.com/track/[track].
Seite von Interpreten einfügen: http://[artist].bandcamp.com und klicke auf „☑ Diskographie des Interpreten herunterladen”, um alle deren Alben herunterzuladen.</value>
Seite von Interpreten einfügen: http://[artist].bandcamp.com und klicke auf „☑ Diskographie des Interpreten herunterladen“, um alle deren Alben
herunterzuladen.</value>
</data>
<data name="windowSettings_Title" xml:space="preserve">
<value>Einstellungen</value>
Expand Down
7 changes: 3 additions & 4 deletions src/BandcampDownloader/Properties/Resources.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@
<data name="checkBoxModifyTags_ToolTip" xml:space="preserve">
<value>Chaque métadonnée sera modifiée selon les règles définies ci-dessous.

Si cette option est décochée, toutes les règles définies ci-dessous seront ignorées et les métadonnées seront conservées à l'identique du fichier téléchargé.
Cela revient à régler "Ne pas modifier" pour chaque métadonnée.</value>
Si cette option est décochée, toutes les règles définies ci-dessous seront ignorées et les métadonnées seront conservées à l'identique du fichier téléchargé. Cela revient à régler "Ne pas modifier" pour chaque métadonnée.</value>
</data>
<data name="checkBoxOneAlbumAtATime" xml:space="preserve">
<value>Télécharger un album à la _fois</value>
Expand Down Expand Up @@ -525,8 +524,8 @@ Valeur conseillée = 4</value>
<data name="textBoxUrlsPlaceholder" xml:space="preserve">
<value>Copiez les URL d'albums à télécharger ici. Vous pouvez spécifier plusieurs URL en ayant un URL par ligne.

Un URL de Bandcamp est de la forme suivante : http://[artiste].bandcamp.com/album/[album] or http://[artiste].bandcamp.com/track/[chanson]
Copiez des URL d'interprètes : http://[artiste].bandcamp.com et cocher "☑ Télécharger la discographie de l'artiste" pour télécharger l'ensemble
Un URL de Bandcamp est de la forme suivante : http://[artiste].bandcamp.com/album/[album] ou http://[artiste].bandcamp.com/track/[chanson]
Copiez des URL d'interprètes: http://[artiste].bandcamp.com et cocher « ☑ Télécharger la discographie de l'artiste » pour télécharger l'ensemble
de leurs albums.</value>
</data>
<data name="windowSettings_Title" xml:space="preserve">
Expand Down
Loading

0 comments on commit 391f8e7

Please sign in to comment.