Mholloway has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/386040 )

Change subject: Fix pronunciation parsing
......................................................................

Fix pronunciation parsing

Change-Id: I941e17a6a8d81d804d959dc1fa2e5c73ca2e3edf
---
M lib/parseProperty.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/40/386040/1

diff --git a/lib/parseProperty.js b/lib/parseProperty.js
index 4e49ac5..b5c7d6e 100644
--- a/lib/parseProperty.js
+++ b/lib/parseProperty.js
@@ -21,7 +21,7 @@
 }
 
 function parsePronunciation(doc, page) {
-    const mediaLinkAnchorAfterIPA = 'span.IPA+small.metadata 
a[rel=mw:MediaLink]';
+    const mediaLinkAnchorAfterIPA = 'span.IPA+small a[rel=mw:MediaLink]';
     const pronunciationAnchor = doc.querySelector(mediaLinkAnchorAfterIPA);
     const url = pronunciationAnchor && 
pronunciationAnchor.getAttribute('href');
     page.pronunciation = url && { url };

-- 
To view, visit https://gerrit.wikimedia.org/r/386040
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I941e17a6a8d81d804d959dc1fa2e5c73ca2e3edf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to