-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a feature request for batch tagging #42
Comments
Hey @rockonedege, thank you, this is a good feature request. Unfortunately the
If you are on Linux or macOS, you could try something like this for the dump:
Basically this uses find and some shell kung fu to call Oh, and backup your files before doing this recursively... it may lead to unexpected consequences :-) |
Thanks, I will give it try. Assuming it works as expect, what is the counterpart |
If i remember correctly |
looking at the examples in the documents
there's another option |
Given one of these, So Example:
Try it, it will do, what you want. |
The
then I picked one of the tone json files. changed(cleared) some fields "meta": {
"album": "¸ü¶à×ÊÔ´Çë¼Ócqhdy2016",
"artist": "Ò»ÊÖ×ÊÔ´¹Ù·½Í¬²½¸üÐÂÇë¼Ó΢ÐÅ£ºcqhdy2016",
"comment": "¸ü¶à×ÊÔ´Çë¼Ócqhdy2016",
"genre": "Ò»ÊÖ×ÊÔ´¹Ù·½Í¬²½¸üÐÂÇë¼Ó΢ÐÅ£ºcqhdy2016",
"recordingDate": "2017-01-01T00:00:00",
"title": "1 - 李靖难成仙 下山当总兵"
}, to "meta": {
"album": "",
"artist": "",
"comment": "",
"genre": "",
"recordingDate": "2017-01-01T00:00:00",
"title": "1 - 李靖难成仙 下山当总兵"
}, then I tried to apply the changes back to the $ tone tag . --auto-import ToneJson
Tagging 193 files, continue? [y/n] (y): y
── unchanged: /mnt/g/audio-test/超极封神榜/1 - 李靖难成仙 下山当总兵.mp3 ────────────────────────────────────────────────────────────────────── No luck. I also tried $ tone tag . --auto-import Ffmetadata
Tagging 193 files, continue? [y/n] (y): y
Error: Object reference not set to an instance of an object. no luck either. BTW, I am testing on WSL(Ubuntu) on Windows 10 |
Ah, I see. Clearing fields is special... I can't simply remove fields that have an empty value or are not set, because in this case it would remove EVERY tag, that is not in the export file which is mostly not the wanted behaviour in most cases.
To remove fields, use e.g. |
I did not really mean to remove a field, just wanted to clear some ad being put there, but that's a triaval difference I could ignore and take either reaults. So I put some random characters to test it, and it remains unchanged still. To give you more context, here's the complete exported tone json file to be imported {
"audio": {
"bitrate": 160,
"format": "MPEG Audio (Layer III)",
"formatShort": "MPEG",
"sampleRate": 44100.0,
"duration": 710920.0,
"channels": {
"count": 2,
"description": "Joint Stereo"
},
"frames": {
"offset": 193,
"length": 14218449
},
"metaFormat": [
"id3V23"
]
},
"meta": {
"album": "fghdf",
"artist": "dfffffsd",
"comment": "sdfgfg",
"genre": "sdfgd",
"recordingDate": "2017-01-01T00:00:00",
"title": "1 - 李靖难成仙 下山当总兵"
},
"file": {
"size": 14218642,
"created": "2019-11-19T07:59:40.4762029+08:00",
"modified": "2019-11-19T07:59:40.4762029+08:00",
"accessed": "2023-04-12T22:25:12.4108919+08:00",
"path": "/mnt/g/audio-test/超极封神榜",
"name": "1 - 李靖难成仙 下山当总兵.mp3"
}
} |
Phew, you give me a lot to investigate. I updated the featurette in my first comment - so I have to check, what is wrong here. Sorry, might take a while. |
Never mind. Thanks for the help indeed. If you need me to test, just let me know... and take your time. I am in no hurry. |
I wish to have this workflow
json
file andjson
file with an editor or scriptjson
to update the original filesIs this already possible?
The text was updated successfully, but these errors were encountered: