diff --git a/.gitignore b/.gitignore
index 05ec20a..b8ca8e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,7 +23,7 @@ DerivedData
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
-# Pods/
+Pods/
*~
.DS_Store
*.swp
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..217af47
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..e206d70
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/.idea/iLcatraz.iml b/.idea/iLcatraz.iml
new file mode 100644
index 0000000..ef582b1
--- /dev/null
+++ b/.idea/iLcatraz.iml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28b71f5
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..1c7237e
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/.idea/scopes/scope_settings.xml b/.idea/scopes/scope_settings.xml
new file mode 100644
index 0000000..922003b
--- /dev/null
+++ b/.idea/scopes/scope_settings.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..275077f
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/iLcatraz.xcodeproj/project.pbxproj b/iLcatraz.xcodeproj/project.pbxproj
index f4a7959..23b4d0d 100644
--- a/iLcatraz.xcodeproj/project.pbxproj
+++ b/iLcatraz.xcodeproj/project.pbxproj
@@ -685,7 +685,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "iLcatraz/iLcatraz-Prefix.pch";
INFOPLIST_FILE = "iLcatraz/iLcatraz-Info.plist";
- MACOSX_DEPLOYMENT_TARGET = 10.6;
+ MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -700,7 +700,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "iLcatraz/iLcatraz-Prefix.pch";
INFOPLIST_FILE = "iLcatraz/iLcatraz-Info.plist";
- MACOSX_DEPLOYMENT_TARGET = 10.6;
+ MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
diff --git a/iLcatraz/HTTPConnectionIL.m b/iLcatraz/HTTPConnectionIL.m
index de3402b..c74249a 100644
--- a/iLcatraz/HTTPConnectionIL.m
+++ b/iLcatraz/HTTPConnectionIL.m
@@ -108,9 +108,12 @@ + (NSString*) sanitizePID:(NSString*) pid{
/media/playlists/ID/tracks
*/
c=[service countOfTracksOfPlaylistWithID:pid];
- if ([method isEqualToString:@"GET"])
- ret=[service jsonTracksOfPlaylistWithID:pid];
- else if ([method isEqualToString:@"HEAD"]){
+ if ([method isEqualToString:@"GET"]){
+ if (c==0)
+ ret=@"[]";
+ else
+ ret=[service jsonTracksOfPlaylistWithID:pid];
+ } else if ([method isEqualToString:@"HEAD"]){
ret=@"";
}
}else{