|
a/src/cdplugins/pycommon/upmplgutils.py |
|
b/src/cdplugins/pycommon/upmplgutils.py |
|
... |
|
... |
24 |
from __future__ import print_function, unicode_literals
|
24 |
from __future__ import print_function, unicode_literals
|
25 |
|
25 |
|
26 |
import posixpath
|
26 |
import posixpath
|
27 |
import re
|
27 |
import re
|
28 |
|
28 |
|
|
|
29 |
# Bogus class instanciated as global object for helping with reusing kodi addon code
|
|
|
30 |
class XbmcPlugin:
|
|
|
31 |
SORT_METHOD_TRACKNUM = 1
|
|
|
32 |
def __init__(self, idprefix):
|
|
|
33 |
self.entries = []
|
|
|
34 |
self.objid = ''
|
|
|
35 |
self.idprefix = idprefix
|
|
|
36 |
def addDirectoryItem(self, hdl, endpoint, title, isend):
|
|
|
37 |
self.entries.append(direntry(self.idprefix + endpoint, self.objid, title))
|
|
|
38 |
return
|
|
|
39 |
def endOfDirectory(self, h):
|
|
|
40 |
return
|
|
|
41 |
def setContent(self, a, b):
|
|
|
42 |
return
|
|
|
43 |
def addSortMethod(self, a, b):
|
|
|
44 |
return
|
|
|
45 |
|
29 |
def trackentries(httphp, pathprefix, objid, tracks):
|
46 |
def trackentries(httphp, pathprefix, objid, tracks):
|
30 |
"""
|
47 |
"""
|
31 |
Transform a list of Track objects to the format expected by the parent
|
48 |
Transform a list of Track objects to the format expected by the parent
|
32 |
|
49 |
|
33 |
Args:
|
50 |
Args:
|