git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix possible crash on mediainfo parsing
[enigma2.git]
/
lib
/
python
/
Plugins
/
Extensions
/
DVDBurn
/
DVDToolbox.py
diff --git
a/lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py
b/lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py
index 30487b690ff1c88a1f3345d9fdde7f9c9cec0960..45a8edb607c8280c702e9cfcad2aaed1e49224e2 100644
(file)
--- a/
lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py
+++ b/
lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py
@@
-96,8
+96,10
@@
class DVDToolbox(Screen):
capacity = used
used = 0
elif line.find("Free Blocks:") > -1:
capacity = used
used = 0
elif line.find("Free Blocks:") > -1:
- size = line[15:-3].split('*')
- size = int(size[0])*int(size[1])*1024
+ try:
+ size = eval(line[14:].replace("KB","*1024"))
+ except:
+ size = 0
if size > 0:
capacity = size
used = capacity-used
if size > 0:
capacity = size
used = capacity-used