mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-12-26 05:02:24 +00:00
Fix indentation
This commit is contained in:
parent
b69ded4115
commit
5b86781881
@ -103,8 +103,11 @@ class MediaAdminForm(ModelForm):
|
||||
self.download_data_openlibrary(isbn)
|
||||
|
||||
if self.cleaned_data['title']:
|
||||
self.cleaned_data['title'] = re.sub(r'\(AUT\) ',
|
||||
'', self.cleaned_data['title'])
|
||||
self.cleaned_data['title'] = re.sub(
|
||||
r'\(AUT\) ',
|
||||
'',
|
||||
self.cleaned_data['title']
|
||||
)
|
||||
|
||||
if self.cleaned_data['authors']:
|
||||
authors = self.cleaned_data['authors']
|
||||
@ -131,12 +134,18 @@ class MediaAdminForm(ModelForm):
|
||||
title_normalized.replace(' ', ''), )
|
||||
|
||||
if self.cleaned_data['subtitle']:
|
||||
self.cleaned_data['subtitle'] = re.sub(r'</span>',
|
||||
'', self.cleaned_data['subtitle'])
|
||||
self.cleaned_data['subtitle'] = re.sub(r'<span.*>',
|
||||
'', self.cleaned_data['subtitle'])
|
||||
self.cleaned_data['subtitle'] = re.sub(
|
||||
r'</span>',
|
||||
'',
|
||||
self.cleaned_data['subtitle']
|
||||
)
|
||||
self.cleaned_data['subtitle'] = re.sub(
|
||||
r'<span.*>',
|
||||
'',
|
||||
self.cleaned_data['subtitle']
|
||||
)
|
||||
start = self.cleaned_data['subtitle'].split(' ')[0] \
|
||||
.replace('.', '')
|
||||
.replace('.', '')
|
||||
|
||||
if start.isnumeric():
|
||||
side_identifier += " {:0>2}".format(start, )
|
||||
|
Loading…
Reference in New Issue
Block a user