Skip to content

Commit

Permalink
empty list of tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
chamspan committed Mar 6, 2015
1 parent 659abca commit e58c691
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/iLcatraz.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions iLcatraz.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
9 changes: 6 additions & 3 deletions iLcatraz/HTTPConnectionIL.m
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit e58c691

Please sign in to comment.