PDA

View Full Version : bugfix for mfs_ftp.tcl


justdoit
12-28-2006, 02:56 AM
line 245 needs to be
set info($fsid,ldate) [clock format $recsec -format "%b %2d %H:%2M" ]


If anyone is intereted in a new format which I added to proc calc_tertiary_info { fsid }
default {
set ETitle "$info($fsid,EpisodeTitle)"
if { $ETitle != "" } {
set ETitle " \{$ETitle\}"
}
set info($fsid,rec_filename) "$S$info($fsid,Title) \{$oad\}$ETitle \{$recdate\}"
}

jasch
12-30-2006, 01:14 PM
Perhaps you could elaborate and tell us what this fix fixes? Or what the new format does that the stock mfs_ftp does not?

justdoit
12-30-2006, 01:24 PM
set info($fsid,ldate) [clock format $recsec -format "%b %2d %H:%2M" ]

This is a bug fix. Which would displays the date (recording date) correctly on the files in the FTP client. else most of the shows recorded in the evening (PM) are displayed as recorded in the morning (AM) which is 12 hrs off.

And the following format is my pesonal preference which gets rid of the EpisodeTitle if none is present instead of showing an "{}" in the file name.
default {
set ETitle "$info($fsid,EpisodeTitle)"
if { $ETitle != "" } {
set ETitle " \{$ETitle\}"
}
set info($fsid,rec_filename) "$S$info($fsid,Title) \{$oad\}$ETitle \{$recdate\}"
}