@ -224,9 +224,9 @@ namespace NzbDrone.Core.Organizer
AddReleaseDateTokens ( tokenHandlers , movie . Year ) ;
AddReleaseDateTokens ( tokenHandlers , movie . Year ) ;
AddImdbIdTokens ( tokenHandlers , movie . ImdbId ) ;
AddImdbIdTokens ( tokenHandlers , movie . ImdbId ) ;
if ( movie . MovieFile Id ! = 0 )
if ( movie . MovieFile ! = null )
{
{
movieFile . LazyLoad ( ) ;
AddQualityTokens ( tokenHandlers , movie , movieFile ) ;
AddQualityTokens ( tokenHandlers , movie , movieFile ) ;
AddMediaInfoTokens ( tokenHandlers , movieFile ) ;
AddMediaInfoTokens ( tokenHandlers , movieFile ) ;
AddMovieFileTokens ( tokenHandlers , movieFile ) ;
AddMovieFileTokens ( tokenHandlers , movieFile ) ;
@ -361,18 +361,17 @@ namespace NzbDrone.Core.Organizer
AddReleaseDateTokens ( tokenHandlers , movie . Year ) ;
AddReleaseDateTokens ( tokenHandlers , movie . Year ) ;
AddImdbIdTokens ( tokenHandlers , movie . ImdbId ) ;
AddImdbIdTokens ( tokenHandlers , movie . ImdbId ) ;
if ( movie . MovieFile Id ! = 0 )
if ( movie . MovieFile ! = null )
{
{
movieFile . LazyLoad ( ) ;
AddQualityTokens ( tokenHandlers , movie , movieFile ) ;
AddQualityTokens ( tokenHandlers , movie , movieFile ) ;
AddMediaInfoTokens ( tokenHandlers , movieFile ) ;
AddMediaInfoTokens ( tokenHandlers , movieFile ) ;
AddMovieFileTokens ( tokenHandlers , movieFile ) ;
AddMovieFileTokens ( tokenHandlers , movieFile ) ;
AddTagsTokens ( tokenHandlers , movieFile ) ;
AddTagsTokens ( tokenHandlers , movieFile ) ;
}
}
else
else
{
{
AddMovieFileTokens ( tokenHandlers , new MovieFile { SceneName = $"{movie.Title} {movie.Year}" , RelativePath = $"{movie.Title} {movie.Year}" } ) ;
AddMovieFileTokens ( tokenHandlers , new MovieFile { SceneName = $"{movie.Title} {movie.Year}" , RelativePath = $"{movie.Title} {movie.Year}" } ) ;
}
}
return CleanFolderName ( ReplaceTokens ( namingConfig . MovieFolderFormat , tokenHandlers , namingConfig ) ) ;
return CleanFolderName ( ReplaceTokens ( namingConfig . MovieFolderFormat , tokenHandlers , namingConfig ) ) ;
}
}