#Dual Language minimalist overlay

1 messages · Page 1 of 1 (latest)

sweet meadowBOT
#

YAML attachment checked and is valid.

Note that valid YAML does not guarantee that it is formatted in a way that Plex Meta Manager expects.

#

Welcome Back @spice vault!

Thanks for being a PMM Sponsor, we greatly appreciate it! Your ticket will now be diverted to <@&1097919568334311495> and <@&938443185347244033>.

Please provide any logs if you think they're relevant to your post.

#

You can press the "Close Post" button above or type /close at any time to close this post.

sweet meadowBOT
#

Hi guys!
I liked the minimalist language overlay that @merry comet created, #old-images message

Some of my movies have dual audio language and subtitles... so I was thinking to create a overlay that would display two flags on the left (audio) and two flags on the right (subtitles) in the case there was dual language.

I'm using the pmm: language, with some changes as you can see in the config file attached... but I'm lost in figuring out how to select and append another flag to each side... Does someone have any ideas for doing that?

I'm attaching my config, specific for the overlays.

spice vault
#

I'm refering to something based on this... what I was trying to achieve is adding another flag alongside the ones that already exist on the left (audio) and right (subtitle)

neat tulip
#

Just run it twice

#

The first one will use subtitles and the second uses audio

spice vault
#

Thanks @neat tulip . That solves one part of the problem. Will it create two flags on each side of the rating? With the config that I showed above, I was only able to show one language flag on each side... I tried to analise the pmm: language default yml but I'm overwhelmed with all the code, many links to external templates, vars, qeues... Taking the subtitles out of the equation (the flags on the right side), do you have any idea how should I tweak the code to have two flags on the left side (for example the english and portuguese flags) for the dual audio?

neat tulip
#

there are 2 flags on the left side on Hotel Mumbai

#

and yes calling it 2 times like I showed will place on the left and right

spice vault
#

@neat tulip Sorry, I didn't explain well... Hotel Mumbai only has one flag on the left side of the rating card, refering to the japanese audio... the english flag on the right side of the rating card is for the the subtitle... What I was after is to have on the left side of the rating card 2 flags... taking the Hotel Mumbai as an example, show the japanese and the portuguese flags alongside the left side of the rating card... And that is the issue, how can I make it to show 2 flags on each side... Of course, if the movie only has one audio language, it will only show 1 flag, not 2... I apologize if I can't make myself understood

merry comet
# spice vault <@732333413008277504> Sorry, I didn't explain well... Hotel Mumbai only has one ...

horizontal offset and vertical offset makes all flags are in same position, You want to use group_alignment: horizontal but I think then its imposible to customize positioning and offset, i think you can only edit template https://github.com/meisnate12/Plex-Meta-Manager/blob/nightly/defaults/overlays/languages.yml

GitHub

Python script to update metadata information for items in plex as well as automatically build collections and playlists. The Wiki Documentation is linked below. - meisnate12/Plex-Meta-Manager

fossil rock
spice vault
#

@fossil rock The reference for the portuguese flag is just an hipotetic example of what I want to achieve... The image I showed above is from a config based on the overlay created by @merry comet. In that image, the user was able to put audio language flag at the left of the rating card and a subtitle flag at the right of the rating, that is 1 flag on each side... What I would like to achieve is 2 flags on each side, because I had some movies with dual audio and dual subtitles languages... I'll keep trying and see if I can achieve that

fossil rock
#

Right, just thinking that if I were to try to reproduce this, I had no idea why you expected a portgeuse flag to appear.

#

What I would like to achieve is 2 flags on each side

The existing overlay puts two flags on each side, so there's something I'm not understanding.

#

Flags on each side.

#

If you are tryign to reproduce this using the defaults, there's no provision for this:

neat tulip
# fossil rock > What I would like to achieve is 2 flags on each side The existing overlay put...

so whats happening is, hes changing the image and moving the flags to a different location. because languages use queues, you cant move them easily. the rating in the middle is a seperate yml also but those flags are just the languages default with custom images. SInce hes moving them with *_align it only uses 1 flag since it uses queues. To make the other flags appear, you have to move them a different way

#

you want to use position to move them

#

So where the flags are now, you need to find the coordinates of them and then use those plus where the new flags would go and the flags for subtitles or audio (whichever is the opposite of the current setup). then you need to run it 2 times like I showed above to do both subtitles and audio

#

wait

#

actually. @covert rune didnt you make it easier to move the flags with *_position?

#

idk how it would look, but you could just replace *_align with *_position

fossil rock
#

I was just looking for an unambiguous description of the goal.

neat tulip
#

they just want to use multiple flags with the custom image. since they are using *_align it only uses one since languages uses queues

#

you cant move with align or it messes up queues

#

or its the offsets doing it

#

personally i would replace offsets and align with *_position but this all may not be easy with that custom image

fossil rock
neat tulip
#

the flags are a custom image

#

*png

#

the custom png is from #old-images message

#

its a combo of a custom rating yml and the custom png plus default languages to create that

#

it still uses the default languages though

fossil rock
#

So step 0 is "create custom pngs for all the four-flag combinations that will appear"?

neat tulip
#

no

#

the pngs already exist

#

its just a custom flag

#

give me a minute

fossil rock
#

I'm obviously misunderstanding this: that is 1 flag on each side... What I would like to achieve is 2 flags on each side

neat tulip
#

ill draw it out

fossil rock
#

Which is why I'm asking two flags on each side of what

neat tulip
#

the rating

#

currently if a movie has 2 audios its only showing 1 flag

#

or 2 subtitles

#

thats due to either the offset or the align fucking with the queues

#

plus they need to change group alignment to horizontal

#

Looks like shit but like this

#

that blue is a second flag

#

so that it "peeks" under like the first one is under the rating

fossil rock
#

Ah, I see.

spice vault
# neat tulip Looks like shit but like this

Yep @neat tulip That's it what i want to achieve... Sorry, if I confuse you... I will try your thoughts about the *_position instead of the align, to see if I can obtain it

spice vault
#

@fossil rock @neat tulip @merry comet I was able to achieve what I was looking for, as you can see in the image. This was the code I put on config to achieve it. Thanks for your help and inputs.

sweet meadowBOT
#

YAML attachment checked and is valid.

Note that valid YAML does not guarantee that it is formatted in a way that Plex Meta Manager expects.

last aspen
#

Looks nice, but difficult to read perhaps

spice vault
#

@last aspen Thanks. It's minimalist, but it serves the purpose to know wich audio and subtitle languages that media has. On TV I can see it well.

last aspen
#

👍