-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_listings.php
47 lines (40 loc) · 1.63 KB
/
config_listings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
require_once 'config.php';
$default_listing_style = IndexStyleEnum::PosterPopupDynamic;
$include_jellyfin_logo_when_backdrop_present = false;
if (file_exists('config_listings_local.php')) {
// Include the file
include_once('config_listings_local.php');
}
function overrideIndexStyle($folderType, $collectionType)
{
global $indexStyle;
switch ($folderType . '/' . $collectionType) {
// example to change listings style for TV shows
/*
case 'CollectionFolder/tvshows':
$indexStyle = new IndexStyle(IndexStyleEnum::TVBannerPopup7x2);
break;
*/
case ItemType::BOXSET . '/':
case ItemType::SERIES . '/':
$indexStyle = new IndexStyle(IndexStyleEnum::PosterPopup9x3);
//override style options
$indexStyle->moviesTableAlign = Alignment::CENTER;
$indexStyle->moviesTableVAlign = VerticalAlignment::BOTTOM;
$indexStyle->Limit = 9;
break;
case ItemType::FOLDER . '/': //assuming base folder only show in music video libraries...
case ItemType::COLLECTIONFOLDER . '/' . CollectionType::MUSICVIDEOS:
case ItemType::COLLECTIONFOLDER . '/' . CollectionType::HOMEVIDEOS:
$indexStyle = new IndexStyle(IndexStyleEnum::ThumbPopup4x3AspectRatio);
$indexStyle->ImageType = ImageType::PRIMARY;
$indexStyle->offsetY = 28;
$indexStyle->moviesTableAlign = Alignment::CENTER;
$indexStyle->moviesTableVAlign = VerticalAlignment::MIDDLE;
break;
default:
$indexStyle = new IndexStyle();
break;
}
}