| | 160 | NSString *epCoverPath = [ep coverArtPath]; |
|---|
| | 161 | NSString *oldBasePath = [[epCoverPath stringByDeletingLastPathComponent] stringByAppendingPathComponent:[self.path lastPathComponent]]; |
|---|
| | 162 | NSString *oldCoverPath = searchCoverArtExtForPath([oldBasePath stringByDeletingPathExtension]); |
|---|
| | 163 | NSFileManager *fm = [NSFileManager defaultManager]; |
|---|
| | 164 | if(oldCoverPath != nil) |
|---|
| | 165 | { |
|---|
| | 166 | NSString *newPath = [epCoverPath stringByAppendingPathExtension:[oldCoverPath pathExtension]]; |
|---|
| | 167 | [fm movePath:oldCoverPath toPath:newPath handler:nil]; |
|---|
| | 168 | } |
|---|
| | 169 | } |
|---|