Skip to content

Commit

Permalink
python3-dev merge
Browse files Browse the repository at this point in the history
  • Loading branch information
evilhero committed Sep 14, 2020
1 parent e1e8e6e commit b67e1d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mylar/filechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def listFiles(self):
if runresults['process_status']:
run_status = runresults['process_status']

if any([run_status == 'success', run_status == 'match']):
if any([run_status == 'success', run_status == 'match', run_status == 'alt_match']):
if self.justparse:
comiclist.append({
'sub': runresults['sub'],
Expand Down
6 changes: 5 additions & 1 deletion mylar/rsscheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import random
from bs4 import BeautifulSoup
from io import StringIO
from pkg_resources import parse_version

import mylar
from mylar import db, logger, ftpsshup, helpers, auth32p, utorrent, helpers
Expand All @@ -49,7 +50,10 @@ def _start_newznab_attr(self, attrsD):
else:
context['newznab'][name] = value

feedparser._FeedParserMixin._start_newznab_attr = _start_newznab_attr
if parse_version(feedparser.__version__) < parse_version('6.0.0'):
feedparser._FeedParserMixin._start_newznab_attr = _start_newznab_attr
else:
feedparser.mixin._FeedParserMixin._start_newznab_attr = _start_newznab_attr

def torrents(pickfeed=None, seriesname=None, issue=None, feedinfo=None):
if pickfeed is None:
Expand Down

0 comments on commit b67e1d3

Please sign in to comment.