#(for bullmoose) people posters

1 messages · Page 2 of 1

random hawk
#

yup

#

for the 4 first people it's ok

#

i stopped the script after 4

fallen helm
#

woohoo

#

ok... so its doing exactly what its supposed to... so in the ps1... did you remove teh exit that I had you add to the ps1 right after teh call to run_PAD?

random hawk
#

yes

#

i rerun it ?

fallen helm
#

so if you rerun... it will populate the Downloads folder again.. and then kick off pad flow... and then come back and finsih the processing

random hawk
#

let's try

fallen helm
#

dont touch anything in the Downloads

#

let teh script try and tackle it

#

how many pics in there?

#

seems like you have a lot

random hawk
#

25

fallen helm
#

can you somehow reduce that?

#

to maybe 7?

#

only because we will need to wait for adobe flow to process 25 of them

#

before we see if it creates the final posters.

#

and your machine becomes a hostage to the pad flow

random hawk
#

it crash after the first one

fallen helm
#

if you use that desktop while flow is happening, it will likely stop processing because it does not find certain windows to proceass

#

whats crashing?

random hawk
#

stuck on that

fallen helm
#

but that is the flow we just fixed

random hawk
#

yup

fallen helm
#

so that it would click "Oui"

random hawk
#

i will try to run it again in powerautomate

#

maybe i didn't save it correctly

fallen helm
#

make sure you close all your power automate windows

#

and save it

#

and close all the edge instances

#

just to make sure its not getting confused with other edge browseres running

random hawk
#

ok i quit everything save and rerun the ps1

#

i'll wait for 25 images no prob

fallen helm
#

sure...

random hawk
#

there is the worldcup

fallen helm
#

lol

#

cant beleive saudi beat argentina

random hawk
#

go canada, i root for you guys

fallen helm
#

denmark ties tunisia

#

mexico is playing now vs poland... 0-0

random hawk
#

strange

fallen helm
#

no that is good...

random hawk
#

it processes only 4 png

#

not all

fallen helm
#

when the PAD flow crashes.. I have ps1 continue

#

so it will at least give you some results...

#

the issue is that the next time... put a path that does not contain the meta.logs

#

so it won't redownload them

#

and then the PAD flow will continue

#

until it fails or ends and then the ps1 will process more

#

so its like a recovery system there to keep things going even if there are failures

random hawk
#

ok

#

i reopen pad and rerun the steps to see what's happening

fallen helm
#

no need...

#

unless rerunning ps1 did nothing

random hawk
#

so i rerun ps1 without path, right ?

fallen helm
#

you can run ps1 with a fake_path

#

can you share the run command you are using?

#

i will give you a good one to use

#

because a totally fake path is not good either...

random hawk
#

PS C:\Users\Leandre\Plex-Stuff> .\create_people_poster.ps1 -metalog_location \NASS\docker\appdata\plex-meta-manager\config\logsss
Logs location >\NASS\docker\appdata\plex-meta-manager\config\logsss< not found. Exiting now...
PS C:\Users\Leandre\Plex-Stuff>

fallen helm
#

basically a real path that does not containe meta*.log

#

.\create_people_poster.ps1 -metalog_location \NASS\docker\appdata\plex-meta-manager\config

#

see what I did there?

#

it will scan the config folder looking for meta*.log... and since none are there... it will just continue past that and then look for *.jpg in downloads folder and then run PAD

#

PAD will scan for *.jpg, and remove the backgrounds... this time with only the remaining 21 images

random hawk
#

yup ok

fallen helm
#

if all goes well... it will get through all 21... if PAD fails after 4, it will continue to process the posters... when done, hit up arrow again (which will rerun the ps1 command) and then it will continue processing... at some point, there will be 0 files left in the downloads... and its done

random hawk
#

it does everything

#

even the processed ones

#

i'll send you the log

#

30 files in 15 min

#

don't know why 30, it was supposed to be 21

fallen helm
#

Let me review the logs in a bit…

random hawk
#

6 headchop :/

fallen helm
#

the errors are normal

#

i can explain them to you if they dont make sense

random hawk
#

no i understand

fallen helm
#

they are basically trlling you that maybe the tmdb image is not the best for creating a poster

random hawk
#

but now, how do you correct that ?

#

manually download an image in the download folder ?

fallen helm
#

thats an option... or you upload a proper image to tmdb...which woukd be best

#

and you upvote it so it is the primary image downloaded

#

its pretty easy

random hawk
#

ok

#

do you update all the images of the actors from time to time ?

#

lets say in 10 years, you want the actual image, not the one generated 10 years ago 🙂

fallen helm
#

Well… I guess… but I have only been at this for 6 months…. So… haven’t really thought about it

#

I figure… when someone complains or wants an updated image, I tell them to update TMDB to make the new image the default and then I grab and process

random hawk
#
#

i'm on this page, and i want the last one to be the main picture

#

i upvote it, and downvote the actual main picture. what can i do more ?

#

ho, its done ! easy !

#

ok, now how do i do a PR with all this images and this flow ?

fallen helm
#

kool... sorry... my day at work is a little hectic

#

so yes.. its that easy for the upvote/downvote situation

#

so for the flow.... I haven't even put the windows english flow up yet since we only figured this out yesterday

#

and no one has ever been able to successfully run the full automation other than me... so also a first

#

that being said... there are 5 sets of images that need to be PR'd

#

we made some new repos and literally just released them... so even that is totally new

#

what I suggest is the following....

#

can you zip up the following 4 folders: bw, rainier, original, signature, paste it here, then the transparent folder and paste it here, finally the pad flow

#

what I need to do on my side is upload both flows to my GH repo

#

I need to update the ps1 to reflect the use of run _PAD with parameters instead of the way I am running it

#

and have a ps1 script paramter that will tell which PAD flow you want the ps1 to run

#

create_people_poster.ps1 -logdir "\\nas\pmm\logs" -flow "remove background edge windows fr"

random hawk
#

i'll just change the flow to respect the browser local

#

to be in french

fallen helm
#

so edge in french and windows in fr

#

remove backgrounds edge-fr windows-fr

#

something like that I guess?

#

so it tells you the language of edge and the language of windows

random hawk
#

that's good !

fallen helm
#

mine would be remove backgrounds chrome-en windows-en

#

your url will need to change in the flow

random hawk
#

or like -os_language "fr" -browser "edge"

#

browser language

#

i don't know what variable you want

fallen helm
#

the above are going to be the flow names

#

the -flow parameter must specify the flow name as you created in the console of PAD and based on what you copied from the .txt you copied down from GH

#

so there will be two files:
remove backgrounds chrome-en windows-en.txt
remove backgrounds edge-fr windows-fr.txt

#

this is what I mean.... we need to think about the instructions for the users so that its "easy"

fallen helm
#

so I was thinking that the steps are something like this:
0- Determine OS and Language (Windows, en/fr)
1- Determine if you are a chrome or edge user
2- install PAD ad associated extension based on what you choose in step 1
3- copy the contents of 1 of the two files and paste into a new flow called the same name as the file you copied from
4- save the flow
5- the flow name created here is how you will fill the -flow parameter when you use create_people_poster.ps1

#

I mean... this is what I think would work

random hawk
#

determine your os language

fallen helm
#

and we would have 4 options... two of yours and I have a remove_backgrounds_edge-en_windows-en.txt that is almost working

random hawk
fallen helm
#

i want to maybe merge some of this into 1 flow

#

like... determine OS lang

#

should be an easy ask from PAD flow

#

and same for browser

#

set that as two variables

#

and then run the flow based on those two variables that are "detected" requiring nothing from the user

random hawk
#

that can be a v2 🙂

fallen helm
#

but i need to think about that a little more

#

yes for v2

#

the issue is that this was easy to work with you

#

with others... it wont be so easy

random hawk
#

go step by step

fallen helm
#

like if someone says... I NEVER use EDGE!!! I ban EDGE from my PC.. I ONLY use chrome.. give me the chrome french version... I will be "stuck"

random hawk
#

no, just change the url

fallen helm
#

or I use chrome in english but my os is french... fix it

random hawk
#

that's the only part that is changing

fallen helm
#

i wrote chrome on purpose

#

because yours are EDGE only compatible

random hawk
#

you can mix the flow i think

fallen helm
#

and then maintaining 8 copies of the same flow is a PITA

random hawk
#

maybe work in the txt directly, replace some stuff via regex, before importing in PAD

fallen helm
#

i tried that... does not work

#

because it takes little images of windows at times

random hawk
#

😦

fallen helm
#

i tried it with the Yes No thing

#

this is why I specifically said... you NEED to fix that on your end

random hawk
#

better, host a ps1, user should call this ps1 with local log,

#

then on server side you run whatever you want

fallen helm
#

well... hosting might be the issue on my part... not really sure how I would accomplish that?

#

nioce touch with the swizztransfer... make me watch those beatiful pics

random hawk
#

😛

fallen helm
#

remmeber your questin about why 30 files?

random hawk
#

yup

fallen helm
#

well... there are thrity files per folder that you sent me... thats why

#

essentially it processed 30 files in total

random hawk
#

yup, but 4 were already processed

#

so it did them again

fallen helm
#

right.. I may recount them when I "resort" them

#

oh... looks like your version of create_posters is a little dated

random hawk
#

😮

fallen helm
#

because the folder structure is off

#

but no worries

random hawk
#

how could i get the last version ?

#

i did a git clone

fallen helm
#

i may not have promoted it yet

#

1 sec

random hawk
#

ha ok

fallen helm
#

yes... not finished with it yet.. like I said we JUST created new repos for the people posters and its still changing as we get organized so.... this is why you don't have it

random hawk
#

okok

#

no worry

#

i'm off to see france lose

#

i hope

fallen helm
#

i will let you know as I need to get more organized

#

LOL!!

#

we cannot have France win again

random hawk
#

nope

#

those maudit francais

fallen helm
#

but australia....

random hawk
#

they will sing for 4 years again if they win...

fallen helm
#

cmon.. they need to pull off a Saudi Arabia vcitory

random hawk
#

sick of their shit

fallen helm
#

thanks for all your help btw

random hawk
#

thx to you for your commitment and your patience with a noob

#

let's keep this thread open 🙂

#

goal for australia

fallen helm
#

forza australia!

#

just saw it what a nice goal

random hawk
#

damn 1-1

fallen helm
#

lol.. i am watching on iptv... goal still not scored

#

now I saw the header

#

Rabiot

#

Theo is a better player than his brother IMO

#

probably bittersweet that luca got hurt for the French

#

damn

#

that was too easy for France

random hawk
#

😦

#

no need to create account or whatsoever

fallen helm
#

mbappe is destroying AUS

random hawk
#

i wanna cry 😦

fallen helm
#

i will need to figure out this code situation here when I have 0 disturbances

river gorge
#

The two people watching the world cup in Australia will be a little sad about it

#

The rest of us are waiting for the AFL season to start again :p

fallen helm
#

Soccer/Football gets a bad rap because of the theatrics…

#

Heading off to watch an NHL game… Buffalo Sabres vs Montreal Canadiens….

fallen helm
#

So… here are the combos I have for now…which should cover the majority of people trying this IMO.

#

So I will
PR these four files
PR new version of create_people_poster.ps1 to support logdir and pad_name parameter name
PR README.md with new steps and requirements for this script

Am I missing anything?

fallen helm
#

smh, I forgot a very important requirement… there are two fonts that need to be installed for imagemagick to leverage. Fuggles and ComfortAa… so unfortunately, none of the images sent are of the correct format…

#

I have some cool functions from some other ps1 scripts that I will reuse here

#

Basically I will see if the system does not have the fonts and if not, it will create the fonts in the base subdirectory i create with the font files for the user to install and aborts until those fonts are installed properly.

random hawk
#

Damn. Can you send me those fonts ? I'll rerun the script tonight. I am at work today

random hawk
fallen helm
#

Once I merge, I will let you PR

#

As for fonts, when I fully get up… yes

random hawk
random hawk
fallen helm
#

I am by no means a GH expert…. More like a junior.

#

Do you have GitExtensions on your machine?

random hawk
#

no

#

i have git bash

#

git gui

#

ok i installed git extensions

fallen helm
#

ok. cool... so try to connect using GE

#

to my repo

#

and do a pull

#

because I implemented the new versions of ps1 and added the 4 files

#

the fonts will get created if you don't have them installed and you will get a message asking you to install them and where they get extracted to

#

not sure how you have setup your git and if you were able to connect to the repo.... but as you make edits locally, they will show up as a commit... that you can commit to your repo, then a PR Reuqest... and I merge it

fallen helm
#

README updated as well

random hawk
#

i managed the pull the latest release. but the script keep downloading an old tmdb image for jean dujardin.

#

will look into this tomorow night. going to bed cya

fallen helm
#

IF i run the script, it should be this image that I would have downloaded….

fallen helm
#

Nice victory for CH this morning

random hawk
fallen helm
#

Hmmmm can you send me the metalog so I can try?

random hawk
#

In 4 hours yes 🙂

fallen helm
#

Kk

#

Btw, it’s probably best practice to copy the logs you want scanned to a different directory…. Otherwise the ps1 will always find and redo all the steps… by copying to a different directory, when it finishes, you can delete the logs manually and then just rerun until all the files in Downloads are processed.

#

The part of the ps1 that usually fails is when using the PAD flow

#

So I usually have it scan, download and then if I see all the files in the downloads folder, I just delete the logs manually. And then rerun ps1 until it finishes

#

I could probably add a switch to delete after the download, but I think that is risky

random hawk
#

this is my command

#

.\create_people_poster.ps1 -metalog_location \NASS\docker\appdata\plex-meta-manager\config\logs -flowname "remove backgrounds edge-fr windows-fr"

#

this is the log. i'll move it to another directory and try again

#

it still dl 2 wrong pictures

#

is it because of this ? not getting the correct stuff ?

fallen helm
#

Hmmm… I wonder if PMM needs to know what the direct link to the primary photo is….

#

Meaning that unless you upvote before a run, it won’t get the correct photo.

#

There is a workaround which is to download the photo you want into the Downloads folder and then rerun with no meta.logs…. So it won’t re-download…. And just process what you downloaded manually

fallen helm
#

So I get the same results…because the link points to the photo and not to the top photo…I think

#

Maybe the user account that runs PMM thinks the primary photo is that link…

#

When this happens I usually use a different Python script from chazlarson to bulk download the stubborn images and then I get the correct photos…but I need to validate things manually and rename the files which is why I like using the full automation except in these peculiar situations

random hawk
#

so there is no fix for that, except to redownload manually the picture ?

random hawk
#

to force the correct link in the script ?

random hawk
#

here is my actors, processed with the correct font. however, i had this error in the script

#

despite this red errors, it seems that it was processed correctly

random hawk
#

@fallen helm is the repository ready to accept my actors commit ?

fallen helm
#

it is not... 😦

#

the dev has been away... i think Thanksgiving related... probably back mext week

random hawk
#

kk

fallen helm
#

i see the bug

fallen helm
#

new version pushed... let me know if that fixes the errors. (I think I forgot to create the folder so when the copy happens, it fails)

random hawk
#

ok, i'll run again the script

fallen helm
#

just do it for like 4 people

random hawk
#

yup

fallen helm
#

and not the ones that have the special photos... lol

random hawk
#

also maybe add in the read me that you need to dl powershell 7 to avoid some bug

fallen helm
#

OH yeah!!! I forgot about that adventure

random hawk
#

bug not solved

fallen helm
#

oof... clearly a path issue is going on... let me run some tests and get back to you

#

@random hawk
2022-11-25 10:26:35 AM ~ gh_path : D:\bullmoose20\Plex-Meta-Manager-Images\people

#

this is what I get...

#

you get 25.11.2022 16:09:09 ~ gh_path : C:\C:\Users\Leandre\Plex-Meta-Manager-Images\people

#

I am unclear on why you are seeing C:\C:\

#
2022-11-25 10:26:35 AM ~ #######################
2022-11-25 10:26:35 AM ~ # SETTINGS
2022-11-25 10:26:35 AM ~ #######################
2022-11-25 10:26:35 AM ~ scriptName                   : create_people_poster.ps1
2022-11-25 10:26:35 AM ~ metalog_location             : \\nzwhs01\appdata
2022-11-25 10:26:35 AM ~ flowName                     : remove backgrounds chrome-en windows-en
2022-11-25 10:26:35 AM ~ flgExit                      : True
2022-11-25 10:26:35 AM ~ step_del                     : \\nzwhs01\appdata\*
2022-11-25 10:26:35 AM ~ outputfile                   : \\nzwhs01\appdata\step1_download_
2022-11-25 10:26:35 AM ~ tmp_local                    : C:\Users\bullmoose20\AppData\Local\Temp
2022-11-25 10:26:35 AM ~ script_path                  : D:\bullmoose20\people
2022-11-25 10:26:35 AM ~ scriptLog                    : D:\bullmoose20\people\create_people_poster.ps1.log
2022-11-25 10:26:35 AM ~ download_dir                 : D:\bullmoose20\people\Downloads
2022-11-25 10:26:35 AM ~ targetPath_pmm_bw            : D:\bullmoose20\people\bw
2022-11-25 10:26:35 AM ~ targetPath_rainier           : D:\bullmoose20\people\rainier
2022-11-25 10:26:35 AM ~ targetPath_orig              : D:\bullmoose20\people\original
2022-11-25 10:26:35 AM ~ targetPath_signature         : D:\bullmoose20\people\signature
2022-11-25 10:26:35 AM ~ nobackPathColor              : D:\bullmoose20\people\transparent
2022-11-25 10:26:35 AM ~ tmpPeoplePath                : D:\bullmoose20\people\tmppeople
2022-11-25 10:26:35 AM ~ basePath                     : D:\bullmoose20\people\base
2022-11-25 10:26:35 AM ~ gh_path                      : D:\bullmoose20\Plex-Meta-Manager-Images\people
#
25.11.2022 16:09:09 ~ #######################
25.11.2022 16:09:09 ~ scriptName                   : create_people_poster.ps1
25.11.2022 16:09:09 ~ metalog_location             : \\NASS\docker\appdata\plex-meta-manager\config
25.11.2022 16:09:09 ~ flowName                     : remove backgrounds edge-fr windows-fr
25.11.2022 16:09:09 ~ flgExit                      : True
25.11.2022 16:09:09 ~ step_del                     : \\NASS\docker\appdata\plex-meta-manager\config\*
25.11.2022 16:09:09 ~ outputfile                   : \\NASS\docker\appdata\plex-meta-manager\config\step1_download_
25.11.2022 16:09:09 ~ tmp_local                    : C:\Users\Leandre\AppData\Local\Temp
25.11.2022 16:09:09 ~ script_path                  : C:\Users\Leandre\Plex-Stuff
25.11.2022 16:09:09 ~ scriptLog                    : C:\Users\Leandre\Plex-Stuff\create_people_poster.ps1.log
25.11.2022 16:09:09 ~ download_dir                 : C:\Users\Leandre\Plex-Stuff\Downloads
25.11.2022 16:09:09 ~ targetPath_pmm_bw            : C:\Users\Leandre\Plex-Stuff\bw
25.11.2022 16:09:09 ~ targetPath_rainier           : C:\Users\Leandre\Plex-Stuff\rainier
25.11.2022 16:09:09 ~ targetPath_orig              : C:\Users\Leandre\Plex-Stuff\original
25.11.2022 16:09:09 ~ targetPath_signature         : C:\Users\Leandre\Plex-Stuff\signature
25.11.2022 16:09:09 ~ nobackPathColor              : C:\Users\Leandre\Plex-Stuff\transparent
25.11.2022 16:09:09 ~ tmpPeoplePath                : C:\Users\Leandre\Plex-Stuff\tmppeople
25.11.2022 16:09:09 ~ basePath                     : C:\Users\Leandre\Plex-Stuff\base
25.11.2022 16:09:09 ~ gh_path                      : C:\C:\Users\Leandre\Plex-Meta-Manager-Images\people
random hawk
#

cached variable ?

fallen helm
#

ooo.... maybe.....

fallen helm
# random hawk cached variable ?

i created an update that will have an exit so its normal that it does not process for now... just wanted to see what you get when you run it... I set 2 vars to null and then I exit after reporting the settings...

random hawk
#

!?!? is there a problem on my end with this C:/C:/

#

did i mess up env. or something like this ?

random hawk
fallen helm
#

hang on.... I cannot understand why you are getting the error "above" the settings output

#

oh... maybe because I create them before showing the output

#

when I run... I do not get the driveletter twice

#

let me add more outputs to screen to see what is happening because I cannot repro this

#

pull 1.7 and run.. it will exit even earlier now

#
PS D:\bullmoose20\people> D:\bullmoose20\people\create_people_poster.ps1 -metalog_location \\nzwhs01\appdata -flowname "remove backgrounds chrome-en windows-en"
1gh_path: 
1tmp: 
2gh_path: D:
2tmp: 
3gh_path: D:
3tmp: bullmoose20
4gh_path: D:\bullmoose20
4tmp: bullmoose20
5gh_path: D:\bullmoose20\Plex-Meta-Manager-Images
5tmp: bullmoose20
gh_path: D:\bullmoose20\Plex-Meta-Manager-Images\people
tmp: bullmoose20
#

I wonder if this might have something to do with the current directory that you are in when you actually run the script

#

my current directory is D:\bullmoose20\people

#

i wonder if the bug presents itself when you are in some other directory

#

i just repro'd the issue

#

i started a new 7.3 terminal and the double-drive letter issue occurred... let me see what is going on

fallen helm
#

pull 1.8

#

i am getting annoyed with the Powershell ISE... turns out that it only supports up to 6.x and the issue here is the same as last time... the cndlet returns different values with 7.x versus earlier versions

#

i will likely flip to the vscode2022 with powershell extension

random hawk
#

running 1.8

#

no error at the begining

#

no error either at the end

#

fixed

fallen helm
#

great... I moved to vscode and it started making all kinds of reccomendations... so I applied many of them and updated the version to reflect those changes... if you have issues, let me know.. I did not update the version number, but the file was updated on GH

random hawk
#

ok, i'll pull them again

#

just let me know what to do with those posters 🙂

fallen helm
#

swisstransfer them?

#

I have also run the same set of 25 that you sent me the other day.... however maybe there are more now

random hawk
#

here are the 25, with 2 that are corrected manually

#

i am doing an extract and there will be 36 (include the 25 already send)

fallen helm
#

Only send the diff on the next run

random hawk
#

yup, i make you a zip with only the diff

fallen helm
#

sounds like the tool is working well then. 🙂

#

ummm the zip files look ztrange in terms of final results:

#

some with and without proper fonts

#

they should all be sorted

#

and in their own folders

random hawk
#

just take the one in the folder

#

i think they are good

#

the others are a relicate of the old tests...

fallen helm
#

ok... trying to organize it...

fallen helm
#

ok.. so several PRs were made to get these posters into the repos... but until people are back, they will remain as a PR only

fallen helm
#

Tabarnak…. Another win for France…

random hawk
#

i know.. 😦

random hawk
#

sad for canada 😦

fallen helm
#

Yup. But we got to witness our first goal in the tournament ever! And it was a very nice goal. Croatia had too much control in the middle… it was only a matter of time.

random hawk
#

ok, we can manage brazil

#

at least for a half-time

fallen helm
#

Yes... I have not been able to watch it.... but saw the scoreboard only...

fallen helm
#

That slide tackle on Vinicius was horrible….(completely missed the ball and player)

#

Lucky it was offside

random hawk
#

wasn't enough... but it was forseeable

fallen helm
#

Vinicius was doing almost whatever he wanted on the left side.....

random hawk
#

yup

#

poor defense... and when we have the ball, we don't know how to play forward...

#

but it could have been worse than 1-0

fallen helm
#

much worse.....