p_for_power
This commit is contained in:
parent
4e767b7268
commit
d4372d0595
16 changed files with 24 additions and 154 deletions
|
|
@ -21,7 +21,7 @@ https://textb.org/r/t_for_time_subtitles_5_ashley/
|
|||
data = requests.get(url).text
|
||||
parts = data.strip().split('##')
|
||||
print(url)
|
||||
prefix = '/srv/t_for_time/vo/' + url.split('/')[-2].split('subtitles_')[-1]
|
||||
prefix = '/srv/p_for_power/vo/' + url.split('/')[-2].split('subtitles_')[-1]
|
||||
for part in parts:
|
||||
part = part.strip().split('\n')
|
||||
if part:
|
||||
|
|
@ -86,7 +86,7 @@ def update_subtitles():
|
|||
wav = i.files.filter(selected=True)[0].data.path
|
||||
id = i.get('title').split('_')[0]
|
||||
batch = i.get('batch')[0][5:].lower().replace('-', '_').replace(' ', '')
|
||||
txt = '/srv/t_for_time/vo/%s_%s.txt' % (batch, id)
|
||||
txt = '/srv/p_for_power/vo/%s_%s.txt' % (batch, id)
|
||||
if os.path.exists(txt):
|
||||
print(i, wav, txt)
|
||||
subtitles = gentle2subtitles(align_text(txt, wav))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue