2011-12-28 21:36:35 +00:00
|
|
|
#!/mod/bin/jimsh
|
|
|
|
|
|
|
|
puts {
|
|
|
|
|
|
|
|
<div id=jbar></div>
|
|
|
|
|
2011-12-29 01:17:32 +00:00
|
|
|
<ul id=optmenu class=contextMenu style="width: 160px">
|
2011-12-28 21:36:35 +00:00
|
|
|
<li class=delete><a href=#delete>Delete</a></li>
|
|
|
|
<li class=cut><a href=#cut>Cut to clipboard</a></li>
|
|
|
|
<li class=pwcopy><a href=#copy>Copy to clipboard</a></li>
|
|
|
|
|
|
|
|
<li class=separator><a href=#rename>Rename</a></li>
|
|
|
|
<li><a href=#download>Download</a></li>
|
|
|
|
|
|
|
|
}
|
2012-01-22 19:47:47 +00:00
|
|
|
if {$model eq "HDR"} {
|
2012-06-15 21:34:07 +00:00
|
|
|
puts { <li class="separator decrypt"><a href=#decrypt>Decrypt</a></li> }
|
|
|
|
puts { <li class="compress"><a href=#strip>Shrink</a></li> }
|
2012-06-10 21:16:22 +00:00
|
|
|
} else {
|
2012-06-15 21:34:07 +00:00
|
|
|
puts { <li class="compress separator"><a href=#strip>Shrink</a></li> }
|
2011-12-28 21:36:35 +00:00
|
|
|
}
|
|
|
|
if {[system pkginst ffmpeg]} {
|
2012-02-12 23:11:23 +00:00
|
|
|
puts {
|
|
|
|
<li><a href=#audio>Extract Audio</a></li>
|
|
|
|
<li><a href=#mpg>Extract to MPG</a></li>
|
|
|
|
}
|
2011-12-28 21:36:35 +00:00
|
|
|
}
|
|
|
|
if $nicesplice {
|
2012-02-06 23:28:53 +00:00
|
|
|
puts {
|
|
|
|
<li class="cut"><a href=#crop>Crop</a></li>
|
|
|
|
<li class="cut"><a href=#chunk>Split (45m parts)</a></li>
|
|
|
|
}
|
2011-12-28 21:36:35 +00:00
|
|
|
}
|
|
|
|
puts {
|
|
|
|
<li class=separator><a href=#lock>Toggle Lock</a></li>
|
|
|
|
<li><a href=#new>Toggle New</a></li>
|
|
|
|
</ul>
|
|
|
|
|
2012-06-10 21:16:22 +00:00
|
|
|
<ul id=ooptmenu class=contextMenu style="width: 160px">
|
|
|
|
<li class=delete><a href=#delete>Delete</a></li>
|
|
|
|
<li class=cut><a href=#cut>Cut to clipboard</a></li>
|
|
|
|
<li class=pwcopy><a href=#copy>Copy to clipboard</a></li>
|
|
|
|
|
|
|
|
<li class=separator><a href=#rename>Rename</a></li>
|
|
|
|
<li><a href=#download>Download</a></li>
|
|
|
|
</ul>
|
|
|
|
|
2013-01-18 18:47:14 +00:00
|
|
|
<ul id=doptmenu class=contextMenu style="width: 250px">
|
2011-12-28 21:36:35 +00:00
|
|
|
<li class=delete><a href=#delete>Delete</a></li>
|
|
|
|
<li class=cut><a href=#cut>Cut to clipboard</a></li>
|
|
|
|
<li class=pwcopy><a href=#copy>Copy to clipboard</a></li>
|
2012-08-09 23:06:30 +00:00
|
|
|
<li class=pwpaste><a href=#paste>Paste to folder</a></li>
|
2011-12-28 21:36:35 +00:00
|
|
|
<li class=separator><a href=#rename>Rename</a></li>
|
2012-04-22 20:54:29 +00:00
|
|
|
<li class=separator><a href=#resetnew>Reset new flag</a></li>
|
2012-06-15 21:34:07 +00:00
|
|
|
<li class="separator compress"><a href=#shrink>Auto-Shrink</a></li>
|
2013-01-18 18:47:14 +00:00
|
|
|
<li class="compressr"><a href=#shrinkr>Recursive Auto-Shrink</a></li>
|
2012-06-13 23:21:34 +00:00
|
|
|
<li class=dedup><a href=#dedup>Auto-Dedup</a></li>
|
2011-12-28 21:36:35 +00:00
|
|
|
}
|
2012-06-15 21:34:07 +00:00
|
|
|
if {$model eq "HDR"} {
|
2013-01-18 18:47:14 +00:00
|
|
|
puts {
|
|
|
|
<li class=decrypt><a href=#decrypt>Auto-Decrypt</a></li>
|
|
|
|
<li class=decryptr><a href=#decryptr>Recursive Auto-Decrypt
|
|
|
|
</a></li>
|
|
|
|
}
|
2012-06-15 21:34:07 +00:00
|
|
|
}
|
2011-12-28 21:36:35 +00:00
|
|
|
if $flatten {
|
|
|
|
puts { <li class="separator"><a href=#flat>No-Flatten</a></li> }
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
2013-01-08 22:43:43 +00:00
|
|
|
<li class=mpg><a href=#mpg>Auto-MPG Extract</a></li>
|
2011-12-28 21:36:35 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id=renameform title="Rename media file" style="display: none">
|
|
|
|
<form id=renameform_form>
|
2012-11-18 12:07:53 +00:00
|
|
|
<input type=hidden name="renamefile" id="renamefile" value="">
|
2011-12-28 21:36:35 +00:00
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="rename">
|
|
|
|
<b>New Filename</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="rename" id="rename"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-11-18 12:07:53 +00:00
|
|
|
|
2011-12-28 21:36:35 +00:00
|
|
|
<tr style="display: none" class=tstype>
|
|
|
|
<th>
|
2012-11-18 12:07:53 +00:00
|
|
|
<label for="rename_title" style="padding-top: 0.5em">
|
2011-12-28 21:36:35 +00:00
|
|
|
<b>New Medialist Title</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
2012-11-18 12:07:53 +00:00
|
|
|
<input type=text name="rename_title" id="rename_title"
|
2011-12-28 21:36:35 +00:00
|
|
|
value="" size=70 maxlength=48
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
2012-11-18 12:07:53 +00:00
|
|
|
|
2011-12-28 21:36:35 +00:00
|
|
|
<tr style="display: none" class=tstype>
|
2012-11-18 12:07:53 +00:00
|
|
|
<th>
|
|
|
|
<label for="rename_synopsis" style="padding-top: 0.5em">
|
|
|
|
<b>New Synopsis</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<textarea name="rename_synopsis" id="rename_synopsis"
|
|
|
|
value="" cols=70 rows=4
|
|
|
|
class="text ui-widget-content ui-corner-all"></textarea>
|
|
|
|
</td>
|
2011-12-28 21:36:35 +00:00
|
|
|
</tr>
|
2012-11-18 12:07:53 +00:00
|
|
|
|
|
|
|
<tr style="display: none" class=tstype>
|
|
|
|
<th>
|
|
|
|
<label for="rename_guidance" style="padding-top: 0.5em">
|
|
|
|
<b>New Guidance Text</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="rename_guidance" id="rename_guidance"
|
|
|
|
value="" size=70 maxlength=74
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2013-01-06 23:50:39 +00:00
|
|
|
<tr style="display: none" class=tstype>
|
|
|
|
<th>
|
|
|
|
<label for="rename_genre" style="padding-top: 0.5em">
|
|
|
|
<b>New Genre</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<select name="rename_genre" id="rename_genre"
|
2013-01-07 21:32:06 +00:00
|
|
|
style="vertical-align: middle"
|
2013-01-06 23:50:39 +00:00
|
|
|
class="text ui-widget-content ui-corner-all">
|
2013-01-07 21:32:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
set glist [ts genrelist]
|
|
|
|
foreach genre [array names glist] {
|
|
|
|
lassign $glist($genre) txt img
|
|
|
|
if {$img eq "Unclassified"} {
|
|
|
|
set img /images/173_3_26_G3_$img.png
|
|
|
|
} else {
|
|
|
|
set img /images/173_3_00_G3_$img.png
|
|
|
|
}
|
|
|
|
puts "<option value=$genre style=\"
|
|
|
|
background: url($img) no-repeat left;
|
|
|
|
padding: 8px 0 8px 30px;
|
|
|
|
vertical-align: middle;
|
|
|
|
\" onclick=\"this.parentNode.setAttribute('style',
|
|
|
|
this.getAttribute('style'));\">$txt"
|
|
|
|
}
|
|
|
|
|
|
|
|
puts {
|
2013-01-06 23:50:39 +00:00
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2011-12-28 21:36:35 +00:00
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id=drenameform title="Rename directory" style="display: none">
|
|
|
|
<form id=drenameform_form>
|
|
|
|
<input type=hidden name="renameorig" id="drenameorig" value="">
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="drename">
|
|
|
|
<b>New Directory Name</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="rename" id="drename"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id=savestreamform title="Save streamed content"
|
|
|
|
style="display: none">
|
|
|
|
<div class=pre id=savestream_detail></div>
|
|
|
|
<form id=savestream_form>
|
|
|
|
}
|
|
|
|
puts "<input type=hidden name=dir value=\"$dir\">"
|
|
|
|
puts {
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="savestream_name">
|
|
|
|
<b>Filename</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="savestream_name"
|
|
|
|
id="savestream_name"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
<img id=savestream_spin src=/img/loading.gif>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2011-12-29 00:57:18 +00:00
|
|
|
<div id=newdirform title="New Folder" style="display: none">
|
|
|
|
<form id=newdirform_form>
|
|
|
|
}
|
|
|
|
puts "<input type=hidden name=dir value=\"$dir\">"
|
|
|
|
puts {
|
|
|
|
<table border=0>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<label for="newdirname">
|
|
|
|
<b>New Folder Name</b>
|
|
|
|
</label>
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type=text name="newdirname" id="newdirname"
|
|
|
|
value="" size=70 maxlength=255
|
|
|
|
class="text ui-widget-content ui-corner-all">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2011-12-28 21:36:35 +00:00
|
|
|
<div id=dialogue></div>
|
|
|
|
<div id=confirm title="Confirmation Required"></div>
|
2011-12-29 00:57:18 +00:00
|
|
|
<div id=pwdialogue style="display: none">
|
|
|
|
<center>
|
|
|
|
<img src=/img/loading.gif>
|
|
|
|
<br><br>
|
|
|
|
Please wait...
|
|
|
|
<div id=pwfeedback></div>
|
2011-12-29 01:17:32 +00:00
|
|
|
</center>
|
2011-12-29 00:57:18 +00:00
|
|
|
</div>
|
2011-12-28 21:36:35 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|