2.1.1 handle ~ in paths

This commit is contained in:
matthias@quintern.xyz 2024-06-19 08:45:47 +02:00
parent 7d47212f3c
commit b217c3cb35
4 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Maintainer: Matthias Quintern <matthias(dot)quintern(at)posteo(dot)de>
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')

View File

@ -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:

View File

@ -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" }

View File

@ -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