AlanOC91 / YGOPRODeck

Yu-Gi-Oh! Card Database and Deck Share Site
81 stars 4 forks source link

Incomplete response for set codes for cards with multiple rarities in the same set. #318

Open TheAnachronism opened 2 years ago

TheAnachronism commented 2 years ago

For example the card Raigeki is in the set Battle Pack: Epic Dawn (BP01) and if you request the card info for raigeki with: https://db.ygoprodeck.com/api/v7/cardinfo.php?name=raigeki you get for the card_sets multiple entries for the BP01 set, which is correct because it was released as Rare and Starfoil Rare. But if you now make this request: https://db.ygoprodeck.com/api/v7/cardsetsinfo.php?setcode=BP01-EN032 you only get the starfoil response and nothing about the rare one. It is quite annoying that even though they are different versions, they have the same setcode/printtag but I guess one has to combine that with the card rarity to get a unique identifier for a card version.

I don't know if there are any other cases like this but this is the first one that I encountered.

Rapi-shiny commented 1 year ago

Same problem with some King's Court and Magnificent Mavens cards, which have only one set (MAMA-EN104 for example) and/or the rarity listed is "URPR" and there is no associated code like "(ScR)" for a Secret Rare.