Fix TypeError for Direct Paths: init() got an unexpected keyword argument ‘item’

This commit is contained in:
croneter 2019-06-14 11:11:00 +02:00
parent fde67483f4
commit a761a8987d

View file

@ -3,7 +3,7 @@
from __future__ import absolute_import, division, unicode_literals from __future__ import absolute_import, division, unicode_literals
from logging import getLogger from logging import getLogger
from .plex_api import API from .plex_api.media import Media
from . import utils from . import utils
from . import variables as v from . import variables as v
@ -23,7 +23,7 @@ def excludefromscan_music_folders(sections):
""" """
paths = [] paths = []
reboot = False reboot = False
api = API(item=None) api = Media()
for section in sections: for section in sections:
if section.section_type != v.PLEX_TYPE_ARTIST: if section.section_type != v.PLEX_TYPE_ARTIST:
# Only look at music libraries # Only look at music libraries