[55] allow backdrop overlays when using align

This commit is contained in:
meisnate12 2024-04-02 15:25:41 -04:00
parent 5d9d33911a
commit d27d466b3a
4 changed files with 11 additions and 8 deletions

View file

@ -42,8 +42,7 @@ Transform your media library with Plex Meta Manager and discover its full potent
The below YouTube video has been created by one of our community members to showcase some of the things that Plex Meta Manager can do for you.
<iframe width="840" height="472" src="https://www.youtube.com/embed/nTfCUtKWTYI?si=PUvELjmqFUu4p9yk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
[![Plex Meta Manager](https://img.youtube.com/vi/nTfCUtKWTYI/0.jpg)](https://www.youtube.com/watch?v=nTfCUtKWTYI "Plex Meta Manager")
## Example Plex Meta Manager Libraries

View file

@ -1 +1 @@
1.20.0-develop54
1.20.0-develop55

View file

@ -271,7 +271,7 @@ overlays:
name: backdrop
back_color: "#00000099"
back_height: 100
vertical_position: top
vertical_align: top
plex_all: true
```
@ -298,7 +298,7 @@ overlays:
name: backdrop
back_color: "#00000099"
back_height: 100
vertical_position: top
vertical_align: top
plex_all: true
mytext:
overlay:
@ -413,7 +413,7 @@ overlays:
name: backdrop
back_color: "#00000099"
back_height: 100
vertical_position: top
vertical_align: top
plex_all: true
mytext:
overlay:
@ -444,7 +444,7 @@ overlays:
name: backdrop
back_color: "#00000099"
back_height: 100
vertical_position: top
vertical_align: top
plex_all: true
mytext:
overlay:
@ -469,7 +469,7 @@ overlays:
name: backdrop
back_color: "#00000099"
back_height: 100
vertical_position: top
vertical_align: top
plex_all: true
season_episode_info:
builder_level: episode

View file

@ -292,6 +292,10 @@ class Overlay:
self.backdrop_text = self.name[5:-1]
elif self.name.startswith("backdrop"):
self.backdrop_box = self.back_box
if self.horizontal_offset is None:
self.horizontal_offset = 0
if self.vertical_offset is None:
self.vertical_offset = 0
else:
if not self.path:
clean_name, _ = util.validate_filename(self.name)