Commit 1aa9c45c authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLFile: implement the setter / getter for lastPosition manually since it...

MLFile: implement the setter / getter for lastPosition manually since it crashes too often and we should find out, why
parent 5dd157d2
......@@ -150,7 +150,6 @@ NSString *kMLFileTypeAudio = @"audio";
@dynamic seasonNumber;
@dynamic remainingTime;
@dynamic releaseYear;
@dynamic lastPosition;
@dynamic lastSubtitleTrack;
@dynamic lastAudioTrack;
@dynamic playCount;
......@@ -175,6 +174,26 @@ NSString *kMLFileTypeAudio = @"audio";
@dynamic genre;
@dynamic albumTrack;
- (NSNumber *)lastPosition
{
[self willAccessValueForKey:@"lastPosition"];
NSNumber *ret = [self primitiveValueForKey:@"lastPosition"];
[self didAccessValueForKey:@"lastPosition"];
return ret;
}
- (void)setLastPosition:(NSNumber *)lastPosition
{
@try {
[self willChangeValueForKey:@"lastPosition"];
[self setPrimitiveValue:lastPosition forKey:@"lastPosition"];
[self didChangeValueForKey:@"lastPosition"];
}
@catch (NSException *exception) {
APLog(@"lastPosition raised exception");
}
}
- (NSString *)thumbnailPath
{
NSString *folder = [[MLMediaLibrary sharedMediaLibrary] thumbnailFolderPath];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment