Show
Ignore:
Timestamp:
01/10/08 11:10:56 (4 years ago)
Author:
gbooker
Message:

Two episode in a file support
Refs #14

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/SapphireMetaData.m

    r446 r451  
    18651865} 
    18661866 
     1867- (int)secondEpisodeNumber 
     1868{ 
     1869        [self constructCombinedData]; 
     1870        return [[combinedInfo objectForKey:META_EPISODE_2_NUMBER_KEY] intValue]; 
     1871} 
     1872 
    18671873- (int)seasonNumber 
    18681874{ 
     
    20452051        int ep = [self episodeNumber]; 
    20462052        if(season != 0 && ep != 0)  
    2047                 [ret setObject:[NSString stringWithFormat:@"%@ - %d / %d",[self showName], season, ep] forKey:META_EPISODE_AND_SEASON_KEY]; 
     2053        { 
     2054                int secondEp = [self secondEpisodeNumber]; 
     2055                if(secondEp != nil) 
     2056                        [ret setObject:[NSString stringWithFormat:@"%@ - %d / %d-%d",[self showName], season, ep, secondEp] forKey:META_EPISODE_AND_SEASON_KEY]; 
     2057                else 
     2058                        [ret setObject:[NSString stringWithFormat:@"%@ - %d / %d",[self showName], season, ep] forKey:META_EPISODE_AND_SEASON_KEY]; 
     2059        } 
    20482060        return ret; 
    20492061}