#(for bullmoose) people posters
1 messages · Page 2 of 1
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?
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
let's try
dont touch anything in the Downloads
let teh script try and tackle it
how many pics in there?
seems like you have a lot
25
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
it crash after the first one
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?
but that is the flow we just fixed
yup
so that it would click "Oui"
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
sure...
there is the worldcup
go canada, i root for you guys
no that is good...
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
so i rerun ps1 without path, right ?
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...
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>
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
yup ok
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
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
Let me review the logs in a bit…
6 headchop :/
no i understand
they are basically trlling you that maybe the tmdb image is not the best for creating a poster
but now, how do you correct that ?
manually download an image in the download folder ?
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
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 🙂
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
Jean Dujardin est né le 19 juin 1972 à Rueil-Malmaison. Après le bac et en attendant l'armée, il s'essaye aux métiers de miroitier et de serrurier. Lors de son service national, il mesure son aptitude à faire rire la galerie. Libéré, il monte à Paris, bien décidé à cultiver ce don.
Jean Dujardin commence à se produire dans des bars et fait la r...
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 ?
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"
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
that's good !
mine would be remove backgrounds chrome-en windows-en
your url will need to change in the flow
or like -os_language "fr" -browser "edge"
browser language
i don't know what variable you want
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"
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
determine your os language
and we would have 4 options... two of yours and I have a remove_backgrounds_edge-en_windows-en.txt that is almost working
https://www.swisstransfer.com/d/0d26a89c-4cf0-42c2-ad1e-3095aed80e3a <-- actors zipped
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
that can be a v2 🙂
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
go step by step
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"
no, just change the url
or I use chrome in english but my os is french... fix it
that's the only part that is changing
you can mix the flow i think
and then maintaining 8 copies of the same flow is a PITA
maybe work in the txt directly, replace some stuff via regex, before importing in PAD
😦
i tried it with the Yes No thing
this is why I specifically said... you NEED to fix that on your end
better, host a ps1, user should call this ps1 with local log,
then on server side you run whatever you want
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
😛
remmeber your questin about why 30 files?
yup
well... there are thrity files per folder that you sent me... thats why
essentially it processed 30 files in total
right.. I may recount them when I "resort" them
oh... looks like your version of create_posters is a little dated
😮
ha ok
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
i will let you know as I need to get more organized
LOL!!
we cannot have France win again
but australia....
they will sing for 4 years again if they win...
cmon.. they need to pull off a Saudi Arabia vcitory
sick of their shit
thanks for all your help btw
thx to you for your commitment and your patience with a noob
let's keep this thread open 🙂
goal for australia
damn 1-1
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
😦
yes https://www.swisstransfer.com/en-ca is really good. it's free, fast and support large files
no need to create account or whatsoever
mbappe is destroying AUS
i wanna cry 😦
i will need to figure out this code situation here when I have 0 disturbances
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
Soccer/Football gets a bad rap because of the theatrics…
Heading off to watch an NHL game… Buffalo Sabres vs Montreal Canadiens….
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?
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.
Damn. Can you send me those fonts ? I'll rerun the script tonight. I am at work today
The edge-fr is wrong. I forgot to change the 2 OCR steps text on the page (further.... In french)
I will need support for that, I don't know of to use git
correct version
I am by no means a GH expert…. More like a junior.
Do you have GitExtensions on your machine?
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
I have not updated the readme.md yet
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
README updated as well
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
IF i run the script, it should be this image that I would have downloaded….
Nice victory for CH this morning
When I run the script (based on my old metalog) it download the pictures from right (the one with headchop)
Hmmmm can you send me the metalog so I can try?
In 4 hours yes 🙂
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
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 ?
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
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
so there is no fix for that, except to redownload manually the picture ?
to force the correct link in the script ?
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
@fallen helm is the repository ready to accept my actors commit ?
it is not... 😦
the dev has been away... i think Thanksgiving related... probably back mext week
kk
i see the bug
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)
ok, i'll run again the script
just do it for like 4 people
yup
and not the ones that have the special photos... lol
also maybe add in the read me that you need to dl powershell 7 to avoid some bug
OH yeah!!! I forgot about that adventure
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
cached variable ?
ooo.... maybe.....
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...
!?!? is there a problem on my end with this C:/C:/
did i mess up env. or something like this ?
my env is clean. i'm using script v1.6
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
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
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
swisstransfer them?
I have also run the same set of 25 that you sent me the other day.... however maybe there are more now
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)
Only send the diff on the next run
yup, i make you a zip with only the diff
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
just take the one in the folder
i think they are good
the others are a relicate of the old tests...
ok... trying to organize it...
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
Tabarnak…. Another win for France…
i know.. 😦
sad for canada 😦
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.
Yes... I have not been able to watch it.... but saw the scoreboard only...
That slide tackle on Vinicius was horrible….(completely missed the ball and player)
Lucky it was offside
wasn't enough... but it was forseeable
Vinicius was doing almost whatever he wanted on the left side.....
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
much worse.....