Changeset 221

Show
Ignore:
Timestamp:
09/10/07 22:36:56 (1 year ago)
Author:
gbooker
Message:

removed two warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/SapphireMovieImporter.m

    r218 r221  
    126126        NSString *documentPath =[NSHomeDirectory() stringByAppendingPathComponent:@"Library/Application Support/Sapphire/XML"]; 
    127127        [[document XMLDataWithOptions:NSXMLNodePrettyPrint] writeToFile:[NSString stringWithFormat:@"/%@%@_page.xml",documentPath,movieName] atomically:YES] ; 
    128         NSXMLElement *html = [document rootElement];     
    129         NSString *movieTitle= [document objectsForXQuery:@"//div[@id='tn15title']/h1/replace(string(), '\n', '')" error:&error]; 
     128        NSString *movieTitle= [[document objectsForXQuery:@"//div[@id='tn15title']/h1/replace(string(), '\n', '')" error:&error] objectAtIndex:0]; 
    130129         
    131130        [ret setObject:movieTitle forKey:META_MOVIE_TITLE];