diff options
author | lado <herrlado@gmail.com> | 2011-10-10 01:16:27 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-10-10 01:16:27 +0200 |
commit | 43b2a56848507d3f4e1e5ff8c5fe2e6f31ff7a13 (patch) | |
tree | 04e8673ee50829dd678d63fb4b84ea8479a5775a | |
parent | 7df17d21a2342016b62e831692fa59a86d809364 (diff) | |
download | vdr-manager-43b2a56848507d3f4e1e5ff8c5fe2e6f31ff7a13.tar.gz vdr-manager-43b2a56848507d3f4e1e5ff8c5fe2e6f31ff7a13.tar.bz2 |
filesize added
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/data/Recording.java | 23 |
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; } |