The permissions plugin now uses startswith for finding ancestors in the library path.

This commit is contained in:
Marvin Steadfast 2015-02-17 11:43:56 +01:00
parent dd0de2f04b
commit b9174d176f
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,7 @@ def dirs_in_library(library, item):
"""
return [ancestor
for ancestor in ancestry(item)
if library in ancestor][1:]
if ancestor.startswith(library)][1:]
class Permissions(BeetsPlugin):

View file

@ -44,6 +44,8 @@ Features:
* The number of missing/unmatched tracks is shown during import. :bug:`1088`
* The data source used during import (e.g., MusicBrainz) is now saved as a
flexible attribute `data_source` of an Item/Album. :bug:`1311`
* :doc:`/plugins/permissions`: Now handles also the permissions of the
directories. :bug:`1308` bug:`1324`
Core changes: