@ -16,6 +16,7 @@ namespace NzbDrone.Core.Parser
LocalEpisode GetLocalEpisode ( string filename , Series series ) ;
LocalEpisode GetLocalEpisode ( string filename , Series series ) ;
LocalEpisode GetLocalEpisode ( string filename , Series series , ParsedEpisodeInfo folderInfo , bool sceneSource ) ;
LocalEpisode GetLocalEpisode ( string filename , Series series , ParsedEpisodeInfo folderInfo , bool sceneSource ) ;
Series GetSeries ( string title ) ;
Series GetSeries ( string title ) ;
Movie GetMovie ( string title ) ;
RemoteEpisode Map ( ParsedEpisodeInfo parsedEpisodeInfo , int tvdbId , int tvRageId , SearchCriteriaBase searchCriteria = null ) ;
RemoteEpisode Map ( ParsedEpisodeInfo parsedEpisodeInfo , int tvdbId , int tvRageId , SearchCriteriaBase searchCriteria = null ) ;
RemoteEpisode Map ( ParsedEpisodeInfo parsedEpisodeInfo , int seriesId , IEnumerable < int > episodeIds ) ;
RemoteEpisode Map ( ParsedEpisodeInfo parsedEpisodeInfo , int seriesId , IEnumerable < int > episodeIds ) ;
RemoteMovie Map ( ParsedEpisodeInfo parsedEpisodeInfo , string imdbId , SearchCriteriaBase searchCriteria = null ) ;
RemoteMovie Map ( ParsedEpisodeInfo parsedEpisodeInfo , string imdbId , SearchCriteriaBase searchCriteria = null ) ;
@ -104,7 +105,7 @@ namespace NzbDrone.Core.Parser
if ( parsedEpisodeInfo = = null )
if ( parsedEpisodeInfo = = null )
{
{
return _seriesService . FindByTitle ( title ) ; //Here we have a problem since it is not possible for movies to find a scene mapping, so these releases are always rejected :(
return _seriesService . FindByTitle ( title ) ;
}
}
var series = _seriesService . FindByTitle ( parsedEpisodeInfo . SeriesTitle ) ;
var series = _seriesService . FindByTitle ( parsedEpisodeInfo . SeriesTitle ) ;
@ -118,6 +119,26 @@ namespace NzbDrone.Core.Parser
return series ;
return series ;
}
}
public Movie GetMovie ( string title )
{
var parsedEpisodeInfo = Parser . ParseTitle ( title ) ;
if ( parsedEpisodeInfo = = null )
{
return _movieService . FindByTitle ( title ) ;
}
var series = _movieService . FindByTitle ( parsedEpisodeInfo . SeriesTitle ) ;
if ( series = = null )
{
series = _movieService . FindByTitle ( parsedEpisodeInfo . SeriesTitleInfo . TitleWithoutYear ,
parsedEpisodeInfo . SeriesTitleInfo . Year ) ;
}
return series ;
}
public RemoteEpisode Map ( ParsedEpisodeInfo parsedEpisodeInfo , int tvdbId , int tvRageId , SearchCriteriaBase searchCriteria = null )
public RemoteEpisode Map ( ParsedEpisodeInfo parsedEpisodeInfo , int tvdbId , int tvRageId , SearchCriteriaBase searchCriteria = null )
{
{
var remoteEpisode = new RemoteEpisode
var remoteEpisode = new RemoteEpisode