Private GIT

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

fix news fully

parent aed7013c
Branches
Tags
No related merge requests found
...@@ -300,10 +300,6 @@ class CheckVersion(object): ...@@ -300,10 +300,6 @@ class CheckVersion(object):
if not news: if not news:
return '' return ''
dates = re.finditer(r'^####\s*(\d{4}-\d{2}-\d{2})\s*####$', news, re.M)
if not list(dates):
return news or ''
try: try:
last_read = datetime.datetime.strptime(sickbeard.NEWS_LAST_READ, '%Y-%m-%d') last_read = datetime.datetime.strptime(sickbeard.NEWS_LAST_READ, '%Y-%m-%d')
except Exception: except Exception:
...@@ -311,7 +307,7 @@ class CheckVersion(object): ...@@ -311,7 +307,7 @@ class CheckVersion(object):
sickbeard.NEWS_UNREAD = 0 sickbeard.NEWS_UNREAD = 0
gotLatest = False 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: if not gotLatest:
gotLatest = True gotLatest = True
sickbeard.NEWS_LATEST = match.group(1) sickbeard.NEWS_LATEST = match.group(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment