fix max_votes

This commit is contained in:
j 2024-01-23 23:00:22 +01:00
parent e00d23e35c
commit e9a5bcb890
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ def max_votes():
data = cache.read_url(url).decode('utf-8', 'ignore')
votes = max([
int(v.replace(',', ''))
for v in re.compile('<span name="nv" data-value="(\d+)"').findall(data)
for v in re.compile('Votes</span>.*?([\d,]+)', re.DOTALL).findall(data)
])
return votes