It's fixed and the code from README should actually work
This commit is contained in:
@ -9,5 +9,5 @@ for filename in ../subs/*; do
|
|||||||
ffmpeg -i $in $out
|
ffmpeg -i $in $out
|
||||||
done
|
done
|
||||||
|
|
||||||
rm ../subs.*vtt
|
rm ../subs/*vtt
|
||||||
echo "convert.sh finished its job"
|
echo "convert.sh finished its job"
|
||||||
@ -5,8 +5,8 @@ mkdir ../original
|
|||||||
|
|
||||||
#download subs
|
#download subs
|
||||||
cd ../subs
|
cd ../subs
|
||||||
youtube-dl --write-auto-sub --yes-playlist --skip-download -o '%(playlist_index)s' $1
|
youtube-dl --write-auto-sub --yes-playlist --skip-download -o '%(playlist_index)s.%(ext)s' $1
|
||||||
|
|
||||||
# download videos
|
# download videos
|
||||||
cd ../original
|
cd ../original
|
||||||
youtube-dl -f 22 --yes-playlist -o '%(playlist_index)s' $1
|
youtube-dl -f 22 --yes-playlist -o '%(playlist_index)s.%(ext)s' $1
|
||||||
@ -58,7 +58,7 @@ def write_list_rip(data, mode):
|
|||||||
file_rip.write('#!/bin/bash\n')
|
file_rip.write('#!/bin/bash\n')
|
||||||
for (i, d) in enumerate(data):
|
for (i, d) in enumerate(data):
|
||||||
if (d):
|
if (d):
|
||||||
name = d['fname'][:2] # get a name without an extension
|
name = d['fname'].split('.')[0] # get a name without an extension
|
||||||
outname ="../out/{}-{:0>2}.mp4".format(name, i)
|
outname ="../out/{}-{:0>2}.mp4".format(name, i)
|
||||||
|
|
||||||
file_list.write("file '{}'\n".format(outname))
|
file_list.write("file '{}'\n".format(outname))
|
||||||
|
|||||||
Reference in New Issue
Block a user