1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-20 01:52:32 +01:00
theme.park/CSS/addons/bazarr/README.md
2021-04-24 23:02:04 +02:00

1.9 KiB

Adds a 4K logo to your Bazarr css.

Screen Shot 1

Screen Shot 1

Setup

Docker mod

-e TP_ADDON=bazarr-4k-logo

Nginx

Examples of how to add it:

proxy_set_header Accept-Encoding "";
sub_filter
'</head>'
'<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/bazarr/THEME.css">
<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css">
</head>';
sub_filter_once on;

Apache

AddOutputFilterByType SUBSTITUTE text/html
   Substitute 's|</head> '<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/bazarr/THEME.css"><link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css">
</head>';|'

Caddy

filter rule {
    content_type text/html.*
    search_pattern </head>
    replacement "<link rel='stylesheet' type='text/css' href='https://gilbn.github.io/theme.park/CSS/themes/<APP_NAME>/<THEME>.css'><link rel='stylesheet' type='text/css' href='https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css'></head>"
}

Stylus

Just add another import line.

@import "https://gilbn.github.io/theme.park/CSS/themes/bazarr/THEME.css";
@import "https://gilbn.github.io/theme.park/CSS/addons/bazarr/bazarr-4k-logo.css";