Jump to content


ck32

Member Since 20 May 2012
Offline Last Active 28 May 2019 13:42
-----

Posts I've Made

In Topic: OpenWebIf error after update on DM800, ET9200

2 May 2013 - 19:03

I had the same problem. Here is a temporary fix:

 

1. Apply the following patch on /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/mediaplayer.py

 

--- /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/mediaplayer.py.orig
+++ /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/mediaplayer.py
@@ -3,7 +3,7 @@
 from enigma import eServiceReference
 
 import os
-import fnmatch
+#import fnmatch
 
 def getMpInstance(session):
 	try:
@@ -291,13 +291,13 @@
 
 def mediaPlayerFindFile(session, path, pattern):
 	rfiles = []
-	for root, dirs, files in os.walk(path):
-		for filename in fnmatch.filter(files, pattern):
-			rfiles.append({
-				"name": filename,
-				"path": root
-			})
-	
+	# for root, dirs, files in os.walk(path):
+	# 	for filename in fnmatch.filter(files, pattern):
+	# 		rfiles.append({
+	# 			"name": filename,
+	# 			"path": root
+	# 		})
+	# 
 	return {
 		"result": True,
 		"files": rfiles

 

2. Delete /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models/mediaplayer.pyo (it will be regenerated after the next reboot)

 

3. Reboot

 

I assume that the problem is known and will be fixed with the next update (which will overwrite this file again)...

 

Thanks a lot ! I have applyed this solution on my 800HD and it works ! Can you tell us what is fnmatch ? And what are doing the lines I removed ?

thanks again