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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mp3tools
3
- Version: 1.2.0
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
- ![merge mp3 files from subdirectories](/mergemp3subdirs.jpg)
30
- - merge-mp3.py: merging script, works with foobar2000
31
- - pack-subdirs.py: pack files into grouped subdirectories (good for large audiobooks)
32
- - unpack-subdirs.py: unpack files from grouped subdirectories (undo pack-subdirs.py)
29
+ ![merge mp3 files from subdirectories](https://github.com/carsten-engelke/mp3tools/blob/main/mergemp3subdirs.jpg)
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
- - copy mergeMp3.py into the directory in which the files to merge are contained.
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
- python mergeMp3.py [dir] [sub] [foobarpath] [autowaittime]
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
- [sub] determines wheter all mp3 files in subfolders should be merged into one file each. ('true' to do so)")
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 clos foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.
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
- python pack-subdirs.py [group-size] [dir] [filter] [copy-mode]
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
- python unpack-subdirs.py [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
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
- ![merge mp3 files from subdirectories](/mergemp3subdirs.jpg)
6
- - merge-mp3.py: merging script, works with foobar2000
7
- - pack-subdirs.py: pack files into grouped subdirectories (good for large audiobooks)
8
- - unpack-subdirs.py: unpack files from grouped subdirectories (undo pack-subdirs.py)
5
+ ![merge mp3 files from subdirectories](https://github.com/carsten-engelke/mp3tools/blob/main/mergemp3subdirs.jpg)
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
- - copy mergeMp3.py into the directory in which the files to merge are contained.
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
- python mergeMp3.py [dir] [sub] [foobarpath] [autowaittime]
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
- [sub] determines wheter all mp3 files in subfolders should be merged into one file each. ('true' to do so)")
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 clos foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.
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
- python pack-subdirs.py [group-size] [dir] [filter] [copy-mode]
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
- python unpack-subdirs.py [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
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 from alphabet or create groups of a certain size.
3
- # Ungroup files from subfolders. Create groups from alphabet or create groups of a certain size.
4
- # Carsten Engelke 2020 under MIT-license.
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: python mp3-tools.py merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]")
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. ('true' to do so)")
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: mp3toolsce pack-subdirs [group-size] [dir] [file-filter] [copy-mode]")
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: mp3toolsce unpack-subdirs [dir] [subdir-filter] [file-filter] [copy-mode] [removesubdir-mode]")
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: mp3toolsce merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]")
378
- print ("Usage: mp3toolsce pack-subdirs [group-size] [dir] [file-filter] [copy-mode]")
379
- print ("Usage: mp3toolsce unpack-subdirs [dir] [subdir-filter] [file-filter] [copy-mode] [removesubdir-mode]")
380
- print ("Usage: mp3toolsce wait=seconds")
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.0
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
- ![merge mp3 files from subdirectories](/mergemp3subdirs.jpg)
30
- - merge-mp3.py: merging script, works with foobar2000
31
- - pack-subdirs.py: pack files into grouped subdirectories (good for large audiobooks)
32
- - unpack-subdirs.py: unpack files from grouped subdirectories (undo pack-subdirs.py)
29
+ ![merge mp3 files from subdirectories](https://github.com/carsten-engelke/mp3tools/blob/main/mergemp3subdirs.jpg)
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
- - copy mergeMp3.py into the directory in which the files to merge are contained.
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
- python mergeMp3.py [dir] [sub] [foobarpath] [autowaittime]
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
- [sub] determines wheter all mp3 files in subfolders should be merged into one file each. ('true' to do so)")
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 clos foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.
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
- python pack-subdirs.py [group-size] [dir] [filter] [copy-mode]
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
- python unpack-subdirs.py [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
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
@@ -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