@ -205,7 +205,7 @@ namespace MediaBrowser.WebDashboard.Api
return _resultFactory . GetStaticResult ( Request , plugin . Version . ToString ( ) . GetMD5 ( ) , null , null , MimeTypes . GetMimeType ( "page.html" ) , ( ) = > Task . FromResult ( stream ) ) ;
}
return _resultFactory . GetStaticResult ( Request , plugin . Version . ToString ( ) . GetMD5 ( ) , null , null , MimeTypes . GetMimeType ( "page.html" ) , ( ) = > GetPackageCreator ( DashboardUIPath ) . ModifyHtml ( "dummy.html" , stream , null , _appHost . Application Semantic Version, null ) ) ;
return _resultFactory . GetStaticResult ( Request , plugin . Version . ToString ( ) . GetMD5 ( ) , null , null , MimeTypes . GetMimeType ( "page.html" ) , ( ) = > GetPackageCreator ( DashboardUIPath ) . ModifyHtml ( "dummy.html" , stream , null , _appHost . Application Version, null ) ) ;
}
throw new ResourceNotFoundException ( ) ;
@ -342,7 +342,7 @@ namespace MediaBrowser.WebDashboard.Api
cacheDuration = TimeSpan . FromDays ( 365 ) ;
}
var cacheKey = ( _appHost . Application Semantic Version + ( localizationCulture ? ? string . Empty ) + path ) . GetMD5 ( ) ;
var cacheKey = ( _appHost . Application Version + ( localizationCulture ? ? string . Empty ) + path ) . GetMD5 ( ) ;
// html gets modified on the fly
if ( contentType . StartsWith ( "text/html" , StringComparison . OrdinalIgnoreCase ) )
@ -364,7 +364,7 @@ namespace MediaBrowser.WebDashboard.Api
private Task < Stream > GetResourceStream ( string basePath , string virtualPath , string localizationCulture )
{
return GetPackageCreator ( basePath )
. GetResource ( virtualPath , null , localizationCulture , _appHost . Application Semantic Version) ;
. GetResource ( virtualPath , null , localizationCulture , _appHost . Application Version) ;
}
private PackageCreator GetPackageCreator ( string basePath )
@ -400,7 +400,7 @@ namespace MediaBrowser.WebDashboard.Api
CopyDirectory ( inputPath , targetPath ) ;
}
var appVersion = _appHost . Application Semantic Version;
var appVersion = _appHost . Application Version;
await DumpHtml ( packageCreator , inputPath , targetPath , mode , appVersion ) ;