Commits

Adrian Sampson committed b0bc4d0

configurable max filename length

Comments (0)

Files changed (2)

beets/config_default.yaml

     '\s+$': ''
 path_sep_replace: _
 art_filename: cover
+max_filename_length: 200
 
 plugins: []
 pluginpath: []
         subpath += extension.lower()
 
         # Truncate too-long components.
-        subpath = util.truncate_path(subpath, pathmod)
+        subpath = util.truncate_path(
+            subpath, pathmod,
+            beets.config['max_filename_length'].get(int),
+        )
 
         if fragment:
             return subpath