mp3tools 1.2.0__tar.gz → 1.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mp3tools-1.2.0 → mp3tools-1.2.2}/PKG-INFO +17 -13
- {mp3tools-1.2.0 → mp3tools-1.2.2}/README.md +16 -12
- mp3tools-1.2.2/mp3tools/VERSION +1 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools/cli.py +11 -19
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools.egg-info/PKG-INFO +17 -13
- mp3tools-1.2.0/mp3tools/VERSION +0 -1
- {mp3tools-1.2.0 → mp3tools-1.2.2}/Containerfile +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/HISTORY.md +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/LICENSE +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/MANIFEST.in +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools/__init__.py +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools/__main__.py +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools/base.py +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools.egg-info/SOURCES.txt +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools.egg-info/dependency_links.txt +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools.egg-info/entry_points.txt +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools.egg-info/requires.txt +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/mp3tools.egg-info/top_level.txt +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/setup.cfg +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/setup.py +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/tests/__init__.py +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/tests/conftest.py +0 -0
- {mp3tools-1.2.0 → mp3tools-1.2.2}/tests/test_base.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mp3tools
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Awesome mp3tools created by carsten-engelke
|
|
5
5
|
Home-page: https://github.com/carsten-engelke/mp3tools/
|
|
6
6
|
Author: carsten-engelke
|
|
@@ -26,12 +26,14 @@ Requires-Dist: mkdocs; extra == "test"
|
|
|
26
26
|
Merge mp3 files and set correct audio length using foobar2000 with an automated python script. These scripts can merge all files in one directory or create one file for each subdirectory.
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-

|
|
30
|
-
- merge-mp3
|
|
31
|
-
- pack-subdirs
|
|
32
|
-
- unpack-subdirs.py: unpack files from grouped subdirectories (undo pack-subdirs
|
|
29
|
+

|
|
30
|
+
- mp3tools merge-mp3: merging script, works with foobar2000
|
|
31
|
+
- mp3tools pack-subdirs: pack files into grouped subdirectories (good for large audiobooks)
|
|
32
|
+
- mp3tools unpack-subdirs.py: unpack files from grouped subdirectories (undo mp3tools pack-subdirs)
|
|
33
33
|
|
|
34
34
|
## Version
|
|
35
|
+
1.2.2 Fixed
|
|
36
|
+
|
|
35
37
|
1.2.0 Added PI/CI Support thanks to https://github.com/rochacbruno/python-project-template
|
|
36
38
|
|
|
37
39
|
1.0.0 release version. Ported to vscode.
|
|
@@ -45,24 +47,26 @@ Merge mp3 files and set correct audio length using foobar2000 with an automated
|
|
|
45
47
|
- foobar2000 (https://www.foobar2000.org/)
|
|
46
48
|
|
|
47
49
|
## Installation
|
|
48
|
-
|
|
49
|
-
- run the script and follow the instructions, alternatively use the following command line
|
|
50
|
+
pip install mp3tools
|
|
50
51
|
|
|
52
|
+
## Usage
|
|
51
53
|
Command-line-use:
|
|
52
54
|
```
|
|
53
|
-
|
|
55
|
+
mp3tools -> start tools using standard wizard, just follow instructions.
|
|
56
|
+
|
|
57
|
+
mp3tools merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]
|
|
54
58
|
[dir] determines the directory in which to perform. Use '.' to select the current directory
|
|
55
|
-
[
|
|
59
|
+
[subdir-mode] determines wheter all mp3 files in subfolders should be merged into one file each. ('True' to do so)")
|
|
56
60
|
[foobarpath] determines the path to your foobar2000 installation. Please provide in case it differs from 'C:/Program Files (x86)/foobar2000/foobar2000.exe'
|
|
57
|
-
[autowaittime] determines whether to automatically
|
|
61
|
+
[autowaittime] determines whether to automatically close foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
mp3tools pack-subdirs [group-size] [dir] [file-filter] [copy-mode]
|
|
60
64
|
[group-size] determines the number of files to put into each directory
|
|
61
65
|
[dir] determines the directory in which to perform the script. Use '.' to select the current directory
|
|
62
|
-
[filter] Filter the file list according to this
|
|
66
|
+
[file-filter] Filter the file list according to this
|
|
63
67
|
[copy-mode] If 'True', the files are copied into the created subfolders. If 'False' they are moved (Use with caution).
|
|
64
68
|
|
|
65
|
-
|
|
69
|
+
mp3tools unpack-subdirs [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
|
|
66
70
|
[dir] determines the directory in which to perform the script. Use '.' to select the current directory
|
|
67
71
|
[subdir-filter] Filter the subdir list according to this. Use '*' to select any subdirectory
|
|
68
72
|
[filter] Filter the file list according to this
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Merge mp3 files and set correct audio length using foobar2000 with an automated python script. These scripts can merge all files in one directory or create one file for each subdirectory.
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-

|
|
6
|
-
- merge-mp3
|
|
7
|
-
- pack-subdirs
|
|
8
|
-
- unpack-subdirs.py: unpack files from grouped subdirectories (undo pack-subdirs
|
|
5
|
+

|
|
6
|
+
- mp3tools merge-mp3: merging script, works with foobar2000
|
|
7
|
+
- mp3tools pack-subdirs: pack files into grouped subdirectories (good for large audiobooks)
|
|
8
|
+
- mp3tools unpack-subdirs.py: unpack files from grouped subdirectories (undo mp3tools pack-subdirs)
|
|
9
9
|
|
|
10
10
|
## Version
|
|
11
|
+
1.2.2 Fixed
|
|
12
|
+
|
|
11
13
|
1.2.0 Added PI/CI Support thanks to https://github.com/rochacbruno/python-project-template
|
|
12
14
|
|
|
13
15
|
1.0.0 release version. Ported to vscode.
|
|
@@ -21,24 +23,26 @@ Merge mp3 files and set correct audio length using foobar2000 with an automated
|
|
|
21
23
|
- foobar2000 (https://www.foobar2000.org/)
|
|
22
24
|
|
|
23
25
|
## Installation
|
|
24
|
-
|
|
25
|
-
- run the script and follow the instructions, alternatively use the following command line
|
|
26
|
+
pip install mp3tools
|
|
26
27
|
|
|
28
|
+
## Usage
|
|
27
29
|
Command-line-use:
|
|
28
30
|
```
|
|
29
|
-
|
|
31
|
+
mp3tools -> start tools using standard wizard, just follow instructions.
|
|
32
|
+
|
|
33
|
+
mp3tools merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]
|
|
30
34
|
[dir] determines the directory in which to perform. Use '.' to select the current directory
|
|
31
|
-
[
|
|
35
|
+
[subdir-mode] determines wheter all mp3 files in subfolders should be merged into one file each. ('True' to do so)")
|
|
32
36
|
[foobarpath] determines the path to your foobar2000 installation. Please provide in case it differs from 'C:/Program Files (x86)/foobar2000/foobar2000.exe'
|
|
33
|
-
[autowaittime] determines whether to automatically
|
|
37
|
+
[autowaittime] determines whether to automatically close foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.
|
|
34
38
|
|
|
35
|
-
|
|
39
|
+
mp3tools pack-subdirs [group-size] [dir] [file-filter] [copy-mode]
|
|
36
40
|
[group-size] determines the number of files to put into each directory
|
|
37
41
|
[dir] determines the directory in which to perform the script. Use '.' to select the current directory
|
|
38
|
-
[filter] Filter the file list according to this
|
|
42
|
+
[file-filter] Filter the file list according to this
|
|
39
43
|
[copy-mode] If 'True', the files are copied into the created subfolders. If 'False' they are moved (Use with caution).
|
|
40
44
|
|
|
41
|
-
|
|
45
|
+
mp3tools unpack-subdirs [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
|
|
42
46
|
[dir] determines the directory in which to perform the script. Use '.' to select the current directory
|
|
43
47
|
[subdir-filter] Filter the subdir list according to this. Use '*' to select any subdirectory
|
|
44
48
|
[filter] Filter the file list according to this
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.2.2
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
# Merge mp3 files from the current directory or from subfolders (each into one mp3 file)
|
|
2
|
-
# Group files into subfolders. Create groups
|
|
3
|
-
# Ungroup files from subfolders.
|
|
4
|
-
# Carsten Engelke
|
|
5
|
-
# version:
|
|
6
|
-
# 0.1.0 initial port from windows script, introducing automation
|
|
7
|
-
# 0.2.0 bug corrected foobar needs to be called from working directory as the command line plugin cannot handle empty
|
|
8
|
-
# spaces in file names or paths given by command line
|
|
9
|
-
# 1.0.0 first automated working version, migrated to vs code
|
|
10
|
-
# 1.0.1 migrated all scripts into one module
|
|
11
|
-
# 1.0.4-6 corrected auto wait time option
|
|
12
|
-
# 1.0.7 adjusted standard variables -> file-filter is now .mp3, copy-mode is off, removesubdir-mode is on and subdir-filter is set to subdir- for safety purposes
|
|
2
|
+
# Group files into subfolders. Create groups of a certain size.
|
|
3
|
+
# Ungroup files from subfolders.
|
|
4
|
+
# Carsten Engelke 2023
|
|
13
5
|
|
|
14
6
|
import os
|
|
15
7
|
import subprocess
|
|
@@ -148,9 +140,9 @@ def mergemp3cli(args):
|
|
|
148
140
|
|
|
149
141
|
print("mp3-tools merge-mp3 {0}".format(VERSIONSTR))
|
|
150
142
|
print(
|
|
151
|
-
"Usage:
|
|
143
|
+
"Usage: mp3tools merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]")
|
|
152
144
|
print(" [dir] determines the directory in which to perform the script. Use '.' to select the current directory")
|
|
153
|
-
print(" [subdir-mode] determines wheter all mp3 files in subfolders should be merged into one file each. ('
|
|
145
|
+
print(" [subdir-mode] determines wheter all mp3 files in subfolders should be merged into one file each. ('True' to do so)")
|
|
154
146
|
print(" [foobarpath] determines the path to your foobar2000 installation. Please provide in case it differs from 'C:/Program Files (x86)/foobar2000/foobar2000.exe'. Use '.' to remain unchanged.")
|
|
155
147
|
print(" [autowaittime] determines whether to automatically clos foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.")
|
|
156
148
|
|
|
@@ -215,7 +207,7 @@ def packsubdirscli(args):
|
|
|
215
207
|
global copymode
|
|
216
208
|
|
|
217
209
|
print("pack-subdirs {0}".format(VERSIONSTR))
|
|
218
|
-
print("Use:
|
|
210
|
+
print("Use: mp3tools pack-subdirs [group-size] [dir] [file-filter] [copy-mode]")
|
|
219
211
|
print(" [group-size] determines the number of files to put into each directory")
|
|
220
212
|
print(" [dir] determines the directory in which to perform the script. Use '.' to select the current directory")
|
|
221
213
|
print(" [file-filter] Filter the file list according to this.")
|
|
@@ -288,7 +280,7 @@ def unpackdirscli(args):
|
|
|
288
280
|
global removesubdirmode
|
|
289
281
|
|
|
290
282
|
print("unpack-subdirs {0}".format(VERSIONSTR))
|
|
291
|
-
print("Use:
|
|
283
|
+
print("Use: mp3tools unpack-subdirs [dir] [subdir-filter] [file-filter] [copy-mode] [removesubdir-mode]")
|
|
292
284
|
print(" [dir] determines the directory in which to perform the script. Use '.' to select the current directory")
|
|
293
285
|
print(" [subdir-filter] Filter the subdir list according to this. Use '*' to select any subdirectory")
|
|
294
286
|
print(" [file-filter] Filter the file list according to this.")
|
|
@@ -374,10 +366,10 @@ def main():
|
|
|
374
366
|
"""
|
|
375
367
|
global autowaittime
|
|
376
368
|
|
|
377
|
-
print ("Usage:
|
|
378
|
-
print ("Usage:
|
|
379
|
-
print ("Usage:
|
|
380
|
-
print ("Usage:
|
|
369
|
+
print ("Usage: mp3tools merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]")
|
|
370
|
+
print ("Usage: mp3tools pack-subdirs [group-size] [dir] [file-filter] [copy-mode]")
|
|
371
|
+
print ("Usage: mp3tools unpack-subdirs [dir] [subdir-filter] [file-filter] [copy-mode] [removesubdir-mode]")
|
|
372
|
+
print ("Usage: mp3tools wait=seconds")
|
|
381
373
|
print ("Note: This script depends on a foobar2000 installation! (Get it from: https://www.foobar2000.org/)")
|
|
382
374
|
args = sys.argv[1:]
|
|
383
375
|
if (len(args) > 0):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mp3tools
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Awesome mp3tools created by carsten-engelke
|
|
5
5
|
Home-page: https://github.com/carsten-engelke/mp3tools/
|
|
6
6
|
Author: carsten-engelke
|
|
@@ -26,12 +26,14 @@ Requires-Dist: mkdocs; extra == "test"
|
|
|
26
26
|
Merge mp3 files and set correct audio length using foobar2000 with an automated python script. These scripts can merge all files in one directory or create one file for each subdirectory.
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-

|
|
30
|
-
- merge-mp3
|
|
31
|
-
- pack-subdirs
|
|
32
|
-
- unpack-subdirs.py: unpack files from grouped subdirectories (undo pack-subdirs
|
|
29
|
+

|
|
30
|
+
- mp3tools merge-mp3: merging script, works with foobar2000
|
|
31
|
+
- mp3tools pack-subdirs: pack files into grouped subdirectories (good for large audiobooks)
|
|
32
|
+
- mp3tools unpack-subdirs.py: unpack files from grouped subdirectories (undo mp3tools pack-subdirs)
|
|
33
33
|
|
|
34
34
|
## Version
|
|
35
|
+
1.2.2 Fixed
|
|
36
|
+
|
|
35
37
|
1.2.0 Added PI/CI Support thanks to https://github.com/rochacbruno/python-project-template
|
|
36
38
|
|
|
37
39
|
1.0.0 release version. Ported to vscode.
|
|
@@ -45,24 +47,26 @@ Merge mp3 files and set correct audio length using foobar2000 with an automated
|
|
|
45
47
|
- foobar2000 (https://www.foobar2000.org/)
|
|
46
48
|
|
|
47
49
|
## Installation
|
|
48
|
-
|
|
49
|
-
- run the script and follow the instructions, alternatively use the following command line
|
|
50
|
+
pip install mp3tools
|
|
50
51
|
|
|
52
|
+
## Usage
|
|
51
53
|
Command-line-use:
|
|
52
54
|
```
|
|
53
|
-
|
|
55
|
+
mp3tools -> start tools using standard wizard, just follow instructions.
|
|
56
|
+
|
|
57
|
+
mp3tools merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]
|
|
54
58
|
[dir] determines the directory in which to perform. Use '.' to select the current directory
|
|
55
|
-
[
|
|
59
|
+
[subdir-mode] determines wheter all mp3 files in subfolders should be merged into one file each. ('True' to do so)")
|
|
56
60
|
[foobarpath] determines the path to your foobar2000 installation. Please provide in case it differs from 'C:/Program Files (x86)/foobar2000/foobar2000.exe'
|
|
57
|
-
[autowaittime] determines whether to automatically
|
|
61
|
+
[autowaittime] determines whether to automatically close foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
mp3tools pack-subdirs [group-size] [dir] [file-filter] [copy-mode]
|
|
60
64
|
[group-size] determines the number of files to put into each directory
|
|
61
65
|
[dir] determines the directory in which to perform the script. Use '.' to select the current directory
|
|
62
|
-
[filter] Filter the file list according to this
|
|
66
|
+
[file-filter] Filter the file list according to this
|
|
63
67
|
[copy-mode] If 'True', the files are copied into the created subfolders. If 'False' they are moved (Use with caution).
|
|
64
68
|
|
|
65
|
-
|
|
69
|
+
mp3tools unpack-subdirs [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
|
|
66
70
|
[dir] determines the directory in which to perform the script. Use '.' to select the current directory
|
|
67
71
|
[subdir-filter] Filter the subdir list according to this. Use '*' to select any subdirectory
|
|
68
72
|
[filter] Filter the file list according to this
|
mp3tools-1.2.0/mp3tools/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|