diff --git a/framework/framework.iml b/framework/framework.iml
index dad98d5..9a58259 100644
--- a/framework/framework.iml
+++ b/framework/framework.iml
@@ -9,7 +9,6 @@
-
@@ -20,7 +19,7 @@
-
+
@@ -48,7 +47,6 @@
-
@@ -56,7 +54,6 @@
-
@@ -64,25 +61,22 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/playmusicexporter/playmusicexporter.iml b/playmusicexporter/playmusicexporter.iml
index ba68838..168f989 100644
--- a/playmusicexporter/playmusicexporter.iml
+++ b/playmusicexporter/playmusicexporter.iml
@@ -9,7 +9,6 @@
-
@@ -47,7 +46,6 @@
-
@@ -55,7 +53,6 @@
-
@@ -63,7 +60,6 @@
-
@@ -71,7 +67,6 @@
-
@@ -79,7 +74,6 @@
-
diff --git a/playmusicexporter/src/main/java/re/jcg/playmusicexporter/services/ExportAllService.java b/playmusicexporter/src/main/java/re/jcg/playmusicexporter/services/ExportAllService.java
index 053c4b3..74b149c 100644
--- a/playmusicexporter/src/main/java/re/jcg/playmusicexporter/services/ExportAllService.java
+++ b/playmusicexporter/src/main/java/re/jcg/playmusicexporter/services/ExportAllService.java
@@ -68,7 +68,15 @@ public class ExportAllService extends IntentService {
if (lTrack.isOfflineAvailable()) {
String lPath = MusicPathBuilder.Build(lTrack, lExportStructure);
try {
-
+ if (!isAlreadyThere(lUri, lPath)) {
+ if (lPlayMusicManager.exportMusicTrack(lTrack, lUri, lPath)) {
+ Log.i(TAG, "Exported Music Track: " + getStringForTrack(lTrack));
+ } else {
+ Log.i(TAG, "Failed to export Music Track: " + getStringForTrack(lTrack));
+ }
+ } else {
+ Log.i(TAG, lPath + " already exists.");
+ }
} catch (IllegalArgumentException e) {
if (e.getMessage().contains("Invalid URI:")) {
/*
@@ -79,15 +87,6 @@ public class ExportAllService extends IntentService {
Log.i(TAG, "Automatic export failed, because the URI is invalid.");
} else throw e;
}
- if (!isAlreadyThere(lUri, lPath)) {
- if (lPlayMusicManager.exportMusicTrack(lTrack, lUri, lPath)) {
- Log.i(TAG, "Exported Music Track: " + getStringForTrack(lTrack));
- } else {
- Log.i(TAG, "Failed to export Music Track: " + getStringForTrack(lTrack));
- }
- } else {
- Log.i(TAG, lPath + " already exists.");
- }
}
}
}
diff --git a/playmusicexporter/src/main/res/values-de/strings.xml b/playmusicexporter/src/main/res/values-de/strings.xml
index 592ddc3..90757ad 100644
--- a/playmusicexporter/src/main/res/values-de/strings.xml
+++ b/playmusicexporter/src/main/res/values-de/strings.xml
@@ -100,4 +100,5 @@
Export Pfad für Playlists
Administrator-Zugriff verweigert
Der Play Music Exporter benötigt Administrator Rechte, ohne diese Rechte kann die App nicht genutzt werden.
+ Verzeichnisbaum
\ No newline at end of file