It is currently 16 Apr 2024, 14:45
   
Text Size

Pictures for Magic Album

Moderators: charmer, CCGHQ Admins

Re: Pictures for Magic Album

Postby Topace » 23 Mar 2023, 11:03

I'll give an update on those scripts shortly (DMC / BRO / ONE / etc.)...
Topace
 
Posts: 29
Joined: 25 Dec 2016, 15:49
Has thanked: 35 times
Been thanked: 24 times

Re: Pictures for Magic Album

Postby Topace » 27 Mar 2023, 20:50

Here we go - the script files for the latest set releases... finally :-)

what you will have to do:
a) if necessary, adjust the path name within the scripts to match the location of your MA folder
b) rename the script from *.txt to *.ps1
c) run with PowerShell to start downloading

Also: There's a small bug in the current database. The picture-folder for ONE is named "...\Pictures\Expasions\..." instead of "...ExpaNsions...". Until this will be patched, you'll have to create a new folder calles "Expasions" in your "Pictures"-Folder and temporarily move your Pictures from Phyrexia All Will Be One to this place for the pictures to get displayed in Magic Album.

HF & Stay Safe!
Attachments
PONE.txt
(36.35 KiB) Downloaded 88 times
PBRO.txt
(37.07 KiB) Downloaded 89 times
ONE.txt
(98.01 KiB) Downloaded 91 times
ONC.txt
(39.01 KiB) Downloaded 90 times
J22.txt
(169.01 KiB) Downloaded 90 times
DMC.txt
(52.5 KiB) Downloaded 90 times
BRR.txt
(28.85 KiB) Downloaded 82 times
BRO.txt
(78.25 KiB) Downloaded 92 times
BRC.txt
(45.18 KiB) Downloaded 88 times
Topace
 
Posts: 29
Joined: 25 Dec 2016, 15:49
Has thanked: 35 times
Been thanked: 24 times

Re: Pictures for Magic Album

Postby Daniel » 28 Mar 2023, 16:00

The picture folder bug is fixed and will be available with the next update. I apologize for the inconvenience. Thanks to Topace for pointing it out.
User avatar
Daniel
 
Posts: 70
Joined: 18 Jan 2020, 14:12
Has thanked: 45 times
Been thanked: 153 times

Re: Pictures for Magic Album

Postby Matse » 08 Feb 2024, 16:03

Many thanks to Topace for the download scripts.

Since changing the Magic Album Path in all files, renaming files and running all files one after the other is a bit annoying, I created a download script.
It takes all .txt files in the same folder and extracts the download URL and output folder. Then it downloads them to the modified output folder(can be specified in the second line of the script).
It also checks if there is a file in the target folder that is not included in the .txt file and removes it.

And it executes all downloads in parallel (at least every set/.txt)

This script also requires Powershell 7.1 or higher, as I download the files directly to the correct path and don't rename () to [] afterwards.

I hope someone finds this useful :)

Also: Topace, are you still creating these download scripts? If not, is there any way to extract the correct image path from Magic Album?
Attachments
download.ps1.txt
Change Magic Album Path in second line of File and remove .txt from filename
(5.29 KiB) Downloaded 20 times
download.cmd.txt
Remove .txt from filename. Will start the script in Powershell
(26 Bytes) Downloaded 18 times
User avatar
Matse
 
Posts: 1
Joined: 03 Jan 2020, 08:08
Has thanked: 0 time
Been thanked: 1 time

Re: Pictures for Magic Album

Postby Topace » 19 Mar 2024, 20:12

Hi Matse,

yes, I try to - unfortunately time is always sparse on my side ;-)

I want to put up download scipts for the latest sets this month.

Thank you for your Update! I will try to implement this - lets see what I can achieve.
Topace
 
Posts: 29
Joined: 25 Dec 2016, 15:49
Has thanked: 35 times
Been thanked: 24 times

Previous

Return to Magic Album

Who is online

Users browsing this forum: No registered users and 25 guests


Who is online

In total there are 25 users online :: 0 registered, 0 hidden and 25 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 25 guests

Login Form