mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-26 08:17:31 +00:00
added musicvideos support
This commit is contained in:
parent
62dda17680
commit
c6e5bc28ac
6 changed files with 341 additions and 9 deletions
|
@ -53,6 +53,7 @@ def checkKodiSources():
|
|||
dataPath = os.path.join(addondir,"library")
|
||||
movieLibrary = os.path.join(dataPath,'movies')
|
||||
tvLibrary = os.path.join(dataPath,'tvshows')
|
||||
musicvideoLibrary = os.path.join(dataPath,'musicvideos')
|
||||
|
||||
rebootRequired = False
|
||||
|
||||
|
@ -66,6 +67,10 @@ def checkKodiSources():
|
|||
xbmcvfs.mkdir(tvLibrary)
|
||||
rebootRequired = True
|
||||
addKodiSource("mediabrowser_tvshows",tvLibrary,"tvshows")
|
||||
if not xbmcvfs.exists(musicvideoLibrary + os.sep):
|
||||
xbmcvfs.mkdir(musicvideoLibrary)
|
||||
rebootRequired = True
|
||||
addKodiSource("mediabrowser_musicvideos",musicvideoLibrary,"musicvideos")
|
||||
|
||||
rebootRequired = KodiAdvancedSettingsCheck()
|
||||
|
||||
|
@ -105,7 +110,7 @@ def addKodiSource(name, path, type):
|
|||
# add it to sources.xml
|
||||
sourcesFile = xbmc.translatePath( "special://profile/sources.xml" )
|
||||
|
||||
# add an emply sources file to work with
|
||||
# add an empty sources file to work with
|
||||
if xbmcvfs.exists(sourcesFile) == False:
|
||||
sources = Element("sources")
|
||||
video = SubElement(sources, "video")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue