From 7f9f357e377923fe9c6a26c5883c75b4b2519b47 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 20 Jul 2015 01:48:43 -0500 Subject: [PATCH] Fix for merge - part of 1.1.15 Still finding things that didn't follow in the merge... :( --- resources/lib/WriteKodiVideoDB.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index f749ae7d..120997d1 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -137,7 +137,10 @@ class WriteKodiVideoDB(): # Get the real filename for direct path or media flags for plugin path playurl = PlayUtils().directPlay(MBitem) try: - fileext = basename(playurl) + if "plugin://" in playurl: + fileext = "" + else: + fileext = basename(playurl) except: return # playurl returned False else: # Set filename and path @@ -568,7 +571,10 @@ class WriteKodiVideoDB(): # Get the real filename playurl = PlayUtils().directPlay(MBitem) try: - fileext = basename(playurl) + if "plugin://" in playurl: + fileext = "" + else: + fileext = basename(playurl) except: return # playurl returned False else: # Set filename and path