Fixing a change in GV voicemail transcripts
authorepage <eopage@byu.net>
Wed, 24 Jun 2009 12:17:55 +0000 (12:17 +0000)
committerepage <eopage@byu.net>
Wed, 24 Jun 2009 12:17:55 +0000 (12:17 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@363 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/gv_backend.py

index ef8b5db..620461a 100644 (file)
@@ -523,7 +523,7 @@ class GVDialer(object):
        _voicemailNumberRegex = re.compile(r"""<input type="hidden" class="gc-text gc-quickcall-ac" value="(.*?)"/>""", re.MULTILINE)
        _prettyVoicemailNumberRegex = re.compile(r"""<span class="gc-message-type">(.*?)</span>""", re.MULTILINE)
        _voicemailLocationRegex = re.compile(r"""<span class="gc-message-location">.*?<a.*?>(.*?)</a></span>""", re.MULTILINE)
-       _voicemailMessageRegex = re.compile(r"""<span class="gc-word-(.*?)">(.*?)</span>""", re.MULTILINE)
+       _voicemailMessageRegex = re.compile(r"""<span id="\d+-\d+" class="gc-word-(.*?)">(.*?)</span>""", re.MULTILINE)
 
        def _parse_voicemail(self, voicemailHtml):
                splitVoicemail = self._seperateVoicemailsRegex.split(voicemailHtml)