If you have the duration in DVDPedia in minutes, and you just want to change the way that the duration is presented in the InfoView, then you can change this by editing the html-file. So instead of for example 101 you will see 1:41 in the InfoView.
Please note that this script ONLY works if the value in the duration field is entered in numbers ONLY, like "101". It does NOT work if you have the word "min" or something like that after the value, like "101 min".
In your InfoView HTML-file, find the line:
- Code: Select all
!--IFduration<div class="field"><div class="title">[translate:duration]:</div><div class="text"> [key:duration]</div></div>ENDduration-->
Replace that line with the following:
- Code: Select all
<!--IFduration<div class="field"><div class="title">[translate:duration]:</div><div class="text">
<script type="text/javascript">
var Hours = Math.floor("[key:duration]"/60);
var Minutes = "[key:duration]"%60;
var Time = Hours + ":" + Minutes;
document.write(Time);
</script>
</div></div>ENDduration-->
And in the above code the line
- Code: Select all
var Time = Hours + ":" + Minutes;
can of course be changed to
- Code: Select all
var Time = Hours + "h " + Minutes + "m";
to display the duration in the InfoView as "1h 41m" insted of "1:41".