I have a number of video files and some have subtitles. I would like to be able to see whether subtitles exist, and the language (preferably)_ in a column. Can this be done in XYPlorer?
TIA
Steven
Subtitles
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Subtitles
Use a custom column with a script:
or as a complete snippet:
Code: Select all
$mediaInfo = "<xydrive>\Tools\@Command Line Tools\MediaInfo\MediaInfo.exe";
$subtitles = trim(regexreplace(runret("""$mediaInfo"" ""--Output=Text;%ID%:$if(%Language/String%, %Language/String%) | "" ""<cc_item>"""), "([ |]*)$"), <crlf>);
return $subtitles;
Code: Select all
Snip: CustomColumn 1
XYplorer 20.90.0300, 10.05.2020 19:23:29
Action
ConfigureColumn
Caption
Subtitles
Type
3
Definition
$mediaInfo = "<xydrive>\Tools\@Command Line Tools\MediaInfo\MediaInfo.exe";
$subtitles = trim(regexreplace(runret("""$mediaInfo"" ""--Output=Text;%ID%:$if(%Language/String%, %Language/String%) | "" ""<cc_item>"""), "([ |]*)$"), <crlf>);
return $subtitles;
Format
0
Trigger
1
Item Type
0
Item Filter
{:Video}
One of my scripts helped you out? Please donate via Paypal
-
stevendom57
- Posts: 3
- Joined: 10 May 2020 17:45
Re: Subtitles
I have never used scripts or custom columns before so I didn't really understand what you sent me. A few minutes of searching not only gave me what I needed but many more ideas for customizing xyplorer. Thank you so much.
XYplorer Beta Club