enigma2: update to 4.3.0r11
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-4.3.0r11-dm7080 / 0002-MediaCenter-fix-crash-in-MediaBrowserFile.patch
1 From ca737e3f75b6b983a1a4bf02cd817dd95bb60de0 Mon Sep 17 00:00:00 2001
2 From: reichi <reichi@opendreambox.org>
3 Date: Sat, 6 Aug 2016 20:45:57 +0200
4 Subject: [PATCH 2/4] MediaCenter: fix crash in MediaBrowserFile
5
6 ---
7  usr/lib/enigma2/python/Plugins/Extensions/MediaCenter/MediaBrowserFile.py | 2 ++
8  1 file changed, 2 insertions(+)
9
10 diff --git a/usr/lib/enigma2/python/Plugins/Extensions/MediaCenter/MediaBrowserFile.py b/usr/lib/enigma2/python/Plugins/Extensions/MediaCenter/MediaBrowserFile.py
11 index 004eee8..103dcba 100644
12 --- a/usr/lib/enigma2/python/Plugins/Extensions/MediaCenter/MediaBrowserFile.py
13 +++ b/usr/lib/enigma2/python/Plugins/Extensions/MediaCenter/MediaBrowserFile.py
14 @@ -34,6 +34,8 @@ class MediaBrowserFileList(FileList, MediaBrowserList):
15                 else:
16                         if isinstance(item, str):
17                                 return item
18 +                       elif isinstance(item, eServiceReference):
19 +                               return item.getPath()
20                         elif isinstance(item[0], eServiceReference):
21                                 return item[0].getPath()
22                 return None
23 -- 
24 2.1.4
25