summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Recording.java23
1 files 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;
}