

def parseSite(self):
    print(('Beginning EatManga check: %s' % self.manga))
    url = ('http://eatmanga.com/Manga-Scan/%s' % self.fixFormatting(self.manga))
    if self.verbose_FLAG:
        print(url)
    source = getSourceCode(url, self.proxy)
    self.chapters = EatManga.re_getChapters.findall(source)
    self.chapters.reverse()
    if (not self.chapters):
        raise self.MangaNotFound
    lowerRange = 0
    for i in range(0, len(self.chapters)):
        if ('upcoming' in self.chapters[i][0]):
            del self.chapters[i]
            continue
        self.chapters[i] = (('http://eatmanga.com%s' % self.chapters[i][0]), self.chapters[i][2], self.chapters[i][2])
        if (not self.auto):
            print(('(%i) %s' % ((i + 1), self.chapters[i][1])))
        elif (self.lastDownloaded == self.chapters[i][1]):
            lowerRange = (i + 1)
    upperRange = len(self.chapters)
    if (not self.auto):
        self.chapters_to_download = self.selectChapters(self.chapters)
    else:
        if (lowerRange == upperRange):
            raise self.NoUpdates
        for i in range(lowerRange, upperRange):
            self.chapters_to_download.append(i)
    self.isPrependMangaName = True
    return

dataset/ETHPy150Open jiaweihli/manga_downloader/src/parsers/eatmanga.py EatManga.parseSite/original