Verified Commit 5232a127 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add TODO

parent 6e982950
Loading
Loading
Loading
Loading
+12 −0
Changes for karaokatalog/Library.py: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
from collections.abc import Sequence
from dataclasses import dataclass
from functools import cached_property
from pathlib import Path
from typing import Self

@@ -31,3 +32,14 @@ class Library:
        )

        return cls(songs, unparseable_song_txts)

    @cached_property
    def songs_in_unique_dirs(self) -> Sequence[Song]:
        """
        Sometimes, more than one song can share the same base directory in a library (this usually happens when there are variants
        of the song which share the same audio file).

        For deduplication, it is helpful to assume every song is in its own directory. This returns a sequence of songs filtered so
        that there are no two songs sharing the same base dir. This filtering is done arbitrarily.
        """
        raise NotImplementedError()  # TODO Implement