From b217c3cb350091b21295cf02b254c9139ba778d5 Mon Sep 17 00:00:00 2001 From: "matthias@quintern.xyz" Date: Wed, 19 Jun 2024 08:45:47 +0200 Subject: [PATCH] 2.1.1 handle ~ in paths --- PKGBUILD | 2 +- nicole/nicole.py | 6 +++--- pyproject.toml | 2 +- readme.md | 5 ++++- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 17bd817..0e07c6b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Matthias Quintern pkgname=nicole -pkgver=2.1.0 +pkgver=2.1.1 pkgrel=3 pkgdesc="Write lyrics from genius or azlyrics.com to a mp3-tag" arch=('any') diff --git a/nicole/nicole.py b/nicole/nicole.py index 2dfc63e..1b8ce49 100644 --- a/nicole/nicole.py +++ b/nicole/nicole.py @@ -16,7 +16,7 @@ from os import path, getcwd, listdir, mkdir from time import sleep from sys import argv -version = "2.1.0" +version = "2.1.1" # Der Name Nicole ist frei erfunden und hat keine Bedeutung. # Jeglicher Zusammenhang mit einer Website der DHL wird hiermit ausdrücklich ausgeschlossen. @@ -471,13 +471,13 @@ def main(): recursive=args.recursive, rm_explicit=args.rm_explicit, lyrics_site=args.site) if type(args.file) == list: - for file in args.file: + for file in map(path.expanduser, args.file): try: nicole.process_file(file) except KeyboardInterrupt: pass if type(args.directory) == list: - for directory in args.directory: + for directory in map(path.expanduser, args.directory): try: nicole.process_dir(directory) except KeyboardInterrupt: diff --git a/pyproject.toml b/pyproject.toml index 8ea30aa..ffde224 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools"] [project] name = "nicole" -version = "2.1.0" +version = "2.1.1" description = "Write lyrics from genius or azlyrics.com into a mp3-tag" authors = [ { name = "Matthias Quintern", email = "matthias.quintern@posteo.de" } diff --git a/readme.md b/readme.md index e8eae52..edc1751 100644 --- a/readme.md +++ b/readme.md @@ -83,7 +83,10 @@ sudo chmod +x /usr/share/zsh/site-functions/_nicole The dependencies will be automatically installed when using the either of the two installation options. ## Changelog -## 2.1.0 +#### 2.1.1 +- Fix: handle `~` in paths + +### 2.1.0 - Refactoring: - use argparse - use pyproject.toml