diff --git a/webif/html/browse/assets.jim b/webif/html/browse/assets.jim index d08b4f4..8735f9a 100755 --- a/webif/html/browse/assets.jim +++ b/webif/html/browse/assets.jim @@ -103,6 +103,8 @@ if {[llength $plugins(dmenu)]} { } } +# the maxlength values for title and synopsis are 1 less than the maximum to +# allow for an extra byte to indicate character encoding (see rename.jim) puts { @@ -131,7 +133,7 @@ puts { @@ -144,7 +146,7 @@ puts { diff --git a/webif/lib/ts.class b/webif/lib/ts.class index 7aba2c1..6023ec1 100644 --- a/webif/lib/ts.class +++ b/webif/lib/ts.class @@ -296,21 +296,21 @@ ts method copy {dst} { } ts method settitle {newtitle} { - if {[string length newtitle] > 48} { return } + if {[string length $newtitle] > 48} { return } exec /mod/bin/hmt "+settitle=${newtitle}" $file set title $newtitle } ts method setsynopsis {newsynopsis} { - if {[string length newsynopsis] > 252} { return } + if {[string length $newsynopsis] > 252} { return } exec /mod/bin/hmt "+setsynopsis=${newsynopsis}" $file set synopsis $newsynopsis } ts method setguidance {newguidance} { - if {[string length newguidance] > 48} { return } + if {[string length $newguidance] > 74} { return } if {$newguidance eq ""} { exec /mod/bin/hmt "-guidance" $file