Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
change how to navigate on rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
strikersan committed Aug 1, 2017
1 parent bc112cb commit d94f121
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions result.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def __init__(self, url_RSS, show_name, show_ep, quality):
def Processing(self):
self.url_RSS = self.url_RSS.replace('%title%', self.show_name.replace(' ', '+').replace(':', '%3A').replace(';', '%3B'))
offset = 1
tracker_feed = feedparser.parse(self.url_RSS)
navigable = bool(re.search('%pagenumber%', self.url_RSS))
splitedUrl= self.url_RSS.split('%pagenumber%')
tracker_feed = feedparser.parse(splitedUrl[0]+str(offset)+splitedUrl[1])
while tracker_feed.entries:
self.url_RSS = self.url_RSS.split()[0] + str(offset) + self.url_RSS.split()[1]
tracker_feed = feedparser.parse(self.url_RSS)
tracker_feed = feedparser.parse(splitedUrl[0]+str(offset)+splitedUrl[1])
offset += 1
for i in tracker_feed.entries:
animeinfo = trackma.AnimeInfoExtractor.AnimeInfoExtractor(i.title)
Expand Down

0 comments on commit d94f121

Please sign in to comment.