mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-26 21:27:11 +00:00
Subtitles don't need <span> fields
This commit is contained in:
parent
5b2dd84115
commit
0548e34568
@ -121,6 +121,10 @@ class MediaAdminForm(ModelForm):
|
|||||||
title_normalized.replace(' ', ''), )
|
title_normalized.replace(' ', ''), )
|
||||||
|
|
||||||
if self.cleaned_data['subtitle']:
|
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'])
|
||||||
start = self.cleaned_data['subtitle'].split(' ')[0] \
|
start = self.cleaned_data['subtitle'].split(' ')[0] \
|
||||||
.replace('.', '')
|
.replace('.', '')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user