Skip to content

Commit 3247848

Browse files
authored
[python] update xbmc.translatePath() to xbmcvfs
xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead. The reference if from: xbmc/xbmc#17735
1 parent 9a4d089 commit 3247848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/xmlParser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import unicodedata
44
from xml.dom.minidom import parse, Document, _write_data, Node, Element
55
import xbmc
6+
import xbmcvfs
67
import xbmcaddon
78
import xbmcgui
89

@@ -41,7 +42,7 @@ def writexml(self, writer, indent="", addindent="", newl=""):
4142

4243
class XMLParser:
4344
def __init__(self):
44-
self.RssFeedsPath = xbmc.translatePath('special://userdata/RssFeeds.xml')
45+
self.RssFeedsPath = xbmcvfs.translatePath('special://userdata/RssFeeds.xml')
4546
sane = self.checkRssFeedPathSanity()
4647
if sane:
4748
try:

0 commit comments

Comments
 (0)