File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
source/Library/JastUsaLibrary Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,17 @@ public override GameMetadata GetMetadata(Game game)
7171 metadata . CoverImage = new MetadataFile ( string . Format ( JastUrls . Web . JastMediaUrlTemplate , coverImage . Path ) ) ;
7272 }
7373
74+ var nonStoreScreenshotsImageType = new List < string >
75+ {
76+ "TAIL_PACKAGE_THUMBNAIL_PRODUCT" ,
77+ "TALL_SEARCH_CATALOG" ,
78+ "PRODUCT_MINIATURE"
79+ } ;
80+
7481 var backgroundImage = productResponse . Images
75- . FirstOrDefault ( x => x . ImageType . StartsWith ( "BACKGROUND_PRODUCT" , StringComparison . InvariantCultureIgnoreCase ) ) ;
82+ . FirstOrDefault ( x => x . ImageType . StartsWith ( "BACKGROUND_PRODUCT" , StringComparison . InvariantCultureIgnoreCase ) )
83+ ?? productResponse . Images
84+ . FirstOrDefault ( x => ! nonStoreScreenshotsImageType . Any ( imgType => x . ImageType . StartsWith ( imgType , StringComparison . InvariantCultureIgnoreCase ) ) ) ;
7685 if ( backgroundImage != null )
7786 {
7887 metadata . BackgroundImage = new MetadataFile ( string . Format ( JastUrls . Web . JastMediaUrlTemplate , backgroundImage . Path ) ) ;
You can’t perform that action at this time.
0 commit comments