Private GIT

Skip to content
Snippets Groups Projects
Commit 420d5437 authored by miigotu's avatar miigotu
Browse files

fix news fully

parent bbc163bc
No related branches found
No related tags found
No related merge requests found
......@@ -302,10 +302,6 @@ class CheckVersion(object):
if not news:
return ''
dates = re.finditer(r'^####\s*(\d{4}-\d{2}-\d{2})\s*####$', news, re.M)
if not list(dates):
return news or ''
try:
last_read = datetime.datetime.strptime(sickbeard.NEWS_LAST_READ, '%Y-%m-%d')
except Exception:
......@@ -313,7 +309,7 @@ class CheckVersion(object):
sickbeard.NEWS_UNREAD = 0
gotLatest = False
for match in dates:
for match in re.finditer(r'^####\s*(\d{4}-\d{2}-\d{2})\s*####', news, re.M):
if not gotLatest:
gotLatest = True
sickbeard.NEWS_LATEST = match.group(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment