Skip to content

Commit

Permalink
Fix typcn#108
Browse files Browse the repository at this point in the history
  • Loading branch information
typcn committed Sep 20, 2015
1 parent 7bc59c5 commit 0fe7478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bilibili/Downloader/downloadWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

BOOL Downloader::newTask(int cid,NSString *name){
NSLog(@"[Downloader] New Task CID: %d",cid);
NSString *path = [NSString stringWithFormat:@"%@%@%@/",NSHomeDirectory(),@"/Movies/Bilibili/",name];

NSString *filteredName = [name stringByReplacingOccurrencesOfString:@"/" withString:@""];
NSString *path = [NSString stringWithFormat:@"%@%@%@/",NSHomeDirectory(),@"/Movies/Bilibili/",filteredName];

[[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:NULL];
NSString *commentUrl = [NSString stringWithFormat:@"http://comment.bilibili.com/%d.xml",cid];
Expand Down

0 comments on commit 0fe7478

Please sign in to comment.