2.1.1 handle ~ in paths
This commit is contained in:
parent
7d47212f3c
commit
b217c3cb35
2
PKGBUILD
2
PKGBUILD
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Matthias Quintern <matthias(dot)quintern(at)posteo(dot)de>
|
# Maintainer: Matthias Quintern <matthias(dot)quintern(at)posteo(dot)de>
|
||||||
pkgname=nicole
|
pkgname=nicole
|
||||||
pkgver=2.1.0
|
pkgver=2.1.1
|
||||||
pkgrel=3
|
pkgrel=3
|
||||||
pkgdesc="Write lyrics from genius or azlyrics.com to a mp3-tag"
|
pkgdesc="Write lyrics from genius or azlyrics.com to a mp3-tag"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -16,7 +16,7 @@ from os import path, getcwd, listdir, mkdir
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
from sys import argv
|
from sys import argv
|
||||||
|
|
||||||
version = "2.1.0"
|
version = "2.1.1"
|
||||||
|
|
||||||
# Der Name Nicole ist frei erfunden und hat keine Bedeutung.
|
# Der Name Nicole ist frei erfunden und hat keine Bedeutung.
|
||||||
# Jeglicher Zusammenhang mit einer Website der DHL wird hiermit ausdrücklich ausgeschlossen.
|
# 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)
|
recursive=args.recursive, rm_explicit=args.rm_explicit, lyrics_site=args.site)
|
||||||
|
|
||||||
if type(args.file) == list:
|
if type(args.file) == list:
|
||||||
for file in args.file:
|
for file in map(path.expanduser, args.file):
|
||||||
try:
|
try:
|
||||||
nicole.process_file(file)
|
nicole.process_file(file)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
if type(args.directory) == list:
|
if type(args.directory) == list:
|
||||||
for directory in args.directory:
|
for directory in map(path.expanduser, args.directory):
|
||||||
try:
|
try:
|
||||||
nicole.process_dir(directory)
|
nicole.process_dir(directory)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
@ -3,7 +3,7 @@ requires = ["setuptools"]
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "nicole"
|
name = "nicole"
|
||||||
version = "2.1.0"
|
version = "2.1.1"
|
||||||
description = "Write lyrics from genius or azlyrics.com into a mp3-tag"
|
description = "Write lyrics from genius or azlyrics.com into a mp3-tag"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Matthias Quintern", email = "matthias.quintern@posteo.de" }
|
{ name = "Matthias Quintern", email = "matthias.quintern@posteo.de" }
|
||||||
|
@ -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.
|
The dependencies will be automatically installed when using the either of the two installation options.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
## 2.1.0
|
#### 2.1.1
|
||||||
|
- Fix: handle `~` in paths
|
||||||
|
|
||||||
|
### 2.1.0
|
||||||
- Refactoring:
|
- Refactoring:
|
||||||
- use argparse
|
- use argparse
|
||||||
- use pyproject.toml
|
- use pyproject.toml
|
||||||
|
Loading…
Reference in New Issue
Block a user