mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-27 00:47:10 +00:00
Generate side identifier
This commit is contained in:
parent
6cd7f883b9
commit
3d62973634
@ -99,6 +99,12 @@ class BedetequeScraper:
|
|||||||
if illustrator:
|
if illustrator:
|
||||||
data['author'].append(illustrator.group(1))
|
data['author'].append(illustrator.group(1))
|
||||||
|
|
||||||
print(data)
|
side_identifier = "{:.3} {:.3}".format(data['author'][0].upper(), data['title'].upper(),)
|
||||||
|
if data['subtitle']:
|
||||||
|
start = data['subtitle'].split(' ')[0].replace('.', '')
|
||||||
|
print("start:", start)
|
||||||
|
if start.isnumeric():
|
||||||
|
side_identifier += " {:0>2}".format(start,)
|
||||||
|
data['side_identifier'] = side_identifier
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user