| 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 | } |
|---|