Skip to content

Commit

Permalink
New plugin: Cardfight!! Vanguard
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandeaual committed May 10, 2020
1 parent 23dcb66 commit 5439b0c
Show file tree
Hide file tree
Showing 15 changed files with 1,127 additions and 89 deletions.
105 changes: 62 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,28 @@ Inspired by [decker](https://github.com/Splizard/decker) and [Frogtown](https://

* Generate a Tabletop Simulator deck with thumbnail from an existing website or file.

* Import from the following website:

* <https://scryfall.com>
* <https://deckstats.net>
* <https://tappedout.net>
* <https://deckbox.org>
* <https://www.mtggoldfish.com>
* <https://www.moxfield.com>
* <https://manastack.com>
* <https://archidekt.com>
* <https://www.frogtown.me>
* <https://www.cubetutor.com>
* <https://cubecobra.com>
* <https://ygoprodeck.com>
* <https://yugiohtopdecks.com>

* Import from the following files:

* `*.dec`
* `*.cod`
* `*.ydk`
* `*.ptcgo`
* Supports the following games:

* Available as a command-line application and a GUI (built using [Fyne](https://fyne.io/)).
* Magic the Gathering

* Ability to customize the back of the cards.
* Import from the following website:

* No external tool required. You just need to run the provided executable.
* <https://scryfall.com>
* <https://deckstats.net>
* <https://tappedout.net>
* <https://deckbox.org>
* <https://www.mtggoldfish.com>
* <https://www.moxfield.com>
* <https://manastack.com>
* <https://archidekt.com>
* <https://www.frogtown.me>
* <https://www.cubetutor.com>
* <https://cubecobra.com>

* Supports the following games:
* Import from the following file formats:

* Magic the Gathering
* `*.dec`
* `*.cod`

* Support for transform and meld cards. Implemented using [states](https://berserk-games.com/knowledgebase/creating-states/) (press 1 or 2 to switch between states).

Expand All @@ -56,10 +46,36 @@ Inspired by [decker](https://github.com/Splizard/decker) and [Frogtown](https://

* Yu-Gi-Oh!

* Import from the following website:

* <https://ygoprodeck.com>
* <https://yugiohtopdecks.com>

* Import from the following file formats:

* `*.ydk`

* Support for Master Duel (standard) and Rush Duel decks.

* Pokémon TCG

* Import from the following file formats:

* `*.ptcgo`

* Cardfight!! Vanguard

* Import from the following website:

* <https://en.cf-vanguard.com>
* <https://cf-vanguard.com>

* Available as a command-line application and a GUI (built using [Fyne](https://fyne.io/)).

* Ability to customize the back of the cards.

* No external tool required. You just need to run the provided executable.

* Template mode

By default, each card will have it's own image, retrieved from [Scryfall](https://scryfall.com/), [YGOPRODeck](https://db.ygoprodeck.com/) or <https://pokemontcg.io/>. \
Expand Down Expand Up @@ -110,31 +126,34 @@ Usage: tts-deckconverter TARGET
Flags:
-back string
card back (cannot be used with "-backURL"):
card back (cannot be used with "-backURL"):
-backURL string
custom URL for the card backs (cannot be used with "-back")
custom URL for the card backs (cannot be used with "-back")
-chest string
save to the Tabletop Simulator chest folder (use "/" for the root folder) (cannot be used with "-output")
save to the Tabletop Simulator chest folder (use "/" for the root folder) (cannot be used with "-output")
-compact
don't indent the resulting JSON file
don't indent the resulting JSON file
-debug
enable debug logging
enable debug logging
-mode string
available modes: mtg, pkm, ygo
available modes: mtg, pkm, ygo, cfv
-option value
plugin specific option (can have multiple)
mtg:
quality (enum): image quality (default: large)
rulings (bool): add the rulings to each card description (default: false)
pkm:
quality (enum): image quality (default: hires)
ygo: no option available
plugin specific option (can have multiple)
mtg:
quality (enum): image quality (default: normal)
rulings (bool): add the rulings to each card description (default: false)
pkm:
quality (enum): image quality (default: hires)
ygo:
format (enum): duel format (default: Master Duel)
cfv:
lang (enum): Card language (default: en)
-output string
destination folder (defaults to the current folder) (cannot be used with "-chest")
destination folder (defaults to the current folder) (cannot be used with "-chest")
-template
download each images and create a deck template instead of referring to each image individually
download each images and create a deck template instead of referring to each image individually
-version
display the version information
display the version information
```

### Usage examples
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ require (
fyne.io/fyne v1.2.4-0.20200406152143-ddca854edfa1
github.com/BlueMonday/go-scryfall v0.1.1-0.20200402223337-f57759e5365f
github.com/PokemonTCG/pokemon-tcg-sdk-go v0.0.0-20181002102828-dc3327e03e0d
github.com/antchfx/htmlquery v1.2.2
github.com/antchfx/xpath v1.1.5 // indirect
github.com/antchfx/htmlquery v1.2.3
github.com/antchfx/xpath v1.1.7
github.com/disintegration/imaging v1.6.2
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/koffeinsource/go-imgur v0.2.0
github.com/stretchr/testify v1.5.1
go.uber.org/zap v1.14.1
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd
)
23 changes: 17 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fyne.io/fyne v1.2.4-0.20200406152143-ddca854edfa1 h1:I84UzYCMA1tNF8Y7wxz+1Xqw1Wp
fyne.io/fyne v1.2.4-0.20200406152143-ddca854edfa1/go.mod h1:arxNV4EVMSwEq5lKrKP14xfhPAjoXYxoSRAqpQGjVBc=
github.com/BlueMonday/go-scryfall v0.1.1-0.20200402223337-f57759e5365f h1:zOKhxNMXpbjvihhGV8JnXHbHZ/IWlifoFicPRVD4kyo=
github.com/BlueMonday/go-scryfall v0.1.1-0.20200402223337-f57759e5365f/go.mod h1:8lDLilohikGawCpspnqY6pknEr+nccwHdwvLYZAzrEc=
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9/go.mod h1:7uhhqiBaR4CpN0k9rMjOtjpcfGd6DG2m04zQxKnWQ0I=
Expand All @@ -10,10 +11,14 @@ github.com/PokemonTCG/pokemon-tcg-sdk-go v0.0.0-20181002102828-dc3327e03e0d/go.m
github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c=
github.com/antchfx/htmlquery v1.2.2 h1:exe4hUStBqXdRZ+9nB7EYA+W2zfIHIq3rRFpChh+VSk=
github.com/antchfx/htmlquery v1.2.2/go.mod h1:MS9yksVSQXls00iXkiMqXr0J+umL/AmxXKuP28SUJM8=
github.com/antchfx/xpath v1.1.4 h1:naPIpjBGeT3eX0Vw7E8iyHsY8FGt6EbGdkcd8EZCo+g=
github.com/antchfx/xpath v1.1.4/go.mod h1:Yee4kTMuNiPYJ7nSNorELQMr1J33uOpXDMByNYhvtNk=
github.com/antchfx/htmlquery v1.2.3 h1:sP3NFDneHx2stfNXCKbhHFo8XgNjCACnU/4AO5gWz6M=
github.com/antchfx/htmlquery v1.2.3/go.mod h1:B0ABL+F5irhhMWg54ymEZinzMSi0Kt3I2if0BLYa3V0=
github.com/antchfx/xpath v1.1.5 h1:pQWeT0Xuv0gR7bDXXuoLAA7ztm9dxb19tTdxdxJR1Bo=
github.com/antchfx/xpath v1.1.5/go.mod h1:Yee4kTMuNiPYJ7nSNorELQMr1J33uOpXDMByNYhvtNk=
github.com/antchfx/xpath v1.1.6 h1:6sVh6hB5T6phw1pFpHRQ+C4bd8sNI+O58flqtg7h0R0=
github.com/antchfx/xpath v1.1.6/go.mod h1:Yee4kTMuNiPYJ7nSNorELQMr1J33uOpXDMByNYhvtNk=
github.com/antchfx/xpath v1.1.7 h1:RgnAdTaRzF4bBiTqdDA7ZQ7IU8ivc72KSTf3/XCA/ic=
github.com/antchfx/xpath v1.1.7/go.mod h1:Yee4kTMuNiPYJ7nSNorELQMr1J33uOpXDMByNYhvtNk=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -37,12 +42,15 @@ github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/jackmordaunt/icns v0.0.0-20181231085925-4f16af745526/go.mod h1:UQkeMHVoNcyXYq9otUupF7/h/2tmHlhrS2zw7ZVvUqc=
github.com/josephspurrier/goversioninfo v0.0.0-20200309025242-14b0ab84c6ca/go.mod h1:eJTEwMjXb7kZ633hO3Ln9mBUCOjX2+FlTljvpl9SYdE=
github.com/k4s/phantomgo v0.0.0-20161104020322-11963773aa04 h1:tA/Xc0VnJtHIdxAML0WraKG+ErOYVgJ6oDcuxOloZOM=
github.com/k4s/phantomgo v0.0.0-20161104020322-11963773aa04/go.mod h1:YWxksSger0gUVO0tKEY/mVkyBTPoKAf4KX/S8Vt7ndc=
github.com/k4s/webrowser v0.0.0-20160107091637-934d526d0f27 h1:YBHxM4fmxQghvs3Ty/rQIPnY+tdCFheIOMj/h0Zw0A8=
github.com/k4s/webrowser v0.0.0-20160107091637-934d526d0f27/go.mod h1:kd1f/k6xHQrfwfszgeiZklsPzBNJJj/el6cjp86YowQ=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/koffeinsource/go-imgur v0.2.0 h1:Jx72knPUMN1nZYAxHR15jTN4jFQFurIkBSD6LTsasgc=
github.com/koffeinsource/go-imgur v0.2.0/go.mod h1:Bu1+VlbYv/5/rCFihEBX2IVK9WTga0AKkWFM9CoLDCA=
github.com/koffeinsource/go-klogger v0.1.1 h1:FImHHVcDwEV4Ze3uOtRmBTQdJdzuBHtrvR4B8ssKkbw=
github.com/koffeinsource/go-klogger v0.1.1/go.mod h1:oqHKXZOZt4uktar7WIYuEyWJRRlrkRSX+Uj1DWGZ79I=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
Expand Down Expand Up @@ -98,6 +106,7 @@ golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKG
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.2.0 h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
Expand All @@ -106,14 +115,17 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e h1:3G+cUijn7XD+S4eJFddp53Pv7+slrESplyjG25HgL+k=
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd h1:QPwSajcTUrFriMF1nJ3XzgoqakqQEsnZf9LdXdi2nkI=
golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775 h1:TC0v2RSO1u2kn1ZugjrFXkRZAEaqMN/RW+OTZkBzmLE=
golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f h1:gWF768j/LaZugp8dyS4UwsslYCYz9XgFxvlgsn0n9H8=
golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
Expand All @@ -122,19 +134,18 @@ golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5 h1:hKsoRgsbwY1NafxrwTs+k64bikrLBkAgPir1TNCj3Zs=
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.0.0-20200328031815-3db5fc6bac03 h1:XpToik3MpT5iW3iHgNwnh3a8QwugfomvxOlyDnaOils=
golang.org/x/tools v0.0.0-20200328031815-3db5fc6bac03/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM=
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
16 changes: 8 additions & 8 deletions plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package deckconverter

import (
"log"
"sort"

"github.com/jeandeaual/tts-deckconverter/plugins"
"github.com/jeandeaual/tts-deckconverter/plugins/mtg"
"github.com/jeandeaual/tts-deckconverter/plugins/pkm"
"github.com/jeandeaual/tts-deckconverter/plugins/vanguard"
"github.com/jeandeaual/tts-deckconverter/plugins/ygo"
)

Expand All @@ -18,15 +18,19 @@ func init() {
mtg.MagicPlugin,
pkm.PokemonPlugin,
ygo.YGOPlugin,
vanguard.VanguardPlugin,
)

registerURLHandlers()
registerFileExtHandlers()
}

// Plugins is the list of registered deckconverter plugins.
// Plugins is the list of registered plugins.
var Plugins map[string]plugins.Plugin

// pluginIDs is the ordered list of registered plugins.
var pluginIDs []string

// URLHandlers are all the registered URL handlers.
var URLHandlers []plugins.URLHandler

Expand All @@ -36,6 +40,7 @@ var FileExtHandlers map[string]plugins.FileHandler
func registerPlugins(plugins ...plugins.Plugin) {
for _, plugin := range plugins {
Plugins[plugin.PluginID()] = plugin
pluginIDs = append(pluginIDs, plugin.PluginID())
}
}

Expand Down Expand Up @@ -65,10 +70,5 @@ func registerFileExtHandlers() {

// AvailablePlugins lists the registered plugins, sorted.
func AvailablePlugins() []string {
keys := make([]string, 0, len(Plugins))
for key := range Plugins {
keys = append(keys, key)
}
sort.Strings(keys)
return keys
return pluginIDs
}
17 changes: 0 additions & 17 deletions plugins/mtg/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"regexp"
"strings"

scryfall "github.com/BlueMonday/go-scryfall"
"github.com/antchfx/htmlquery"

"github.com/jeandeaual/tts-deckconverter/log"
Expand Down Expand Up @@ -36,22 +35,6 @@ func (p magicPlugin) PluginName() string {
return p.name
}

func (p magicPlugin) SupportedLanguages() []string {
return []string{
string(scryfall.LangEnglish),
string(scryfall.LangSpanish),
string(scryfall.LangFrench),
string(scryfall.LangGerman),
string(scryfall.LangItalian),
string(scryfall.LangPortuguese),
string(scryfall.LangJapanese),
string(scryfall.LangKorean),
string(scryfall.LangRussian),
string(scryfall.LangSimplifiedChinese),
string(scryfall.LangTraditionalChinese),
}
}

func (p magicPlugin) AvailableOptions() plugins.Options {
return plugins.Options{
"quality": plugins.Option{
Expand Down
4 changes: 0 additions & 4 deletions plugins/pkm/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ func (p pokemonPlugin) PluginName() string {
return p.name
}

func (p pokemonPlugin) SupportedLanguages() []string {
return []string{"en"}
}

func (p pokemonPlugin) AvailableOptions() plugins.Options {
return plugins.Options{
"quality": plugins.Option{
Expand Down
2 changes: 0 additions & 2 deletions plugins/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ type Plugin interface {
PluginID() string
// PluginName returns the name of the plugin.
PluginName() string
// SupportedLanguages returns the list of languages supported by the plugin.
SupportedLanguages() []string
// URLHandlers returns the list of URLs supported by the plugin and their
// parsing functions.
URLHandlers() []URLHandler
Expand Down
Loading

0 comments on commit 5439b0c

Please sign in to comment.