summaryrefslogtreecommitdiff
path: root/podcast
diff options
context:
space:
mode:
Diffstat (limited to 'podcast')
-rw-r--r--podcast/src/plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/podcast/src/plugin.py b/podcast/src/plugin.py
index 92ac4a7..d63cd69 100644
--- a/podcast/src/plugin.py
+++ b/podcast/src/plugin.py
@@ -308,14 +308,14 @@ class PodcastMovies(Screen):
else:
url = "N/A"
+ length = "N/A"
if info.__contains__('length="'):
idx = info.index('length="')
length = info[idx+8:]
idx = length.index('"')
- length = length[:idx]
- length = str((int(length) / 1024) / 1024) + " MB"
- else:
- length = "N/A"
+ length = length[:idx]
+ if length:
+ length = str((int(length) / 1024) / 1024) + " MB"
if info.__contains__('type="'):
idx = info.index('type="')