app.service("cardService", function() {
  this.getCardUrl = function(name) {
    name = this.sanitizeName_(name);
    return "http://gatherer.wizards.com/Pages/Card/Details.aspx?name=" + name;
  };
  
  this.getCardImage = function(name) {
    name = this.sanitizeName_(name);
    return "http://gatherer.wizards.com/Handlers/Image.ashx?name=" + name + "&type=card&.jpg";
  };
  
  this.sanitizeName_ = function(name) {
    return name.replace("\u00C6", "Ae");
  }
});
app.service("cardService", function() {
  this.getCardUrl = function(name) {
    name = this.sanitizeName_(name);
    return "http://magic.tcgplayer.com/db/magic_single_card.asp?cn=" + name;
  };
  
  this.getCardImage = function(name) {
    name = this.sanitizeName_(name);
    return "http://gatherer.wizards.com/Handlers/Image.ashx?name=" + name + "&type=card&.jpg";
  };
  
  this.sanitizeName_ = function(name) {
    return name.replace("\u00C6", "Ae");
  }
});
Change links to TCGplayer links
Change links to TCGplayer links
