From 43b2a56848507d3f4e1e5ff8c5fe2e6f31ff7a13 Mon Sep 17 00:00:00 2001 From: lado Date: Mon, 10 Oct 2011 01:16:27 +0200 Subject: filesize added --- .../de/bjusystems/vdrmanager/data/Recording.java | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Recording.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Recording.java index b0722f7..f9eeecb 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Recording.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Recording.java @@ -9,16 +9,27 @@ public class Recording extends BaseEvent{ super(null); final String[] words = line.split(":"); start = new Date(Long.parseLong(words[0])*1000); - stop = new Date(start.getTime() - 1000 * 1 * 60); - channelName = words[2]; - title = words[3]; - shortText = words[4]; - description = words[5]; - fileName = words[6]; + stop = new Date(Long.parseLong(words[1]) * 1000); + fileSize = Integer.valueOf(words[2]); + channelName = words[3]; + title = words[4]; + shortText = words[5]; + description = words[6]; + fileName = words[7]; } private String fileName; + private int fileSize; + + public int getFileSize() { + return fileSize; + } + + public void setFileSize(int fileSize) { + this.fileSize = fileSize; + } + public String getFileName() { return fileName; } -- cgit v1.2.3