From 4d0e75d8069db20e700dd2be3455d3eaa45f51dc Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Thu, 5 Sep 2024 11:55:17 +0200 Subject: [PATCH] Add url in check detail output --- pkg/serra/check.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/serra/check.go b/pkg/serra/check.go index dc74962..8a62ce7 100644 --- a/pkg/serra/check.go +++ b/pkg/serra/check.go @@ -59,13 +59,13 @@ func checkCards(cards []string, detail bool) error { // If Card is in collection, print yes. if len(co) >= 1 { c := co[0] - fmt.Printf("PRESENT %s \"%s\" (%s, %.2f%s)\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()) + fmt.Printf("PRESENT %s \"%s\" (%s, %.2f%s) %s\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency(), strings.Replace(c.ScryfallURI, "?utm_source=api", "", 1)) continue } else { if detail { // fetch card from scyrfall if --detail was given c, _ := fetchCard(setName, collectorNumber) - fmt.Printf("MISSING %s \"%s\" (%s, %.2f%s)\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()) + fmt.Printf("MISSING %s \"%s\" (%s, %.2f%s) %s\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency(), strings.Replace(c.ScryfallURI, "?utm_source=api", "", 1)) } else { // Just print, the card name was not found fmt.Printf("MISSING \"%s\"\n", card)