It is currently 20 Feb 2024, 22:53
   
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: 28
Joined: 25 Dec 2016, 15:49
Has thanked: 33 times
Been thanked: 23 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 81 times
PBRO.txt
(37.07 KiB) Downloaded 81 times
ONE.txt
(98.01 KiB) Downloaded 83 times
ONC.txt
(39.01 KiB) Downloaded 83 times
J22.txt
(169.01 KiB) Downloaded 82 times
DMC.txt
(52.5 KiB) Downloaded 82 times
BRR.txt
(28.85 KiB) Downloaded 76 times
BRO.txt
(78.25 KiB) Downloaded 85 times
BRC.txt
(45.18 KiB) Downloaded 80 times
Topace
 
Posts: 28
Joined: 25 Dec 2016, 15:49
Has thanked: 33 times
Been thanked: 23 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: 68
Joined: 18 Jan 2020, 14:12
Has thanked: 44 times
Been thanked: 149 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 8 times
download.cmd.txt
Remove .txt from filename. Will start the script in Powershell
(26 Bytes) Downloaded 8 times
User avatar
Matse
 
Posts: 1
Joined: 03 Jan 2020, 08:08
Has thanked: 0 time
Been thanked: 1 time

Previous

Return to Magic Album

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 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 2 guests

Login Form