Skip to content

Commit

Permalink
update for lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
namo-py committed Aug 30, 2018
1 parent dc58725 commit 103cf3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SBFileStreamer.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SBFileStreamer"
s.version = "1.2.1"
s.version = "1.3.0"
s.summary = "Basic file streamer for iOS development."
s.description = "Basic file streamer for Objc.Inc iOS Developers, such as ViewController/View etc."

Expand Down
14 changes: 11 additions & 3 deletions SBFileStreamer/SBFileStreamer/SBFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ + (NSString *)fetchDir4FileExtention:(NSString *)ext {
break;
}
}
//lyrics
mimes = @[@"lrc", @"trc", @"krc", @"qrc", @"ksc", @"kaj"];
for (NSString *v in mimes) {
if ([v isEqualToString:ext]) {
dir = @"lyrics";
break;
}
}
//audio
mimes = @[@"mp3", @"wma", @"ogg", @"wav", @"aac"];
for (NSString *a in mimes) {
Expand Down Expand Up @@ -130,9 +138,9 @@ - (NSString *)destPath {
NSString *dir = [SBKit fetchDir4FileExtention:ext];
NSString *sandBox = [SBKit sandbox];
NSString *fullPath = [sandBox stringByAppendingPathComponent:dir];
if (self.owner.length > 0) {
fullPath = [fullPath stringByAppendingPathComponent:self.owner];
}
// if (self.owner.length > 0) {
// fullPath = [fullPath stringByAppendingPathComponent:self.owner];
// }
NSError *err;
NSFileManager *m = [NSFileManager defaultManager];
if (![m fileExistsAtPath:fullPath]) {
Expand Down

0 comments on commit 103cf3e

Please sign in to comment.