Changeset 535 for trunk/SapphireFrappliance/SapphireVideoTSParser.m
- Timestamp:
- 05/15/08 15:19:36 (4 years ago)
- Files:
-
- 1 modified
-
trunk/SapphireFrappliance/SapphireVideoTSParser.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SapphireFrappliance/SapphireVideoTSParser.m
r529 r535 183 183 184 184 unsigned long long ifoSz = 0; 185 unsigned long long total = 0; 185 186 186 187 // The largest IFO file (not including VIDEO_TS.IFO) corresponds to the main feature 187 188 while( filePath = [enumerator nextObject] ) 188 189 { 190 unsigned long long sz = [[[fm fileAttributesAtPath:[videotsPath stringByAppendingPathComponent:filePath] traverseLink:YES] valueForKey:NSFileSize] unsignedLongLongValue]; 191 total += sz; 192 189 193 if( [[filePath lowercaseString] hasSuffix:@".ifo"] && [[filePath lastPathComponent] caseInsensitiveCompare:@"video_ts.ifo"] != NSOrderedSame ) 190 194 { 191 unsigned long long sz = [[[fm fileAttributesAtPath:[videotsPath stringByAppendingPathComponent:filePath] traverseLink:YES] valueForKey:NSFileSize] unsignedLongLongValue];192 193 195 if ( sz > ifoSz ) 194 196 { … … 198 200 } 199 201 } 202 203 size = [NSNumber numberWithLongLong:total]; 200 204 201 205 if( ifoPath != nil ) … … 404 408 } 405 409 410 - (const NSNumber * const) totalSize 411 { 412 return size; 413 } 414 406 415 @end
