Documentation
¶
Overview ¶
Magic. This plugin will download magic cards from scryfall. As a fallback it will use the gatherer website! (http://gatherer.wizards.com/)
This package contains the API and glue which let's the plugins work.
Magic. This plugin will download magic cards from http://wowcards.info
Card images can be found on a line like this:
<img id="cardimage" width="312" height="440" class="img-rounded lazy swapImage {src: '/scans/timewalkers/en/3-back.jpg'}" style="border: 1px solid black;" alt="Barador, Wildhammer Timewalker" title="Barador, Wildhammer Timewalker" data-original="/scans/timewalkers/en/3_Barador-Wildhammer-Timewalker.jpg" src="/scans/no-scan-upperdeck.jpg" />
data-original is what we are after.
Index ¶
- Constants
- Variables
- func Autodetect(name, input string) []string
- func GetBack(game string) string
- func GetImageName(game, name string) string
- func Handle(err error)
- func Identify(line string) string
- func Plugins() map[string]*Plugin
- func RegisterBack(game string, link string)
- func RegisterCacheImageName(game string, function func(string) string)
- func RegisterHeaders(game string, headers []string)
- func RegisterPlugin(game string, function func(string, string, bool) string)
- func Run(game, name, input string) string
- func SetImageName(game, name, imagename string)
- type MagicCard
- type Plugin
Constants ¶
View Source
const Cardfight = "cardfight"
View Source
const Custom = "custom"
View Source
const Magic = "magic"
View Source
const (
None = "none"
)
View Source
const Pokemon = "pokemon"
View Source
const Text = "text"
View Source
const Wow = "wow"
View Source
const Yugioh = "yugioh"
Variables ¶
View Source
var DeckerCachePath string
Functions ¶
func Autodetect ¶
func GetImageName ¶
func RegisterBack ¶
func RegisterCacheImageName ¶
func RegisterHeaders ¶
func SetImageName ¶
func SetImageName(game, name, imagename string)
Types ¶
Click to show internal directories.
Click to hide internal directories.