2.1.0
This commit is contained in:
parent
c83f8c65e9
commit
f5cbfffe82
48
nicole.1.md
48
nicole.1.md
@ -1,6 +1,6 @@
|
|||||||
% NICOLE(1) nicole 2.0
|
% NICOLE(1) nicole 2.1.0
|
||||||
% Matthias Quintern
|
% Matthias Quintern
|
||||||
% April 2022
|
% May 2024
|
||||||
|
|
||||||
# NAME
|
# NAME
|
||||||
**N**ew-**I**ntrepid-**C**hief-**O**f-**L**yrics-**E**mbedders (obviously)
|
**N**ew-**I**ntrepid-**C**hief-**O**f-**L**yrics-**E**mbedders (obviously)
|
||||||
@ -31,56 +31,52 @@ If you don't want your files in the history, add the `-n` option.
|
|||||||
|
|
||||||
## genius
|
## genius
|
||||||
Nicole searches for lyrics using the genius api with the "title" and "artist" tags of the file.
|
Nicole searches for lyrics using the genius api with the "title" and "artist" tags of the file.
|
||||||
If the title and artist names from genius and the tags are similar, the lyrics are scraped from the url obtained through the api.
|
If the title and artist names from genius are similar enough to the ones of the file,
|
||||||
|
the lyrics are scraped from the url obtained through the api.
|
||||||
|
|
||||||
## azlyrics
|
## azlyrics
|
||||||
Nicole creates an azlyrics.com url from the "title" and "artist" tags of the file.
|
Nicole creates an azlyrics.com url from the "title" and "artist" tags of the file.
|
||||||
The lyrics are extracted from the html document using regex.
|
The lyrics are extracted from the html document using regex.
|
||||||
|
|
||||||
Unfortunately, there needs to be a 5 second delay between each request to azlyrics.com because the site will block your ip for a while if you send many requests.
|
Unfortunately, there needs to be a 5 second delay between each request to azlyrics.com because
|
||||||
|
the site will block your ip for a while if you send many requests.
|
||||||
|
|
||||||
## Important Note
|
|
||||||
Since the lyrics are extracted from html pages and not from an api, the lyrics sites might temporarily block your ip address if you send too many requests.
|
|
||||||
If that is the case, wait a few hours and try again.
|
|
||||||
|
|
||||||
# USAGE
|
# USAGE
|
||||||
|
|
||||||
## Command line options
|
## Command line options
|
||||||
**-d** directory
|
**--directory**, **-d** directory
|
||||||
: process directory [directory]
|
: process directory [directory]
|
||||||
|
|
||||||
**-f** file
|
**--file**, **-f** file
|
||||||
: process file [file]
|
: process file [file]
|
||||||
|
|
||||||
**-r**
|
**--recursive**, **-r**
|
||||||
: go through directories recursively
|
: go through directories recursively
|
||||||
|
|
||||||
**-s**
|
**--silent**
|
||||||
: silent, no command-line output
|
: silent, no command-line output
|
||||||
|
|
||||||
**-i**
|
**--ignore-history**, **-i**
|
||||||
: ignore history
|
: ignore history
|
||||||
|
|
||||||
**-n**
|
**--no-history**, **-n**
|
||||||
: do not write to history
|
: do not write to history
|
||||||
|
|
||||||
**-o**
|
**--overwrite**, **-o**
|
||||||
: overwrite if the file already has lyrics
|
: overwrite if the file already has lyrics
|
||||||
|
|
||||||
**-t**
|
**--test**, **-t**
|
||||||
: test, do not write lyrics to file, but print to stdout
|
: test, do not write lyrics to file, but print to stdout
|
||||||
|
|
||||||
**-h**
|
**--rm-explicit**
|
||||||
: show this
|
|
||||||
|
|
||||||
**--rm_explicit**
|
|
||||||
: remove the "[Explicit]" lyrics warning from the song's title tag
|
: remove the "[Explicit]" lyrics warning from the song's title tag
|
||||||
|
|
||||||
**--site** site
|
**--site**, **-s** site
|
||||||
: onlysearch [site] for lyrics (genius or azlyrics)
|
: onlysearch [site] for lyrics (genius or azlyrics)
|
||||||
|
|
||||||
If you do not specify a directory or file, the program will ask you if you want to use the current working directory.
|
One of `--file` and `--directory` must be given at least once.
|
||||||
Example: `nicole -ior -d ~/music/artist --rm_explicit`
|
Example: `nicole -ior -d ~/music/artist --rm-explicit`
|
||||||
|
|
||||||
# INSTALLATION AND UPDATING
|
# INSTALLATION AND UPDATING
|
||||||
To update nicole, simply follow the installation instructions.
|
To update nicole, simply follow the installation instructions.
|
||||||
@ -117,6 +113,12 @@ 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
|
||||||
|
- Refactoring:
|
||||||
|
- use argparse
|
||||||
|
- use pyproject.toml
|
||||||
|
- Ignore case when matching a genius result
|
||||||
|
|
||||||
## 2.0
|
## 2.0
|
||||||
- Nicole now supports lyrics from genius!
|
- Nicole now supports lyrics from genius!
|
||||||
- Added man-page
|
- Added man-page
|
||||||
@ -128,5 +130,5 @@ The dependencies will be automatically installed when using the either of the tw
|
|||||||
- Files are now processed in order
|
- Files are now processed in order
|
||||||
|
|
||||||
# COPYRIGHT
|
# COPYRIGHT
|
||||||
Copyright © 2022 Matthias Quintern. License GPLv3+: GNU GPL version 3 <https://gnu.org/licenses/gpl.html>.\
|
Copyright © 2024 Matthias Quintern. License GPLv3+: GNU GPL version 3 <https://gnu.org/licenses/gpl.html>.\
|
||||||
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
|
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/python3
|
#!/bin/python3
|
||||||
# Copyright © 2022 Matthias Quintern.
|
# Copyright © 2024 Matthias Quintern.
|
||||||
# This software comes with no warranty.
|
# This software comes with no warranty.
|
||||||
# This software is licensed under the GPL3
|
# This software is licensed under the GPL3
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="nicole",
|
name="nicole",
|
||||||
version="2.0",
|
version="2.1.0",
|
||||||
description="Write lyrics from genius or azlyrics.com to a mp3-tag",
|
description="Write lyrics from genius or azlyrics.com to a mp3-tag",
|
||||||
|
|
||||||
author="Matthias Quintern",
|
author="Matthias Quintern",
|
||||||
|
Loading…
Reference in New Issue
Block a user