~callum/barszcz

27426009683dcfb15d89e9e35bbed442e2986463 — Callum Brown 1 year, 10 months ago a9fc981
Fix indent on Item/AlbumThing, add docstring
1 files changed, 16 insertions(+), 14 deletions(-)

M beetsplug/barszcz.py
M beetsplug/barszcz.py => beetsplug/barszcz.py +16 -14
@@ 243,23 243,25 @@ class LibModelThing(Thing):


class ItemThing(LibModelThing):
        # beets format strings for left and right of info display
        # If left or right is left blank, set the format to an empty list
        # so that nothing is displayed on that side.
        format_left = config["barszcz"]["format_item"]["left"].get() or []
        format_right = config["barszcz"]["format_item"]["right"].get() or []
        # The number of lines the Thing takes up (minimum 1)
        height = max(len(format_left), len(format_right), 1)
    """A Thing representing a beets Item object."""
    # beets format strings for left and right of info display
    # If left or right is left blank, set the format to an empty list
    # so that nothing is displayed on that side.
    format_left = config["barszcz"]["format_item"]["left"].get() or []
    format_right = config["barszcz"]["format_item"]["right"].get() or []
    # The number of lines the Thing takes up (minimum 1)
    height = max(len(format_left), len(format_right), 1)


class AlbumThing(LibModelThing):
        # beets format strings for left and right of info display
        # If left or right is left blank, set the format to an empty list
        # so that nothing is displayed on that side.
        format_left = config["barszcz"]["format_album"]["left"].get() or []
        format_right = config["barszcz"]["format_album"]["right"].get() or []
        # The number of lines the Thing takes up (minimum 1)
        height = max(len(format_left), len(format_right), 1)
    """A Thing representing a beets Album object."""
    # beets format strings for left and right of info display
    # If left or right is left blank, set the format to an empty list
    # so that nothing is displayed on that side.
    format_left = config["barszcz"]["format_album"]["left"].get() or []
    format_right = config["barszcz"]["format_album"]["right"].get() or []
    # The number of lines the Thing takes up (minimum 1)
    height = max(len(format_left), len(format_right), 1)


class Group: