LHpi
LHpi is LordHelmchen's price import library and sitescripts for Magic Album.
LHpi is a collection of lua scripts to be used by Magic Album, but is not part of Magic Album and thus updated and supported seperately.
Discuss, ask for help and leave feedback at the corresponding Forum Thread.
Contents |
Sitescripts
The sitescripts are the actual price import scripts, written in lua. They use the Magic Album Lua API and #the LHpi library to query and parse a website and import the price information into Magic Album. Most of the program logic is contained in the library, so the sitescript needs to hold only site-specific information and a few functions that are not easily generalizable.
Sitescripts will need to provide
- a table of supported sets with language and url infix fields
- a table of supported languages with url infix field
- a function to build urls
- a function to parse the html raw data into data fields via regular expressions (and the regex itself)
- optionally, it can also provide
- functions for site specific data manipulation, in case the site has some strange formatting the library does not understand
- a one-to-one name map for names that differ between the site and Magic Album's database
- tables to map card names to picture versions, in case the one-to-one map and LHpi's defaults are not sufficient
- a table with expected card count numbers for LHpi's sanity checks.
magicuniverse.de
mtgmintcard.com
magic.tcgplayer.com PriceGuide
trader-online.de
The LHpi Library
The LHpi library is a lua script that uses the Magic Album Lua API and can be used by LHpi sitesccripts. Updated for Magic Album 1.5.2.264