Пример #1
0
 def name(self):
     soup = self.soup
     title = soup.find(class_='manga-subject').div.text.strip()
     if not title:
         raise Exception('No title')
     artist = get_artist(soup)
     if artist:
         self.customWidget.artist = artist
     else:
         artist = 'N/A'
     title = fix_title(self, title, artist)
     return title
Пример #2
0
 def name(self):
     artist = get_artist(self.soup)
     title = self.soup.find('meta', {'name': 'subject'})['content'].strip()
     return fix_title(self, title, artist)
 def name(self):
     title = get_title(self.soup)
     artist = get_artist(self.soup)
     title = fix_title(self, title, artist)
     return title