Skip to content

Commit f53a833

Browse files
committed
soccer indicate running match fix #37
1 parent af4354c commit f53a833

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

videoText.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,12 @@ def extractPage(self, page: int, sub=1):
119119
# which are in fact numbers in disguise. The 690s (NBA) of ARD-Text have that.
120120
# so I use bs4 for less boilerplate code.
121121
for x in self.validateSoup(peas):
122+
foundRunningMatch = 'fgm bgb' in x.html
122123
addline = self.linefilter( \
123124
BeautifulSoup(x.html, features="html.parser").text.strip() \
124125
)
126+
if foundRunningMatch:
127+
addline = re.sub(r'(\d+\:\d+)', r'\1 (läuft) ', addline)
125128
self.lines.append(addline)
126129
#
127130
# gather info like 'Thema xyz on page 123'

0 commit comments

Comments
 (0)