Jump to content


michaels

Member Since 1 May 2013
Offline Last Active 27 Oct 2013 22:07
-----

Posts I've Made

In Topic: OpenPLi-2.1-beta-dm800-20131027 openwebif not work

27 October 2013 - 22:10

Quick and dirty workaround:
-download: https://github.com/E...n/httpserver.py
-ftp this file to /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/httpserver.py (overwrite the existing file)
-remove /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/httpserver.pyo
-restart Enigma2

 

Many thanks, this helps!


In Topic: OpenWebIf error after update on DM800, ET9200

1 May 2013 - 16:05

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)...