mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Find both 'Translator' and 'TranslatorS', except in Russian.
This commit is contained in:
parent
487b6067e9
commit
ec956c4115
1 changed files with 5 additions and 1 deletions
|
|
@ -199,7 +199,11 @@ class FanFicsMeAdapter(BaseSiteAdapter):
|
|||
self.story.setMetadata('authorId','0')
|
||||
|
||||
# translator(s)
|
||||
content = get_meta_content(u'Переводчики')
|
||||
content = get_meta_content(u'Переводчик')
|
||||
if not content:
|
||||
# Переводчик vs Переводчи is 'Translator' vs 'TranslatorS'
|
||||
content = get_meta_content(u'Переводчи')
|
||||
logger.debug(content)
|
||||
if content:
|
||||
for a in content.find_all('a', class_='user'):
|
||||
self.story.addToList('translatorsId',a['href'].split('/user')[-1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue