Don't overwrite instance variable defaults if .hmt file corrupt

This commit is contained in:
prpr 2023-05-28 19:22:03 +01:00
parent 0ab8fb125d
commit c9100acf66

View File

@ -61,14 +61,16 @@ ts method size {} {
ts method _parse {line} {
set vars [split $line "\t"]
lassign [split $line "\t"] \
title synopsis definition channel_num channel_name \
start end flags_list guidance bookmarks schedstart scheddur \
genre resume status seriesnum episodenum episodetot
if {[llength $vars] >= 18} {
lassign $vars \
title synopsis definition channel_num channel_name \
start end flags_list guidance bookmarks schedstart scheddur \
genre resume status seriesnum episodenum episodetot
set synopsis [xconv $synopsis]
set synopsis [xconv $synopsis]
set flags [split [string range $flags_list 0 end-1] ,]
set flags [split [string range $flags_list 0 end-1] ,]
}
}
ts method lastmod {} {