deckstats.net
You need to be logged in to do this.
The buttons above will open in a new window. Please return to this window after you have logged in. When you have logged in, click the Refresh Session button and then try again.

Author Topic: CSV exports from ManaBox  (Read 611 times)

GutterGod

  • New Member
  • *
  • Posts: 5
  • Karma: 0
  • Decks
CSV exports from ManaBox
« on: October 23, 2021, 04:31:46 pm »
Hey :)
I would love to see support for CSV files coming form ManaBox (mobile app). I attached a sample file. Thx in advance.

Nils

  • Hero Member
  • *****
  • Posts: 1792
  • Karma: 854
  • Decks
Re: CSV exports from ManaBox
« Reply #1 on: October 23, 2021, 04:47:42 pm »
Hi - the CSV file is actually almost in the right format except for one problem: Either the file has to use a different separator like semicolons or tabs, or card names with a comma in them (like Jolrael, Mwonvuli Recluse) need to be enclosed in quotation marks. Because of that it's not a valid CSV file, which is not really something we can fix on our end.

Could you try asking the authors of the app if they could fix their CSV export?

GutterGod

  • New Member
  • *
  • Posts: 5
  • Karma: 0
  • Decks
Re: CSV exports from ManaBox
« Reply #2 on: October 23, 2021, 09:29:34 pm »
Hey Nils, thanks for your answer. I will try to reach out to devs with your explanation. In the meantime I might be able to transform the files myself.

GutterGod

  • New Member
  • *
  • Posts: 5
  • Karma: 0
  • Decks
Re: CSV exports from ManaBox
« Reply #3 on: October 26, 2021, 09:54:37 am »
Using Notepad++ I am able to adjust the CSV in seconds. Both replacement actions can be saved in macros:

1. Adjust first line to deckstats standard
Code: [Select]
Search: (?-s)\A^.*$
Replace: card_name,set_name,Set name,collector_number,is_foil,amount,ManaBox ID,Scryfall ID,Purchase price,Misprint,Altered,condition,language,Purchase price currency

2. Adjust foil info
Code: [Select]
Search: (,normal,)|(,foil,)
Replace: (?1,0,)(?2,1,)

Soubi

  • New Member
  • *
  • Posts: 1
  • Karma: 0
  • Decks
Re: CSV exports from ManaBox
« Reply #4 on: January 02, 2023, 01:14:14 am »
The export format of Manabox changed, they now have a Rarity column.

I just deleted it with Libreoffice before applying the procedure from GutterGod