#streaming.yml modification - filename regex

1 messages ยท Page 3 of 1

distant needle
#

And set it to something else, exit. Go back in and set it back to what you want

modest dove
#

but might have been from before i changed dirs

distant needle
#

Remove overlay label as well

#

just manually set it to a non-overlaid version for now and remove overlay label

#

On next run, it should resolve

modest dove
#

ok

#

yea not a big deal

#

one show outa hundreds

#

one thing otherwise

distant needle
#

For some people that's the biggest deal in the world. Different people have different priorities

modest dove
distant needle
#

Ahhh

modest dove
#

is this because it was set to an overlay?

#

and it overlaid the overlay?

#

or something else

#

only one ive seen so far

#

scrolling through them all

distant needle
#

Check the logs

#

Meta.log should have entry for Barry

modest dove
#

so obvious ๐Ÿ˜› youre so smart

distant needle
#

And you can see

#

We check the exif tag to be extra sure that we don't double up on overlays

#

We check the exif tag to be extra sure that we don't double up on overlays

modest dove
#

| Barry |
[2023-11-21 06:55:33,459] [overlays.py:192] [TRACE] | Overlay Reason: New image detected |
[2023-11-21 06:55:33,569] [overlays.py:358] [INFO] | Overlays Applied: Overlay File (0) Amazon, Overlay File (0) WEB, Overlay File (4) ended_shows |
[2023-11-21 06:55:33,687] [overlays.py:180] [INFO] | |
| Based on a True Story |

#

yea

distant needle
#

So we should not be overlaying that.

modest dove
#

it doubled the regex

#

but i'm not sure why

#

let me go to that dir

distant needle
#

File name?

modest dove
#

series

#

i'm gonna upgrade S01

#

and say fuck it

distant needle
#

Ohhhh and inside of that folder you probably have mixed episodes

modest dove
#

yea

#

but i thoguht you or someone aid it takes the one that matches the most?

#

were they tied?

#

lol

distant needle
#

Are you using weights

modest dove
#

yes

#

i should adjust them?

#

i lower preferred or no

distant needle
#

Well... if the weights are all different, then this should not happen

modest dove
#

there's literally twice as much AMZN as WEB

distant needle
#

We don't "add" weights

modest dove
#

and the same amount of HMAX

distant needle
#

Wait... you are talking about percentage stuff

modest dove
#

OHHH

#

i dont think i got HMAX as a tag in my regex

#

so it would be tied

#

but they are weighted

thorn thistle
#

highest weight wins

distant needle
#

Any ideas why Barry would have both applied? Web and Amazon overlay?

thorn thistle
#

yea he just said why

modest dove
#

are they added

thorn thistle
#

he doesnt have HMAX in the regex

modest dove
#

thing is

#

web is weighted 90

distant needle
#

They are not added

thorn thistle
#

so web-dl matches the regular and HMAX ones

modest dove
#

amazon is weighted like 1600

distant needle
#

They are not added

modest dove
#

ok.

#

but 1600 > 90

#

regardless of if you added only the web

distant needle
#

Is it?

modest dove
#

i mean....numbers?

distant needle
#

I wonder if it thinks that is a string

modest dove
#

lol

#

thinks what is a string

distant needle
#

1900 and 90

#

90 would be higher in a string sort

modest dove
#
  Amazon:
    template:
      - name: rip_source
        weight: 1600
        regex: '(?i)\b(amzn|amazon)\b'```
#

oh so lower is preferred?

distant needle
#

String sort

thorn thistle
#

higher should always win

modest dove
#

oh

distant needle
#

Not integer sort

modest dove
#

i mean it should become a number

#

ill change to 190

#

ohh that would still do it

distant needle
#

I agree... and we would have seen that bug

modest dove
#

here let me show you the config

thorn thistle
#

i think supression would be good for this @distant needle

distant needle
#

Because we have weights that are 2 and 3 digits in some files I believe

thorn thistle
#

like we use in resolution/edition

distant needle
#

Maybe yeah...

thorn thistle
#

like use suppression with a conditional that says if the service overlay is used, supress the web

distant needle
#

Weight should deal with that

#

I am just wondering what happens when there is a mix of items in a tv show episodes list

#

How does it roll up to the show and season posters

thorn thistle
#

it uses percentage

#

the log shows the percentage too

#

the percentage of the overlay applied

modest dove
#

where is this, what can i search for

thorn thistle
#

percentage

#

i dont remember the full line

#
[2023-11-18 08:37:30,957] [overlays.py:396]           [INFO]     |================================ Gathering Items for 4K-DV Overlay =================================|
[2023-11-18 08:37:30,957] [builder.py:2691]           [INFO]     |                                                                                                    |
[2023-11-18 08:37:30,957] [builder.py:2693]           [INFO]     | Collection Filter episodes: {'has_dolby_vision': True, 'percentage': 50}                           |
[2023-11-18 08:37:30,957] [overlays.py:404]           [DEBUG]    |                                                                                                    |
[2023-11-18 08:37:30,957] [overlays.py:405]           [DEBUG]    | Builder: plex_search: (2, "Plex Show Search\nSort By: ['title.asc']\nFilter:\n  Match all of the following:\n    Match any of the following:\n      Resolution is 4K", '?type=2&sort=titleSort&push=1&episode.resolution=4k&pop=1') |
[2023-11-18 08:37:30,957] [overlays.py:406]           [INFO]     |                                                                                                    |
[2023-11-18 08:37:30,957] [plex.py:1071]              [INFO]     | Processing Plex Show Search                                                                        |
                                                                 | Sort By: ['title.asc']                                                                             |
                                                                 | Filter:                                                                                            |
                                                                 |   Match all of the following:                                                                      |
                                                                 |     Match any of the following:                                                                    |
                                                                 |       Resolution is 4K                                                                             |
#

Collection Filter episodes: {'has_dolby_vision': True, 'percentage': 50}

modest dove
#

but i mean thatll show up a million times then

#

lol

distant needle
#

It's only scrolling and reading....

modest dove
#

[2023-11-21 06:53:29,552] [builder.py:2693] [INFO] | Collection Filter episodes: {'filepath.regex': ['(?i)^(?!.(amzn|amazon|atvp|aptv|Apple TV|Canal|CW|CC|DISC|DSC|dsnp|dsny|disney|hbo|ma|nf|netflix|P(ea)?co(c)?k|sho|stan)\b).\bWEB[ _-]?(DL|Rip)?'], 'percentage': 50} |

#

this is where s01 of barry shows up

distant needle
#

So does this mean that it found 50%?

thorn thistle
#

i assume so. I just remember seeing percentage in a log I was looking at yesterday

#

I never saw it before

#

but it only shows under overlays

#

so I assumed it was for the percentage of matches

modest dove
#

why is [2023-11-21 06:53:05,989] [builder.py:2693] [INFO] | Collection Filter episodes: {'filepath.regex': ['(?i)\b(sho|showtime)\b'], 'percentage': 50} |

#

[2023-11-21 06:53:06,025] [util.py:541] [TRACE] | Regex Values: ['/tv/1923/S01/1923 (2022) - S01E03 - The War Has Come Home [AMZN DDP 5.1 WEBDL-1080p][h264]-NTb.mkv'] |

#

matching all this shit

#

does that not mean it matched?

#

cuz it doesnt make sense

thorn thistle
#

its probably not matching it, its likely just scanning file by file ๐Ÿคทโ€โ™‚๏ธ

modest dove
#

oh

#

im just gonna upgrade the fucking S01

#

and keep looking

#

i havent seen any others yet

#

can i get a review on my weights?

#

they look fine?

thorn thistle
#

@distant needle what if he used a group again? we couldnt use group because he was using queues and queues cant use groups

#

I think group only allows 1 overlay to apply

#

yep

#

Overlay groups are defined by the name given to the group attribute. Only one overlay with the highest weight per group will be applied.

#

I would go back to using a group @modest dove

modest dove
#

just thrwo group: sources in there?

#

that's all?

#

in overlay?

thorn thistle
#
    overlay:
      name: <<overlay_name>>
      file: /config/sources/<<overlay>>.png
      back_color: <<back_color>>
      back_width: <<back_width>>
      back_height: <<back_height>>
      font: <<font>>
      font_size: <<font_size>>
      font_color: <<font_color>>
      back_radius: <<back_radius>>
      horizontal_offset: <<horizontal_offset>>
      horizontal_align: <<horizontal_align>>
      vertical_offset: <<vertical_offset>>
      vertical_align: <<vertical_align>>
      weight: <<weight_<<key>>>>
      group: sources
modest dove
#

ya that's what i thought

#

found 2 that werent tagged

#

and that barry shit

#

i need to add starz

#

lol

#

rick and morty, silicon valley, and power

#

(just making notes so i dnt lose them)

thorn thistle
#

btw this is suppression if your curious. we use it in resolution. basically if a 4k hdr movie is found itll use the combined 4k-hdr.png instead of applying 4k.png, hdr.png and 4k-hdr.png

#

but group should work for you

modest dove
#

superstore

#

another dupe

#

but as u said group should fix that

#

k thats all

thorn thistle
#

yea that one added 3

modest dove
#

i know

#

lol

#

should i weigh these based on preference?

#

like how does this essentially work with weights

#

shouldnt have the overlay issue in movies since theres only one file

thorn thistle
#

i personally would only worry about blu ray, dvd and web. you shouldnt have any file names with AMZN DSNP fo rexample

#

but you always have WEB

modest dove
#

web excludes matching of the streaming tags

thorn thistle
#

well i guess you could on the show level

modest dove
#

i do a negative lookaround

thorn thistle
#

so yea I would weigh in order of preference

modest dove
#

higher or lower is better

#

i'm confused on that

#

if i prefer if there are amazons to show amazon

#

i'd put it lower?

thorn thistle
#

highest integer being your most preferred

modest dove
#

that's what i assumed

#

thanks

#

| Power |
[2023-11-21 06:56:48,946] [overlays.py:192] [TRACE] | Overlay Reason: New image detected |
[2023-11-21 06:56:49,010] [overlays.py:358] [INFO] | Overlays Applied: Overlay File (4) ended_shows

#

weird.

#

i'm going to get donuts ill be back in a few

#

nevermind i just remember my car is at the dealership

#

smh

glass spire
#

now I want some donuts ๐Ÿ˜ญ

modest dove
#

so i'm down to nitpicking

#

the disney logo i also too tall so it gets squished like bluray did, and the moviesanywhere logo looks a bit out of place

#

:/

ancient ice
#

fix it

#

๐Ÿ˜„

modest dove
#

not a graphical person :/

ancient ice
modest dove
#

blue? lol

ancient ice
#

it#s a blue logo

#

what did you want your majesty

#

๐Ÿ˜›

modest dove
#

lol i am googling now

#

you're right its like dark blue

#

i thought it was white

ancient ice
#

if it pleases you

modest dove
#

LOL

#

โค๏ธ

#

can you pretty please with sugar on top make the text on the MoviesAnywhere png white?

ancient ice
#

send it

modest dove
#

its ont he repo hld on lemme pull it up

ancient ice
modest dove
#

testyou changed it?

ancient ice
#

some white was showing behind the logo

modest dove
#

PERFECT!

#

lol

ancient ice
#

ah yes

#

lovely

modest dove
#

rerunning test

#

whats a standard height?

#

i screwed up my AR

#

lol

ancient ice
#

idfk

modest dove
#

lolol

ancient ice
#

๐Ÿ˜„

modest dove
#

im also getting weird no 576 720p 2160p regex errors

#

and i guess 2160 i dont have, but i know i have the other two

ancient ice
#

do you have case insensitive?

#

720p v 720P

modest dove
#

its the default resolution template thing

ancient ice
#

ah ok

modest dove
#

i didnt do this for resolution

ancient ice
#

I trust them more than you ๐Ÿ˜„

modest dove
#

you guys had that covered

ancient ice
#

I blame your library

modest dove
#

yea its not lacking.

jovial thornBOT
#

When using third-party services such as Sonarr or Radarr to manage media, we recommend following the TRaSH Guides Recommended Naming Scheme guide to ensure compatibility when using the PMM Default Overlay files.

Without using these naming schemes, we cannot guarantee that the default PMM overlays will work with your library.

Further information can be found on the TRaSH Guides website:

ancient ice
#

๐Ÿ‘ผ

modest dove
#

bro

ancient ice
#

LOL

modest dove
ancient ice
#

contribute but can't name your files correctly

#

๐Ÿคทโ€โ™‚๏ธ

#

๐Ÿ’…

#

I'm telling TRaSH ๐Ÿคฃ

modest dove
#

i see the problem

ancient ice
#

is it you?

#

are you the problem?

#

๐Ÿ˜„

modest dove
#

sonarr is doing 480p for 576

ancient ice
#

ah

modest dove
#

yep

#

i only get 576p for bluray

#

that ive seen and just want to archive

ancient ice
#

time for a sonarr fork

#

zakarr

modest dove
#

im not sure they have a bluray576p

#

bro i got too many repo's and projects im on already

ancient ice
#

๐Ÿคฃ

modest dove
#

i cant fork a language i dont know

#

and learn it

#

that's nuts

ancient ice
#

still waiting for you to make the PMM GUI

modest dove
#

its almost done

#

i gotchu

ancient ice
#

yas

#

you'll get a $2 gift card to Walmart when it's done

modest dove
ancient ice
#

yas

modest dove
#

perfect

#
    - pmm: audio_codec
          vertical_offset: 15```
vocal turtleBOT
#

YAML checked and is NOT valid. Error message:

mapping values are not allowed here
in "<unicode string>", line 3, column 26:
vertical_offset: 15
^

modest dove
#

yea no shit.

#

lol

#

forgot template i guess?

#

it doesnt look like it changed it though

ancient ice
#
- pmm: audio_codec
  template_variables:
    vertical_offset: 15
#

or try setting style: standard

#

which adjusts the back height from 105 to 189

modest dove
#

| 2 | Plex Error: resolution: No matches found with regex pattern (?i)720

#

i know that i have 720

ancient ice
#

๐Ÿคทโ€โ™‚๏ธ

#

not according to the regex ๐Ÿ˜„

modest dove
ancient ice
#

nuh uh

#

i blame you

#

what'd you do

modest dove
#

oh you know what it is

#

test library....

#

the other thing is valid, sonarr is broken

#

markus is parsing 576 as 480p

#

there are no 576 resolutions in the quality profiles

#
                        resolution == Resolution.R540p || resolution == Resolution.R576p)
                    {
                        result.Quality = Quality.Bluray480p;
                        return result;
                    }```
ancient ice
#

๐Ÿ’ฉ

#

It doesn't really mater does it?

#

matter*

#

it'll match at 480

modest dove
#

yea cuz we are obviously not nitpicking this right?

ancient ice
#

what about 360p ๐Ÿ˜ฎ

modest dove
#

that's like handycam footage from 1998

ancient ice
#

sonarr won't take it as 360p though

#

right?

#

so you have the same issue with that ๐Ÿ˜„

modest dove
#

i dont give a fuck about 360

ancient ice
#

hahaha

modest dove
#

but im raising the issue

#

and it should be fixed

modest dove
jovial thornBOT
#
Sonarr/Sonarr

Is there an existing issue for this?

  • [X] I have searched the existing open and closed issues

Is your feature request related to a problem? Please describe

https://github.com/Sonarr/Sonarr/blob/c7824bb593291634bf14a5f7aa689666969b03bf/src/NzbDrone.Core/Parser/QualityParser.cs#L150-L155

This causes 576p to incorrectly parse, not as 576p but 480p instead.

This also applies to 360p and 540p but those are admittedly much less common than 576 would be.

Describe the solution you'd like

Correctly identify 576p

Describe alternatives you've considered

.

Anything else?

No response

State:

open

Comments:

1

Is Locked:

False

Labels:

enhancement, up-for-grabs

Reactions:

0 ๐Ÿ‘ | 0 ๐Ÿ‘Ž | 0 ๐Ÿ˜„ | 0 ๐Ÿ˜• | 0 โค๏ธ | 1 ๐ŸŽ‰ | 0 ๐Ÿš€ | 0 ๐Ÿ‘€

modest dove
#

fuck it

glass spire
#

expect the bork

modest dove
#

well see.

distant needle
#

1998 was a good year

#

Everyone in It was highly sought after because of the Y2K bug

#

Which was the biggest non-event ever

#

So I also recall that this thread mentioned.... we want color overlays

#

All of a sudden, things have changed...

#

All good though.

#

Do I need to update anything in the video_format folder on our images repo?

modest dove
#

so just one show i cant figure out why it wont match bluray, or max, or amzn

modest dove
#

yea i've checked logs

#

i must be missing something, but i dont know how it would be not applying to just this one show that follows the same naming scheme

#

its got HMAX, Bluray, amzn, and none of them are overlaying, but i dont see any others anywhere

distant needle
#

Do you know if the Overlay label is there which makes PMM believe there is an overlay already and hence won't apply?

jovial thornBOT
#

When PMM applies an overlay, it attaches an Overlay label to the item so that it knows what has an Overlay and what does not. If you [or plex] changes the image, then PMM has no way of knowing this. The easiest way to force overlays to apply to a "new" image is to remove the Overlay label either before or after you change the image.

Unfortunately, Plex does not display the labels attached to Seasons or Episodes, so we have to use collections to force a remove of these labels (we make sure the collection isn't actually built).

Removing Season Overlay Label
collections:
  Remove Overlay Labels:
    build_collection: false
    builder_level: season
    item_label.remove: Overlay
    plex_search:
      all:
        season_label: Overlay
        title:  NAME OF SHOW HERE
Removing Episode Overlay Label
collections:
  Remove Overlay Labels:
    build_collection: false
    builder_level: episode
    item_label.remove: Overlay
    plex_search:
      all:
        episode_label: Overlay
        title:  NAME OF SHOW HERE
modest dove
#

i changed the poster to a blank one

#

now it doesnt do anything

distant needle
#

The label

#

Is it a movie or show

modest dove
#

show

#

Rick and Morty

distant needle
#

See the bottom@of the bot message there

modest dove
#

it put the status overlay on it

distant needle
#

Oh

modest dove
#

just not the sources

#

but i checked the files

#

and at least 2 of the schemes match something

#

and even if it didnt, web would match

#

there's bluray, hbomax, and amzn

distant needle
#

And no errors in the log

modest dove
#

and all of those labels are being applied elsewhere

#

not that i could find

#

it regex's them

#

then no updates needed

#

i'm gonna run again in a second

#

i can send the latest

distant needle
#

Ok... is this a test library or product Plex library

modest dove
#

this is my last run

vocal turtleBOT
#

๐Ÿ“ Great! Let's start to review and make recommendations, zak.ary... ๐Ÿ“

#

๐Ÿ“ If you want to review this again, zak.ary:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

#
**User Info**

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation โœ…
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Rec 01 - ๐Ÿ’ฌ CONVERT ERROR
Page 08: Rec 02 - ๐Ÿ’ฌ LEGACY SCHEMA DETECTED
Page 09: Rec 03 - ๐Ÿ’ฅ NO ITEMS FOUND IN PLEX
Page 10: Rec 04 - โŒ PLEX REGEX ERROR

distant needle
#

Ok... this is not a test library

modest dove
#

lol no i ran through the whole thing

#

and this is the outlier

#

everything else is solid

distant needle
#

If you move Rick and Morty to your test library, same problem?

modest dove
#

let me try it

distant needle
#

This way we can isolate it

modest dove
#

gimme a few ill tag you when i have the log

distant needle
#

Sure thing

modest dove
#

thx

#

i'm linking the entire folder

#

just so its not anything different

#

like the exact same naming, ALL the same files, etc

distant needle
#

Sure symlinks.

modest dove
#

ya its doing the same thing

#

can pmm not tell when i change a poster back to default @distant needle

snow wren
#

PMM has no idea what you may have done with the art in Plex

modest dove
#

so how does it know which poster to apply the overlay too

#

i chose a different image so i can see the background and adjust it

#

and now its not updating

snow wren
#

The first time it applies an overlay, it takes a backup of the current art. That backup is used as the base for future overlay changes.

modest dove
#

so delete from overlays

#

and it will grab it again

snow wren
#

If you change the art in Plex, you have to remove the Overlay sharing label to get it to pull that new art.

#

Removing the backup won't do that.

#

It will just cause trouble

#

Just remove the label if you change art in Plex

#

Or better, don't change art in Plex and use the asset directory instead.

modest dove
#

that?

snow wren
#

No. In Plex. Edit the item, go to Sharing labels

modest dove
#

thanks

snow wren
distant needle
#

He is on Shows Carrot

modest dove
#

i got it

distant needle
#

Shows does not expose this

#

That's why I shared the cakey

modest dove
vocal turtleBOT
#

๐Ÿ“ Great! Let's start to review and make recommendations, zak.ary... ๐Ÿ“

#

๐Ÿ“ If you want to review this again, zak.ary:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> ๐Ÿ“

distant needle
#

!overlabels

vocal turtleBOT
#
**User Info**

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation โœ…
Page 05: Plex Configuration - Section 1
Page 06: Plex Configuration - Section 2
Page 07: Rec 01 - ๐Ÿ’ฌ LEGACY SCHEMA DETECTED
Page 08: Rec 02 - ๐Ÿ’ฅ NO ITEMS FOUND IN PLEX
Page 09: Rec 03 - โŒ PLEX REGEX ERROR

thorn thistle
#

Shows does expose labels

modest dove
#

everything is applying

thorn thistle
#

It's episodes and seasons that dont

modest dove
#

except HBOMAX AMZN or Bluray

#

all of which have files

#

yea i had labels

#

i removed overlay

jovial thornBOT
#

When PMM applies an overlay, it attaches an Overlay label to the item so that it knows what has an Overlay and what does not. If you [or plex] changes the image, then PMM has no way of knowing this. The easiest way to force overlays to apply to a "new" image is to remove the Overlay label either before or after you change the image.

Unfortunately, Plex does not display the labels attached to Seasons or Episodes, so we have to use collections to force a remove of these labels (we make sure the collection isn't actually built).

Removing Season Overlay Label
collections:
  Remove Overlay Labels:
    build_collection: false
    builder_level: season
    item_label.remove: Overlay
    plex_search:
      all:
        season_label: Overlay
        title:  NAME OF SHOW HERE
Removing Episode Overlay Label
collections:
  Remove Overlay Labels:
    build_collection: false
    builder_level: episode
    item_label.remove: Overlay
    plex_search:
      all:
        episode_label: Overlay
        title:  NAME OF SHOW HERE
modest dove
#

that little dot is supposed to be there

#

but im supposed to have a thing in the top left like i've shown you

distant needle
#

Blue dots, red dots, green dots.... what does it all mean?!?! lol

modest dove
#

status

#

green is airing, blue is returning, red is cancelled or ended

distant needle
#

The source of your problem is the color of your dots

#

Kidding of course

modest dove
#

i was gonna say....

#

that would be odd af

#

and this started before i switched to dots ๐Ÿ˜„

snow wren
#

Is that last log the run that produced this result?

modest dove
#

yes

#

i mean its only on the rick and morty

#

the other shit was already there

#

i removed hte label on rick and morty and ran it again

#

to isolate it all

#

that's the template stuff

#

it applies elsewhere just fine....and regex shows matching on the few i've tested so it should apply SOMETHING

#

same naming scheme

#

shows up there

snow wren
#

And what are the names of the rick and morty files?

#

nvm they're in the log

modest dove
#

heres a cleaner look if you want it

#

but yea they're in the logs

snow wren
#

Well, there should be matches here, but PMM disagrees:

[WARNING]  | No Items found for Overlay File (0) BluRay                                                         |
modest dove
#

well yea

#

i know that...

#

thats more ro less what i'm saying lol

#

i tested in regex101

#

shows they match

#

at least one should match

#

there's potentially 4 overlays that should apply

#

web, hmax, bluray, and amzn

snow wren
#

I guess my next step would be to run it in a debugger.

modest dove
#

i'm gonna try and match it on 'Rick.+'

distant needle
#

Are you applying at season or episode builder_level?

#

Or only at show level?

modest dove
#

show only...

#

but i posted my current yml

modest dove
distant needle
#

On my phone

modest dove
#

oh

#

| Overlays Applied: Overlay File (0) Max2, Overlay File (1) airing_shows

#

matched for Rick

#

i might just do it like that

#

i didnt find any others....

snow wren
#

wait a minute, what about percentage?

modest dove
#

i dunno, but like i said there are 4, and they are grouped

#

so i'd imagine SOMETHING would show up

#

i dont really understand the percentages

snow wren
#

65 episodes

20 match AMZN
31 match bluray
14 match hmax
none match web

They are all requiring a 50% threshold:

| Collection Filter episodes: {'filepath.regex': ['(?i)\\b(BluRay|BDRip|Blu-Ray)\\b'], 'percentage': 50} |
| Collection Filter episodes: {'filepath.regex': ['(?i)\\b(amzn|amazon)\\b'], 'percentage': 50}      |
| Collection Filter episodes: {'filepath.regex': ['(?i)\\b(hmax|hbom|hbo[ ._-]max)\\b.+\\bweb[ ._-]?(dl|rip)?\\b'], 'percentage': 50} |
| Collection Filter episodes: {'filepath.regex': ['(?i)^(?!.*(amzn|amazon|atvp|aptv|Apple TV|Canal|CW|CBC|CC|DISC|DSC|dsnp|dsny|disney|hbo|h?max|ma|nf|netflix|P(ea)?co(c)?k|sho|stan)\\b).*\\bWEB[ _-]?(DL|Rip)?'], 'percentage': 50} |

I suspect that since none of them match at least 33 items, none of them get applied.

modest dove
#

is that default?

#

so if i went and, for example, downloaded more of bluray

#

it would match...

#

hmm

#

i can just throw default_percent:35 for instance?

#

in default?

distant needle
#

I always thought it was doing a max, and not a percentage

#

Meaning that bluray has 31 and has the highest percentage and occurs the most number of times and hence applies. I was all wrong about that.

modest dove
#

docs say it only applies to seasons or episodes

#

how do i apply percent threshold to this?

#

or is this special filter?

#

yea didnt work

#

i set it to 35

distant needle
#

It's more like a threshold.

modest dove
#

i add it just like i did horizontal_offset right?

#

or does this go somewhere else

distant needle
#

This being episodes.percentage: 35 ?

modest dove
#

i mean, i dunno how it would be added

#

i was just setting the default

distant needle
modest dove
#

default_percent: 35

distant needle
#

Hmmm

#

Let me look at your wiki page

modest dove
#

i dont want this to be a problem with other keys either

#

so i figured default was the way to go

#

because they're still weighted

#

so it should come out in the wash right?

#

why is there no show?

distant needle
#

So we had to find a way to determine who would win

#

When you are in a mixed scenario as you have

modest dove
#

yea, i thought weighted stuff was the way

#

i weighted them accordingly

distant needle
#

No

#

What I am trying to explain... poorly that is..

modest dove
#

its ok im dense anyway

distant needle
#

Your exact scenario... imagine the lowest layer here... at episode level... we can apply each regex 1 time per episode... so they each get one overlay.

#

So if they are all different, how do we decide what to give the season level?

#

We assign a threshold percentage of the episodes to say... apply this.

modest dove
#

whichever has the most?

#

what if two are both at 50%

#

THEN weights?

distant needle
#

31/65 = 47%

modest dove
#

no i get that

#

i'm just coneptually trying to grasp the implications

#

right now i'm thinking ill just go grab more bluray if i can

distant needle
#

We'd need to look at the code to understand what happens

modest dove
#

cause this is work that could easily be avoided

#

and i've taken so much of you guys time already

distant needle
#

Well that would work but be kind of silly as you will most definitely encounter this on another show

modest dove
#

yea

#

i know that....

distant needle
#

Then you'll be back.

#

๐Ÿ˜‰
-)

modest dove
#

but you might forget that i've ben bugging you for like 2 days about these nuances

#

by then

#

๐Ÿ˜›

distant needle
#

These are not bad things. You should see some of the other challenges we have with people

modest dove
#

i feel like as a dev myself, i should grasp these things much easier

distant needle
#

So default_percent is likely something you can set in your config.yml

#

Which would globally set the threshold

#

If you do it at the yml level it will take precedence over the default_percent set in config.yml

#

I also think that this issue has come up because you have up to 4 possible answers?

modest dove
#

technically 3

#

its just a mishmash

#

i was wrong about WEB

distant needle
#

As such, I would set the threshold to 25

#

Ok if it's three, then 33

modest dove
#

it could be 4 on some other show

#

i dunno what scenarios id run into

#

what if i set it to 1

distant needle
#

The world might end

#

Well... setting it too low would likely mean that the winner is split by many overlays

#

Because multiple would reach that "1"

modest dove
#

ok but youre telling me it doesnt do the most weighted then?

#

if multiple match and meet the threshold?

distant needle
#

To be tested

modest dove
#

in these edgecases im not so concerned about it being 100% accurate majority

#

| Rick and Morty |
| Overlay Update Not Needed

#

lol...

distant needle
#

Weight assumes that you only hit that item once, not 5 times...

modest dove
distant needle
#

Right side nice the green dot was applied in the last log

modest dove
#

i put default_percentage: 35

#

in the default: section

#

it error'd yaml when i put it in overlay

distant needle
#

I did say in config

#

Not in yml

modest dove
#

oh

#

i just threw it right below my - file

#

it didnt error

#

but it didnt apply anything new

#

or was there someone you can specifically say "it goes here"

#

i just kinda assumed it was where the overlay stuff went

#
    overlay_path:
      - file: /config/sources.yml
      - default_percent: 35
      - pmm: resolution
        template_variables:
distant needle
#

I am doing 4 things at once.

#
settings:                                           # Can be individually specified per library as well
  cache: true
  cache_expiration: 60
  asset_directory: config/assets
  asset_folders: true
  asset_depth: 0
  create_asset_folders: false
  prioritize_assets: false
  dimensional_asset_rename: false
  download_url_assets: false
  show_missing_season_assets: false
  show_missing_episode_assets: false
  show_asset_not_needed: false
  sync_mode: sync
  default_collection_order:
  minimum_items: 1
  delete_below_minimum: true
  delete_not_scheduled: false
  run_again_delay: 1
  missing_only_released: true
  show_unconfigured: true
  show_unmanaged: true
  show_filtered: true
  show_options: true
  show_missing: false
  only_filter_missing: false
  show_missing_assets: false
  save_report: false
  tvdb_language: eng
  ignore_ids:
  ignore_imdb_ids:
  item_refresh_delay: 0
  playlist_sync_to_users: all
  playlist_report: true
  custom_repo:
  verify_ssl: true
  check_nightly: true
  playlist_exclude_users:
  default_percent: 35
#

I believe that default_percent is placed there in settings

#

It could also go into the library settings section

#
    settings:
      asset_directory: config/assets/TV Shows/
      prioritize_assets: true                       # The asset_directory contains folders per media item with respective posters
      default_percent: 35
modest dove
#

i put it in settings at the bottom

distant needle
#

So I think the best place is to try the library one first

modest dove
#

it didnt apply

distant needle
#

Or there

#

Try library settings as my second example showed

#

Is it giving an error, just ignoring it?

#

If you search for the default_percent in the logs, does it show up?

modest dove
#

it didnt error

#

it shows in settings

#

[2023-11-21 18:43:46,961] [builder.py:2693] [INFO] | Collection Filter episodes: {'filepath.regex': ['(?i)\b(BluRay|BDRip|Blu-Ray)\b'], 'percentage': 50} |

#

but still shows 50 in percentage

distant needle
#

You didn't add anything to sources.yml related to percentage?

modest dove
#

no

distant needle
#

Maybe we are not calling out default_percent in the right place. I did a search and only 1 hit. On a page with zero examples:

modest dove
#

thats what i found...

#

the page i pasted earlier

modest dove
#

yep that's the one

#

"it's a function"

#

that's it

distant needle
#

Well... you know python?

modest dove
#

yes

#

not like, well enough to write pmm

distant needle
#

Search for that default_percent string in GitHub

#

And see what or where it's being called

#

And how

modest dove
#

that's a good idea

distant needle
#

Look at nightly branch

modest dove
distant needle
#

Ok...

modest dove
#

hold on

distant needle
#

So it's a builder

modest dove
#

reading

#

does that tell you enough?

distant needle
#

Me..nope..

modest dove
#

yea

#

didnt think so

#

gimme a few

#

i gotta back track, would probably be easier to clone the repo

#

cause its a property on self

#

and that doenst tell me where its coming from

distant needle
#

Because ultimately the overlays.py is applying the overlay

#

Where default_percent should be referenced

modest dove
#

CollectionBuilder

#

i'm gonna clone this repo

#

hold on

distant needle
#

Sure

modest dove
#

its dense code

#

i need an IDE

distant needle
#

PyCharm

modest dove
#
        self.filtered_keys = {}
        self.run_again_movies = []
        self.run_again_shows = []
        self.notification_additions = []
        self.notification_removals = []
        self.items = []
        self.remove_item_map = {}
        self.schedule = ""
        self.beginning_count = 0
        self.default_percent = 50
        self.minimum = self.library.minim```
#

its set in a class that sets those

#

if those mean anything to you

#

i'm gonna trace where its called now

#

but figured id give you some context...i could also just replace the .py file....but i'd rather know how to do it in a config

#

server_preroll

#

its an overlay attribute

#

'percentage' is something you can define in the keys

#

so i set

#

[2023-11-21 19:09:09,021] [meta.py:218] [TRACE] | Original: {'name': 'rip_source', 'percentage': 40, 'weight': 1370, 'regex': '(?i)\b(?<!hbo[ .-])max\b.+\bweb[ .-]?(dl|rip)?\b'} |

#

wrong one

#

nope im wrong

#

i have no idea

#

[2023-11-21 19:09:15,688] [overlays.py:394] [INFO] | |
[2023-11-21 19:09:15,688] [overlays.py:396] [INFO] |================================= Gathering Items for Max Overlay ==================================|
[2023-11-21 19:09:15,688] [builder.py:2691] [INFO] | |
[2023-11-21 19:09:15,689] [builder.py:2693] [INFO] | Collection Filter episodes: {'filepath.regex': ['(?i)\b(?<!hbo[ .-])max\b.+\bweb[ .-]?(dl|rip)?\b'], 'percentage': 50} |

#

before i go deeper

#

i'm gonna change the default in the code

#

and see if that fixes it

distant needle
#

You could.

#

Just arrived home need to eat and do family stuff

modest dove
#
|   Overlay Reason: Overlay changed text(โ—)status40right4590bottom/fonts/Inter-Medium.ttf6400center(50, 205, 50, 255)(0, 0, 0, 153)300(0, 0, 0, 153)6 not in {'BluRaysources1800left1520top325105center(0, 0, 0, 153)3000': 'Overlay File (0) BluRay', 'text(โ—)status40right4590bottomfonts/Inter-Medium.ttf6400center(50, 205, 50, 255)(0, 0, 0, 153)300(0, 0, 0, 153)6': 'Overlay File (1) airing_shows'} |
|   Overlays Applied: Overlay File (0) BluRay, Overlay File (1) airing_shows ```
#

well thats cool

#

so at least we know what the problem is

distant needle
#

You set it to why in the code?

modest dove
#

35

#

worked

distant needle
#

So we just need to figure out how to pass 35 into the running code

modest dove
#

i tried where it seemed like it would go based on what i was seeing in logs

#

but it shows percentage

#

then never gets passed down

#

filters:

  filepath.regex: <<regex>>
#

maybe here.

#

seems like that's a possibility based on what i'm seeing

#

[2023-11-21 19:42:29,290] [builder.py:963] [DEBUG] | Value: {'percentage': 45, 'filepath.regex': '(?i)\b(BluRay|BDRip|Blu-Ray)\b'} |
[2023-11-21 19:42:29,292] [overlays.py:436] [DEBUG] | Traceback (most recent call last): |
| File "/modules/overlays.py", line 393, in compile_overlays |
| builder = CollectionBuilder(self.config, overlay_file, k, v, library=self.library, overlay=True) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/modules/builder.py", line 1054, in init |
| self._filters(method_name, method_data) |
| File "/modules/builder.py", line 1863, in _filters |
| raise Failed(message) |
| modules.util.Failed: Overlay Error: percentage is not a valid filter attribute |
| |
[2023-11-21 19:42:29,293] [overlays.py:437] [ERROR] | Overlay Error: percentage is not a valid filter attribute

distant needle
#

ffs: In case anyones interested the issue was solved with the default_percent prop, i just put it in the wrong place, so hdr10+ detection goes something like this:

    default_percent: 2
    template:
      - name: Resolution
        weight: 400
        opt1: hdr10p
    plex_search:
      all:
        hdr: true
    filters:
      filepath.regex: 'HDR10\+|HDR10P'```
#

#general-chat message

#

implemented in May 2022: #nightly-updates message

modest dove
#

[2023-11-21 19:44:47,702] [builder.py:2693] [INFO] | Collection Filter episodes: {'filepath.regex': ['(?i)\b(BluRay|BDRip|Blu-Ray)\b'], 'percentage': 45} |

#

yep

#

sounds like putting it in the wrong place is a repeat problem

#

docs need examples :/

distant needle
#

so the above was a "good" example

modest dove
#

yes

#

lol

distant needle
#

i did a search for default_percent on ALL of our discord... 17 hits... 4 outside of this thread

#

and happened to hit that one person that was actually trying something similar to us with that example

#

of course.. I still think we are chasing this problem

modest dove
#

out of 12k episodes

distant needle
#

no... for Rick and Morty

modest dove
#

no im saying

#

1 show

#

out of 12k episodes and 358 series

distant needle
#

thats just a luck thing

modest dove
#

ill make a point to be consistent about sourcing if possible

#

i dunno what else to do about it

#

adjust threshold as needed

distant needle
#

the only logical thing to do is take the number of possible overlays / 100

#

what I dont know is what if 2 or more things hit that threshold

modest dove
#

lol

#

thats like 3.7%

#

there's 21 overlays

#

not all could conflict though

distant needle
#

because of the hbo, hbomax, MA, etc?

modest dove
#

HDTV obviously can't be HBO

#

yea

#

i counted them

distant needle
#

so what happens if you set it to 10%

modest dove
#

there's really like, 19 potetial conflicts

#

the likelihood that it would be anything <30% is low af

#

i'd imagine there would be MAYBE AMZN and Bluray, and maybe one other at the most

distant needle
#

if you say so

modest dove
#

i have it setup to upgrade in sonarr

distant needle
#

doesnt that depend on the source in the end

modest dove
#

there'd only be a select few shows that release on different services over the course of a series

#

like if its on NF, its pretty stable on netflix, and if it gets taken off it might pop up on another, but its not gonna pop up on like 4 different ones

#

that seems extremely unlikely

#

but either way now i can adjust it if need be

#

i think setting it to a default of 10 or something could cause mroe problems than it solves?

distant needle
#

just to see what happens against your test-library

modest dove
#

i mean sure

#

no change

distant needle
#

Interesting

#

So multiple overlays met 10% and the one with the largest value won

modest dove
#

yes that appears to be the case

distant needle
#

added this example to the wiki and waiting for the PR to be merged
#1176100803996549161 message

modest dove
#

๐Ÿ‘