bug fixes.
This commit is contained in:
parent
04dabf4803
commit
e64501cdb7
@ -32,12 +32,18 @@ class BingXtk(WebService):
|
|||||||
@export('AME_PHON')
|
@export('AME_PHON')
|
||||||
def fld_phonetic_us(self):
|
def fld_phonetic_us(self):
|
||||||
seg = self._get_field('pronunciation')
|
seg = self._get_field('pronunciation')
|
||||||
return seg.get('AmE', u'') if seg else u''
|
phon = seg.get('AmE', u'') if seg else u''
|
||||||
|
if phon and phon[0:1] not in '/[':
|
||||||
|
return u'/{}/'.format(phon)
|
||||||
|
return u''
|
||||||
|
|
||||||
@export('BRE_PHON')
|
@export('BRE_PHON')
|
||||||
def fld_phonetic_uk(self):
|
def fld_phonetic_uk(self):
|
||||||
seg = self._get_field('pronunciation')
|
seg = self._get_field('pronunciation')
|
||||||
return seg.get('BrE', u'') if seg else u''
|
phon = seg.get('BrE', u'') if seg else u''
|
||||||
|
if phon and phon[0:1] not in '/[':
|
||||||
|
return u'/{}/'.format(phon)
|
||||||
|
return u''
|
||||||
|
|
||||||
def _fld_mp3(self, fld):
|
def _fld_mp3(self, fld):
|
||||||
seg = self._get_field('pronunciation')
|
seg = self._get_field('pronunciation')
|
||||||
|
|||||||
@ -32,12 +32,18 @@ class BingXtk(WebService):
|
|||||||
@export('AME_PHON')
|
@export('AME_PHON')
|
||||||
def fld_phonetic_us(self):
|
def fld_phonetic_us(self):
|
||||||
seg = self._get_field('pronunciation')
|
seg = self._get_field('pronunciation')
|
||||||
return seg.get('AmE', u'') if seg else u''
|
phon = seg.get('AmE', u'') if seg else u''
|
||||||
|
if phon and phon[0:1] not in '/[':
|
||||||
|
return u'/{}/'.format(phon)
|
||||||
|
return u''
|
||||||
|
|
||||||
@export('BRE_PHON')
|
@export('BRE_PHON')
|
||||||
def fld_phonetic_uk(self):
|
def fld_phonetic_uk(self):
|
||||||
seg = self._get_field('pronunciation')
|
seg = self._get_field('pronunciation')
|
||||||
return seg.get('BrE', u'') if seg else u''
|
phon = seg.get('BrE', u'') if seg else u''
|
||||||
|
if phon and phon[0:1] not in '/[':
|
||||||
|
return u'/{}/'.format(phon)
|
||||||
|
return u''
|
||||||
|
|
||||||
def _fld_mp3(self, fld):
|
def _fld_mp3(self, fld):
|
||||||
seg = self._get_field('pronunciation')
|
seg = self._get_field('pronunciation')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user