(self)
| 179 | |
| 180 | class BucketPlugin(plugins.BeetsPlugin): |
| 181 | def __init__(self): |
| 182 | super().__init__() |
| 183 | self.template_funcs["bucket"] = self._tmpl_bucket |
| 184 | |
| 185 | self.config.add( |
| 186 | { |
| 187 | "bucket_year": [], |
| 188 | "bucket_alpha": [], |
| 189 | "bucket_alpha_regex": {}, |
| 190 | "extrapolate": False, |
| 191 | } |
| 192 | ) |
| 193 | self.setup() |
| 194 | |
| 195 | def setup(self): |
| 196 | """Setup plugin from config options""" |