Can i do some magic with IFS to automatically do that?

|
smol_mazunki 2022-07-29 08:17:14
also tried Subs
smol_mazunki 2022-07-29 08:17:46
maybe it’s because it doesn’t recognize 2_English.srt as a valid match for the video?
alexmb7 2022-07-29 08:17:52
try ln -s sub Subs
smol_mazunki 2022-07-29 08:17:54
as in the name of the file is weird
alexmb7 2022-07-29 08:18:08
oh i get it
alexmb7 2022-07-29 08:18:17
it it like u say path
smol_mazunki 2022-07-29 08:18:20
yeah
alexmb7 2022-07-29 08:18:27
it just has bad example
smol_mazunki 2022-07-29 08:18:37
yeah xd
alexmb7 2022-07-29 08:18:38
cause of such i wont try it
smol_mazunki 2022-07-29 08:18:45
btw
smol_mazunki 2022-07-29 08:18:49
if i have like
smol_mazunki 2022-07-29 08:19:02
Subs/Episode_001/*.srt right
alexmb7 2022-07-29 08:19:34
whats the format of mpv multi srts specitying
smol_mazunki 2022-07-29 08:19:38
and i want Subs/Episode_001/2_English.srt:Subs/Episode_001/3_Spanish.srt:Subs/Episode_001/4_Portuguese.srt
smol_mazunki 2022-07-29 08:19:53
can i do some magic with IFS to automatically do that?
alexmb7 2022-07-29 08:20:03
yes
smol_mazunki 2022-07-29 08:20:04
alexmb7 2022-07-29 08:19:34
whats the format of mpv multi srts specitying

same as PATH i think

alexmb7 2022-07-29 08:20:44
ar=( *match* ) IFS=: f=${ar[*]}
alexmb7 2022-07-29 08:20:50
ar for arr f for flat
smol_mazunki 2022-07-29 08:21:41
alexmb7 2022-07-29 08:20:44
ar=( *match* ) IFS=: f=${ar[*]}

ah yeah

smol_mazunki 2022-07-29 08:21:51
nice
smol_mazunki 2022-07-29 08:22:03
mpv –sub-file=Subs/Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re]/2_English.srt –sub-file=Subs/Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re]/3_Spanish.srt Our.Flag.Means.Death.S01E01.1080p.WEBRip.x265-RARBG[eztv.re].mp4 works
smol_mazunki 2022-07-29 08:22:09
no : for –sub-file
alexmb7 2022-07-29 08:22:21
then try multi args
alexmb7 2022-07-29 08:22:23
like
smol_mazunki 2022-07-29 08:22:36
mpv –sub-file=Subs/episode_001/2_English.srt –sub-file=Subs/episode_001/3_Spanish.srt episode_001.mp4
smol_mazunki 2022-07-29 08:22:37
better
smol_mazunki 2022-07-29 08:23:12
i wanted to just, you know mpv –sub-file-paths=Subs/episode_001 episode_001.mp4
smol_mazunki 2022-07-29 08:23:15
but it doesn’t work idk why
alexmb7 2022-07-29 08:23:51
printf -v f –sub-file=%q *.srt
alexmb7 2022-07-29 08:23:53
try
alexmb7 2022-07-29 08:23:56
:))
alexmb7 2022-07-29 08:24:13
oh it may file i think
alexmb7 2022-07-29 08:24:26
maybe so:
|