maddyblue / moggio

A multi-source music player in Go
ISC License
372 stars 24 forks source link

bandcamp artist #10

Open maddyblue opened 9 years ago

maddyblue commented 9 years ago

https://milieumusic.bandcamp.com/album/eufloria

doesn't show milieu as the artist

gouthamve commented 9 years ago

This is because the json we are reading off the band camp has given the artist to be null. I am attaching the complete json object given.

I think this will be solved if we used html scraper instead. Any thoughts?

{
  "featured_track_id": 3156687615,
  "new_desc_format": 1,
  "killed": null,
  "download_desc_id": null,
  "art_id": 164675170,
  "download_pref": 2,
  "new_date": "08 Jun 2010 00:02:39 GMT",
  "audit": 0,
  "minimum_price_nonzero": 12,
  "upc": null,
  "release_date": "20 Jul 2011 00:00:00 GMT",
  "artist": null,
  "require_email": null,
  "mod_date": "17 Jan 2015 02:08:00 GMT",
  "purchase_url": "http://store.milieu-music.com/index.php?route=product/product&product_id=50",
  "private": null,
  "title": "Eufloria",
  "about": "Official 2-disc soundtrack for the critically acclaimed independent video game Eufloria, containing all music used in the game, as well as additional tracks exclusive to this soundtrack and bonus hi-res desktop wallpaper images of the game's art. Recently reissued on a second limited edition of 117 copies, packaged in a white DVD case with full-color artwork.",
  "require_email_0": null,
  "id": 479506147,
  "purchase_title": "Buy Eufloria from the Milieu Music store.",
  "selling_band_id": 1375066986,
  "is_set_price": null,
  "publish_date": "08 Jun 2010 00:02:39 GMT",
  "band_id": 3691317980,
  "credits": "W/P by Brian Grainger. Images courtesy of Eufloria. This is Milieu Music number MMD008. \r\n\r\nGet the Euflorian Additions \"sister\" release, including a full hour of new Eufloria soundtrack, here:\r\nhttp://milieu.bandcamp.com/album/euflorian-additions\r\n\r\nwww.eufloria-game.com\r\nwww.milieu-music.com",
  "type": "album",
  "minimum_price": 12,
  "set_price": 12,
  "auto_repriced": null
}