Changeset 669

Show
Ignore:
Timestamp:
09/21/08 21:27:33 (4 months ago)
Author:
gbooker
Message:

This seems to be a better way to get plot

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/CoreData/SapphireFrappliance/MetaDataImporting/SapphireMovieImporter.m

    r661 r669  
    461461                                else if([dataType hasPrefix:@"Plot:"]) 
    462462                                { 
    463                                         [trimmer scanUpToString:@"full summary" intoString:&plot]; 
    464                                         NSMutableString *mutStr = [plot mutableCopy]; 
    465                                         [mutStr replaceOccurrencesOfString:@" | add synopsis" withString:@"" options:0 range:NSMakeRange(0, [mutStr length])]; 
    466                                         plot = [NSString stringWithString:mutStr]; 
    467                                         [mutStr release]; 
     463                                        NSArray *children = [result children]; 
     464                                        NSEnumerator *childEnum = [children objectEnumerator]; 
     465                                        NSXMLElement *child; 
     466                                        while((child = [childEnum nextObject]) != nil) 
     467                                        { 
     468                                                if([child kind] == NSXMLTextKind) 
     469                                                { 
     470                                                        plot = [child stringValue]; 
     471                                                        break; 
     472                                                } 
     473                                        } 
    468474                                } 
    469475                                else