Mediainfo custom template

dsouvik215

Member
May 25, 2018
896
0
16
Hi all just installed mediainfo into rutorrent all working great smiley.gif just wondered if any1 knows how to install your own custom template or tell me what i need to edit or add it to the code heres what i want to add to the general info
General.............: %FileName%
File Size...........: %FileSize/String4%\r\nVideo Codec.........: %Format%\r\nRuntime.............: %Duration/String%\r\nOverall Bitrate.....: %OverallBitRate/String%\r\n\n

many thanks for any help
 

das329717

Member
May 25, 2018
928
0
16
Hi, I know this is an old topic but anyone wanting to use custom template what you need to do is make sure to use template as txt file not csv if the template is going to be stored in webroot. Then you just need to edit rutorrent/plugins/mediainfo/action.php also note different versions of rutorrent have different mediainfo plugins and code isn't same.

Line 32 of action.php for rutorrent 3.5
Code:
$commands[] = getExternal("mediainfo")." '--Output=file:///var/www/rutorrent/plugins/mediainfo/template.txt' ".escapeshellarg($filename);
52TVeGh.png