Skip to content

Commit

Permalink
listenbrainz: dont force str for paths
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Nov 13, 2024
1 parent bb36ad5 commit 440f40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion my/listenbrainz/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def inputs() -> Sequence[Path]:
def _parse_export_file(p: Path) -> Results:
# remove any items which have null as listen date
# (may have been listening to something when export happened)
yield from filter(lambda lst: lst.listened_at is not None, iter_listens(str(p)))
yield from filter(lambda lst: lst.listened_at is not None, iter_listens(p))


def history(from_paths: InputSource = inputs) -> Results:
Expand Down

0 comments on commit 440f40f

Please sign in to comment.