Merge pull request #888 from croneter/fix-typeerror

Fix TypeError for Direct Paths: init() got an unexpected keyword argument ‘item’
This commit is contained in:
croneter 2019-06-14 20:02:31 +02:00 committed by GitHub
commit ccc9372e9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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