Skip to content

Commit b54c519

Browse files
committed
Add the files
1 parent 93f4b93 commit b54c519

File tree

4 files changed

+1061
-3
lines changed

4 files changed

+1061
-3
lines changed

.gitignore

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ parts/
2020
sdist/
2121
var/
2222
wheels/
23-
pip-wheel-metadata/
2423
share/python-wheels/
2524
*.egg-info/
2625
.installed.cfg
@@ -50,6 +49,7 @@ coverage.xml
5049
*.py,cover
5150
.hypothesis/
5251
.pytest_cache/
52+
cover/
5353

5454
# Translations
5555
*.mo
@@ -72,6 +72,7 @@ instance/
7272
docs/_build/
7373

7474
# PyBuilder
75+
.pybuilder/
7576
target/
7677

7778
# Jupyter Notebook
@@ -82,7 +83,9 @@ profile_default/
8283
ipython_config.py
8384

8485
# pyenv
85-
.python-version
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
8689

8790
# pipenv
8891
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
@@ -127,3 +130,15 @@ dmypy.json
127130

128131
# Pyre type checker
129132
.pyre/
133+
134+
# pytype static type analyzer
135+
.pytype/
136+
137+
# Cython debug symbols
138+
cython_debug/
139+
140+
# PyCharm
141+
.idea/
142+
143+
# Visual Studio Code
144+
.vscode/

README.md

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,109 @@
11
# Audfill
2-
Find song's info and rename files.
2+
3+
A python script to find song's info and rename them by looking them up on [audd.io](https://audd.io/).
4+
5+
An [API token](https://docs.audd.io/#authentication-and-limits) is required to do more than 10 requests per day.
6+
7+
## Installation
8+
9+
### Requirements
10+
11+
- Python >= 3.7
12+
- FFmpeg must be installed on the system and in the PATH
13+
- Python modules:
14+
- click
15+
- requests
16+
- validators
17+
- pydub
18+
19+
### PIP
20+
21+
```bash
22+
python -m pip install audfill
23+
```
24+
25+
### Local Installation
26+
27+
Run inside Audfill directory.
28+
29+
```bash
30+
python -m pip install -e .
31+
```
32+
33+
## Usage
34+
35+
A sound file must always be specified. Most sound files are supported (anything that FFmpeg and Pydub supports).
36+
37+
Specifiying no options will send the request, but not do anything with the response.
38+
39+
An example to print information about a song:
40+
41+
```bash
42+
audfill song.mp3 -i
43+
```
44+
45+
### Wildcards
46+
47+
Wildcards are supported and will loop though all files in a directory. The following example prints all the information about MP3s in the current directory.
48+
49+
```bash
50+
audfill *.mp3 -i
51+
```
52+
53+
### Sources
54+
55+
This script is also capable of getting additional data from Apple Music, Spotify, Napster, and Deezer. To explicitly get info from these sources, use ```-s [source]```. Data from sources listed first will be used for naming files. Sources will be implicitly added as necessary unless the minimum flag is specified (```-n```).
56+
57+
### API Token
58+
59+
An API key can be specified with the option ```-t``` or can be read automatically with the environment variable ```AUDDIOKEY```.
60+
61+
```bash
62+
audfill song.mp3 -k exampleToken123
63+
```
64+
65+
### File naming
66+
67+
For use with renaming files or downloading art and previews. File extension will automatically be added, do not add your own extension.
68+
69+
- Percent Symbol: %%
70+
- Filename: %f
71+
- Artist(s) %a
72+
- Composer: %c
73+
- Album: %b
74+
- Genre(s): %g
75+
- Title: %T
76+
- Short Title: %t
77+
- Explicit: %x
78+
- ISRC: %i
79+
- Disk Number: %k
80+
- Track Number: %#
81+
- Release Date:
82+
- Capital letters represent extended (ex. 1997, 03), lowercase letters represent short dates (ex. 97, 3)
83+
- %Y, %y
84+
- %M, %m
85+
- %D, %d
86+
87+
Example (Renames to **Artist - Title.mp3**):
88+
89+
```bash
90+
audfill song.mp3 -r '%a - %T'
91+
```
92+
93+
### Running with Python
94+
95+
```bash
96+
python audfill.py [filename] [options]
97+
```
98+
99+
### Running with Python PIP
100+
101+
```bash
102+
python -m audfill [filename] [options]
103+
```
104+
105+
### Running executable
106+
107+
```bash
108+
audfill [filename] [options]
109+
```

0 commit comments

Comments
 (0)