mtg-playerinfo 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtg-playerinfo",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A simple NPM module and CLI tool to pull Magic: The Gathering player data from various sources",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -16,8 +16,8 @@ class MeleeFetcher {
16
16
  parseHtml(html, url, username) {
17
17
  const $ = cheerio.load(html);
18
18
  const name = $('span[style*="font-size: xx-large"]').first().text().trim() || username;
19
- const photo = $('img.m-auto').attr('src');
20
-
19
+ const photo = $('.profile-button-column img').first().attr('src') || $('img.m-auto').attr('src');
20
+
21
21
  const data = {
22
22
  source: 'Melee',
23
23
  url,