mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Forgot to pyupgrade new file
This commit is contained in:
parent
8205b901db
commit
6cd7998c3d
1 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
# This file is part of beets.
|
# This file is part of beets.
|
||||||
# Copyright 2021, Edgars Supe.
|
# Copyright 2021, Edgars Supe.
|
||||||
#
|
#
|
||||||
|
|
@ -16,7 +14,6 @@
|
||||||
|
|
||||||
"""Adds an album template field for formatted album types."""
|
"""Adds an album template field for formatted album types."""
|
||||||
|
|
||||||
from __future__ import division, absolute_import, print_function
|
|
||||||
|
|
||||||
from beets.autotag.mb import VARIOUS_ARTISTS_ID
|
from beets.autotag.mb import VARIOUS_ARTISTS_ID
|
||||||
from beets.library import Album
|
from beets.library import Album
|
||||||
|
|
@ -28,7 +25,7 @@ class AlbumTypesPlugin(BeetsPlugin):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Init AlbumTypesPlugin."""
|
"""Init AlbumTypesPlugin."""
|
||||||
super(AlbumTypesPlugin, self).__init__()
|
super().__init__()
|
||||||
self.album_template_fields['atypes'] = self._atypes
|
self.album_template_fields['atypes'] = self._atypes
|
||||||
self.config.add({
|
self.config.add({
|
||||||
'types': [
|
'types': [
|
||||||
|
|
@ -54,8 +51,8 @@ class AlbumTypesPlugin(BeetsPlugin):
|
||||||
bracket_l = bracket[0]
|
bracket_l = bracket[0]
|
||||||
bracket_r = bracket[1]
|
bracket_r = bracket[1]
|
||||||
else:
|
else:
|
||||||
bracket_l = u''
|
bracket_l = ''
|
||||||
bracket_r = u''
|
bracket_r = ''
|
||||||
|
|
||||||
res = ''
|
res = ''
|
||||||
albumtypes = item.albumtypes.split('; ')
|
albumtypes = item.albumtypes.split('; ')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue