hufman / vgmdb

A custom frontend for vgmdb, providing JSON and RDF
99 stars 12 forks source link

Search -> product 'aliases' returns a giant string as alias instead of an array #2

Closed knoobie closed 9 years ago

knoobie commented 9 years ago

Example: http://vgmdb.info/search/products?q=haruhi&format=json

"products": [ { "aliases": [ "Haruhi Suzumiya涼宮ハルヒHaruhi Suzumiya" ], "link": "product/1364", "names": {} }, { "aliases": [ "Suzumiya Haruhi no Chokuretsu涼宮ハルヒの直列Suzumiya Haruhi no Chokuretsu" ], "link": "product/2739", "names": {} },

knoobie commented 9 years ago

And no names? Just asking - I don't know your schema ;)

hufman commented 9 years ago

The search's product tab is slightly different than the rest of the search tabs, so I built a new parser for that tab in 274a2ae. It does look like it's not properly parsing out the additional names, so I'll have to fix that. Thanks1

hufman commented 9 years ago

There you go, fixed in 5629e78

knoobie commented 9 years ago

Working like a charm! Thank you :)