[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
(2013-12-15, 20:48)presslab Wrote: I have a nuisance problem where upon returning from the browser XBMC displays the message "Remote Share" "Could not connect to network server", even though everything worked fine. I am using Gotham nightly on Ubuntu 13.10.

I got around to figuring this out. Here is my patch that fixes this.

Code:
--- default.py.orig    2014-02-22 21:55:45.555541349 -0800
+++ default.py    2014-02-22 21:51:40.000000000 -0800
@@ -653,7 +653,10 @@
     elif videoType == "movie":
         entries.append((translation(30122), 'RunPlugin(plugin://plugin.video.netflixbmc/?mode=addMovieToLibrary&url='+urllib.quote_plus(url)+'&name='+urllib.quote_plus(name.strip()+' ('+year+')')+')',))
     liz.addContextMenuItems(entries)
-    ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=True)
+    if mode == "playVideo":
+        ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=False)
+    else:
+        ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=True)
     return ok


@@ -683,7 +686,10 @@
     elif videoType == "movie":
         entries.append((translation(30122), 'RunPlugin(plugin://plugin.video.netflixbmc/?mode=addMovieToLibrary&url='+urllib.quote_plus(url)+'&name='+str(name.strip()+' ('+year+')')+')',))
     liz.addContextMenuItems(entries)
-    ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=True)
+    if mode == "playVideo":
+        ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=False)
+    else:
+        ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=True)
     return ok


@@ -718,7 +724,7 @@
         liz.setProperty("fanart_image", fanartFile)
     elif os.path.exists(coverFile):
         liz.setProperty("fanart_image", coverFile)
-    ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=True)
+    ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=liz, isFolder=False)
     return ok

params = parameters_string_to_dict(sys.argv[2])
Reply


Messages In This Thread
RE: [RELEASE] NetfliXBMC - Inofficial Netflix Add-on (Win/OSX/Linux) - by presslab - 2014-02-24, 06:25
Search empty? - by cgrey - 2014-01-11, 06:13
Not working on windows 7 - by dandiodati - 2014-02-26, 21:55
Problems with this addon - by builderjer - 2014-11-30, 19:55
Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7