mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 23:27:09 +00:00
The name of an author is the second word (if no ,)
This commit is contained in:
parent
3d62973634
commit
f082716895
@ -99,7 +99,10 @@ class BedetequeScraper:
|
|||||||
if illustrator:
|
if illustrator:
|
||||||
data['author'].append(illustrator.group(1))
|
data['author'].append(illustrator.group(1))
|
||||||
|
|
||||||
side_identifier = "{:.3} {:.3}".format(data['author'][0].upper(), data['title'].upper(),)
|
author_name = data['author'][0]
|
||||||
|
if ',' not in author_name:
|
||||||
|
author_name = author_name.split(' ')[1]
|
||||||
|
side_identifier = "{:.3} {:.3}".format(author_name.upper(), data['title'].upper(),)
|
||||||
if data['subtitle']:
|
if data['subtitle']:
|
||||||
start = data['subtitle'].split(' ')[0].replace('.', '')
|
start = data['subtitle'].split(' ')[0].replace('.', '')
|
||||||
print("start:", start)
|
print("start:", start)
|
||||||
|
Loading…
Reference in New Issue
Block a user