mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 08:32:06 +01:00
The permissions plugin now uses startswith for finding ancestors in the library path.
This commit is contained in:
parent
dd0de2f04b
commit
b9174d176f
2 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue