forked from rho_n/hpr_generator
Update media_path MACRO for archive.org transciption files
The whisper transcription files are stored one directory deeper on archive.org. Add checks and correct path when passed txt, srt, or vtt media_type.
This commit is contained in:
parent
a213efa695
commit
d437e66f0e
@ -59,6 +59,12 @@
|
|||||||
<!--% media_folder = "local/" %-->
|
<!--% media_folder = "local/" %-->
|
||||||
<!--% END %-->
|
<!--% END %-->
|
||||||
<!--% IF media_baseurl %-->
|
<!--% IF media_baseurl %-->
|
||||||
|
<!--% transcription_types = "txt srt vtt" %-->
|
||||||
|
<!--% USE String(transcription_types) %-->
|
||||||
|
<!--% USE String(media_baseurl) %-->
|
||||||
|
<!--% IF transcription_types.search(media_type) && media_baseurl.search('archive.org') %-->
|
||||||
|
<!--% media_baseurl = "${media_baseurl}hpr\$eps_id/hpr" %-->
|
||||||
|
<!--% END %-->
|
||||||
<!--% media_folder = "" %-->
|
<!--% media_folder = "" %-->
|
||||||
<!--% media_baseurl = media_baseurl.replace('\$eps_id', zero_pad_left(episode_id)) %-->
|
<!--% media_baseurl = media_baseurl.replace('\$eps_id', zero_pad_left(episode_id)) %-->
|
||||||
<!--% END %-->
|
<!--% END %-->
|
||||||
|
Loading…
Reference in New Issue
Block a user