diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-22 14:50:32 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-10-22 14:50:32 +0000 |
| commit | af53cd3adf48f64f296d041c06365283fa336fdb (patch) | |
| tree | 2faf26a09b69fea2393a64a3997b5a12370a4ee9 /lib/python | |
| parent | 8c478db27a2cc610b1cdde952d5a16edba8c2b01 (diff) | |
| download | enigma2-af53cd3adf48f64f296d041c06365283fa336fdb.tar.gz enigma2-af53cd3adf48f64f296d041c06365283fa336fdb.zip | |
fix wrong free capacity reading on blank dvd(-/+)r
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py b/lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py index 058c30ca..c0cec219 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py +++ b/lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py @@ -42,7 +42,7 @@ class DVDToolbox(Screen): self["details"] = ScrollLabel() self["info"] = StaticText() - self["toolboxactions"] = ActionMap(["ColorActions", "DVDToolbox"], + self["toolboxactions"] = ActionMap(["ColorActions", "DVDToolbox", "OkCancelActions"], { "red": self.close, "green": self.update, @@ -100,8 +100,9 @@ class DVDToolbox(Screen): except: size = 0 if size > 0: - capacity = size - used = capacity-used + capacity = size / 1048576 + if used: + used = capacity-used print "[free blocks] capacity=%d, used=%d" % (capacity, used) infotext += line self["details"].setText(infotext) |
