def parseSite(self):
		print(self.manga % 'Beginning MangaPanda check: %s')
		
		url = 'http://www.mangapanda.com/alphabetical'

		source = getSourceCode(url, self.proxy)
		allSeries = MangaPanda.re_getSeries.findall(source[source.find('series_col'):])

		keyword = self.selectFromResults(allSeries)

		url = 'http://www.mangapanda.com%s' % keyword
		source = getSourceCode(url, self.proxy)

		self.chapters = MangaPanda.re_getChapters.findall(source)
		
		lowerRange = 0
	
		for i in range(0, len(self.chapters)):
			self.chapters[i] = ('http://www.mangapanda.com%s' % self.chapters[i][0], '%s%s' % (self.chapters[i][1], self.chapters[i][2]), self.chapters[i][1])
			if (not self.auto):
				print('(%i) %s' % (i + 1, self.chapters[i][1]))
			else:
				if (self.lastDownloaded == self.chapters[i][1]):
					lowerRange = i + 1
		
		# this might need to be len(self.chapters) + 1, I'm unsure as to whether python adds +1 to i after the loop or not
		upperRange = len(self.chapters)
		self.isPrependMangaName = False				
		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/mangapanda.py/MangaPanda.parseSite/swapped operands of `%`