Fix TypeError for Direct Paths: init() got an unexpected keyword argument ‘item’
This commit is contained in:
parent
fde67483f4
commit
a761a8987d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue