@ -112,21 +112,21 @@ namespace NzbDrone.Core.MediaFiles.MovieImport.Manual
_logger . Debug ( "Language couldn't be parsed from release, fallback to movie original language: {0}" , movie . MovieMetadata . Value . OriginalLanguage . Name ) ;
_logger . Debug ( "Language couldn't be parsed from release, fallback to movie original language: {0}" , movie . MovieMetadata . Value . OriginalLanguage . Name ) ;
}
}
var localMovie = new LocalMovie
var localMovie = new LocalMovie ( ) ;
{
localMovie . Movie = movie ;
Movie = movie ,
localMovie . FileMovieInfo = Parser . Parser . ParseMoviePath ( path ) ;
FileMovieInfo = Parser . Parser . ParseMoviePath ( path ) ,
localMovie . DownloadClientMovieInfo = downloadClientItem = = null ? null : Parser . Parser . ParseMovieTitle ( downloadClientItem . Title ) ;
DownloadClientMovieInfo = downloadClientItem = = null ? null : Parser . Parser . ParseMovieTitle ( downloadClientItem . Title ) ,
localMovie . DownloadItem = downloadClientItem ;
DownloadItem = downloadClientItem ,
localMovie . Path = path ;
Path = path ,
localMovie . SceneSource = SceneSource ( movie , rootFolder ) ;
SceneSource = SceneSource ( movie , rootFolder ) ,
localMovie . ExistingFile = movie . Path . IsParentPath ( path ) ;
ExistingFile = movie . Path . IsParentPath ( path ) ,
localMovie . Size = _diskProvider . GetFileSize ( path ) ;
Size = _diskProvider . GetFileSize ( path ) ,
localMovie . ReleaseGroup = releaseGroup . IsNullOrWhiteSpace ( ) ? Parser . Parser . ParseReleaseGroup ( path ) : releaseGroup ;
ReleaseGroup = releaseGroup . IsNullOrWhiteSpace ( ) ? Parser . Parser . ParseReleaseGroup ( path ) : releaseGroup ,
localMovie . Languages = languages ? . Count < = 1 & & ( languages ? . SingleOrDefault ( ) ? ? Language . Unknown ) = = Language . Unknown ? languageParse : languages ;
Languages = languages ? . Count < = 1 & & ( languages ? . SingleOrDefault ( ) ? ? Language . Unknown ) = = Language . Unknown ? languageParse : languages ,
localMovie . Quality = ( quality ? . Quality ? ? Quality . Unknown ) = = Quality . Unknown ? QualityParser . ParseQuality ( path ) : quality ;
Quality = ( quality ? . Quality ? ? Quality . Unknown ) = = Quality . Unknown ? QualityParser . ParseQuality ( path ) : quality ,
localMovie . IndexerFlags = ( IndexerFlags ) indexerFlags ;
IndexerFlags = ( IndexerFlags ) indexerFlags
localMovie . CustomFormats = _formatCalculator . ParseCustomFormat ( localMovie ) ;
} ;
localMovie . CustomFormatScore = localMovie . Movie ? . QualityProfile ? . CalculateCustomFormatScore ( localMovie . CustomFormats ) ? ? 0 ;
return MapItem ( _importDecisionMaker . GetDecision ( localMovie , downloadClientItem ) , rootFolder , downloadId , null ) ;
return MapItem ( _importDecisionMaker . GetDecision ( localMovie , downloadClientItem ) , rootFolder , downloadId , null ) ;
}
}