mirror of
https://github.com/iluvcapra/mfbatch.git
synced 2025-12-31 08:50:51 +00:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef1377a616 | ||
|
|
b7535618e6 | ||
|
|
dfa2a2a5ad | ||
|
|
66ac136270 | ||
|
|
aa64d5e183 | ||
|
|
6766e81b23 | ||
|
|
a2ce03a259 | ||
|
|
0ba40893df | ||
|
|
e2b93f5183 | ||
|
|
7015e80cf9 | ||
|
|
042f3116dd | ||
|
|
20518fa31c | ||
|
|
c4a2e380de |
2
.github/workflows/pylint.yml
vendored
2
.github/workflows/pylint.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
||||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
|
||||
2
.github/workflows/python-publish.yml
vendored
2
.github/workflows/python-publish.yml
vendored
@@ -35,4 +35,4 @@ jobs:
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
- name: Publish package
|
||||
uses: pypa/gh-action-pypi-publish@v1.8.6
|
||||
uses: pypa/gh-action-pypi-publish@v1.12.4
|
||||
|
||||
@@ -40,6 +40,20 @@ def create_batch_list(command_file: str, recursive=True, sort_mode='path'):
|
||||
"""
|
||||
with open(command_file, mode='w', encoding='utf-8') as f:
|
||||
f.write("# mfbatch\n\n")
|
||||
# f.write("""
|
||||
# # :set DESCRIPTION ""
|
||||
# # :set TITLE ""
|
||||
# # :set VERSION ""
|
||||
# # :set ALBUM ""
|
||||
# # :set ARTIST ""
|
||||
# # :set TRACKNUMBER ""
|
||||
# # :set COPYRIGHT ""
|
||||
# # :set LICENSE ""
|
||||
# # :set CONTACT ""
|
||||
# # :set ORGAIZATION ""
|
||||
# # :set LOCATION ""
|
||||
# # :set MICROPHONE ""
|
||||
# """)
|
||||
metadatums = {}
|
||||
flac_files = glob('./**/*.flac', recursive=recursive)
|
||||
|
||||
@@ -123,7 +137,7 @@ def main():
|
||||
if options.help_commands:
|
||||
print("Command Help\n------------")
|
||||
commands = [command for command in dir(BatchfileParser) if
|
||||
not command.startswith('_') or command != "eval"]
|
||||
not command.startswith('_') and command != "eval"]
|
||||
print(f"{inspect.cleandoc(BatchfileParser.__doc__ or '')}\n\n")
|
||||
for command in commands:
|
||||
meth = getattr(BatchfileParser, command)
|
||||
|
||||
@@ -131,9 +131,9 @@ class CommandEnv:
|
||||
"""
|
||||
Increment all increment keys.
|
||||
"""
|
||||
for k, v in self.incr.items():
|
||||
v = int(v)
|
||||
self.metadatums[k] = self.incr[k] % (v + 1)
|
||||
for k, _ in self.incr.items():
|
||||
val = int(self.metadatums[k])
|
||||
self.metadatums[k] = self.incr[k] % (val + 1)
|
||||
|
||||
|
||||
class BatchfileParser:
|
||||
@@ -329,3 +329,18 @@ they appear in the batchfile.
|
||||
"""
|
||||
val = args[0]
|
||||
self.env.set_once('DESCRIPTION', val)
|
||||
|
||||
# def picture(self, args):
|
||||
# """
|
||||
# picture PATH
|
||||
# Add PATH as a picture (flac picture type 0) to this and every
|
||||
# subsequent file.
|
||||
# """
|
||||
# pass
|
||||
#
|
||||
# def nopicture(self, args):
|
||||
# """
|
||||
# unpicture
|
||||
# Remove all p
|
||||
# """
|
||||
# pass
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "mfbatch"
|
||||
version = "0.5.0"
|
||||
version = "0.5.2"
|
||||
description = "MetaFlac batch editor"
|
||||
authors = ["Jamie Hardt <jamiehardt@me.com>"]
|
||||
readme = "README.md"
|
||||
@@ -13,6 +13,7 @@ classifiers = [
|
||||
'Environment :: Console',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Topic :: Multimedia :: Sound/Audio :: Editors',
|
||||
'Programming Language :: Python :: 3.13',
|
||||
'Programming Language :: Python :: 3.12',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
|
||||
Reference in New Issue
Block a user