Commit Graph

872 Commits

Author SHA1 Message Date
Martchus c4f7d195a0 Allow adding cover via JavaScript 2023-08-07 18:41:19 +02:00
Martchus 7063f1bf03 Fix creation of song description from JavaScript object
It cannot just use `toString()` as this would turn e.g. `undefined` into
the string ´"undefined"` instead of an empty string.
2023-08-07 17:34:06 +02:00
Martchus 44d0ac21c2 Improve logging changes when applying changes in JavaScript
* Don't log non-printable characters
* Make it clear when an explicitly overridden field value is identical to
  the initial value
2023-08-07 17:32:38 +02:00
Martchus d248c63279 Allow passing settings to JavaScript 2023-08-07 17:30:25 +02:00
Martchus e69278634f Overhaul meta-data search
* Improve coding style
* Remove useless code comments
* Hide legacy providers by default
* Add Tekstowo to have at least one functioning provider for lyrics again
* Enable query logging only if an environment variable is set
* Use Tekstowo in example JavaScript
2023-08-06 20:02:00 +02:00
Martchus dace19b2bf Improve example JavaScript
* Move querying lyrics into separate module
* Avoid out of service message from being used as lyrics
2023-08-06 17:10:21 +02:00
Martchus a191aebd8a Allow basic use of db query via JavaScript 2023-08-05 02:06:26 +02:00
Martchus dbd4e71281 Set total number of tracks in example JavaScript 2023-08-04 00:28:48 +02:00
Martchus 485611141c Track "position in set" changes via JavaScript correctly 2023-08-04 00:19:10 +02:00
Martchus 7533761d77 Make function to read directory from JavaScript actually return anything 2023-08-04 00:18:13 +02:00
Martchus 9fd925a6bd Improve path-related properties of MediaFileInfoObject 2023-08-03 23:32:33 +02:00
Martchus cd1e0ce590 Expose DB query functions to JavaScript
Those are likely not very usable as-is because they return a model that is
not yet written for use within the QML engine.
2023-08-02 18:26:01 +02:00
Martchus 73dc64ce6a Expose target to JavaScript 2023-08-02 18:08:35 +02:00
Martchus 1d4c18f474 Allow setting the save path via JavaScript 2023-08-02 17:56:20 +02:00
Martchus ccb516d47b Avoid implicit type conversion 2023-08-02 17:56:01 +02:00
Martchus 24b397b930 Add functions to read dirs/files from the JavaScript 2023-08-02 17:55:36 +02:00
Martchus 9aca90538d Execute JavaScript after tags have been added/removed 2023-08-02 17:42:47 +02:00
Martchus 57b6d38e43 Simplify dealing with fields in JavaScript
* Expose PositionInSet as Object (that is still convertable to String)
* Allow assigning field values directly without having to have a
  TagValueObject and without having to have an Array
2023-08-01 00:50:33 +02:00
Martchus c3af3d43e6 Allow dealing with multiple fields values in JavaScript 2023-07-31 23:53:35 +02:00
Martchus 9cb8702d13 Fix use of QT_BEGIN_NAMESPACE when declaring qHash() function 2023-07-30 16:57:19 +02:00
Martchus 8c2ab29927 Make JavaScript processing code compatible with Qt 5 2023-07-30 16:55:35 +02:00
Martchus 11d3cefbcf Bump tagparser version for JavaScript processing feature 2023-07-30 16:25:36 +02:00
Martchus 22953ad0da Allow tag processing via JavaScript 2023-07-30 16:15:19 +02:00
Martchus 857917c23d Bump minor version 2023-07-30 15:58:09 +02:00
Martchus 1017873c28 Apply clang-format 2023-07-25 23:34:39 +02:00
Martchus 1a94b5c85d Update translations 2023-07-23 22:18:12 +02:00
Martchus 4a3aa9c1c1 Fix warnings about implicit conversions when compiling against Qt 6 2023-07-23 22:17:47 +02:00
Martchus 1cb6e06f31 Avoid CMake deprecation warning by bumping version 2023-07-23 20:59:39 +02:00
Martchus b63521330f Update release date 2023-06-08 15:31:43 +02:00
Martchus 7d2fe59996 Workaround lupdate limitation
Defining a function like this apparently leads to
`Qualifying with unknown namespace/class` so let's just drop the namespace.
2023-06-07 23:18:04 +02:00
Martchus 5286273cc5 Bump patch version 2023-06-07 23:16:51 +02:00
Martchus 313b2c60ac Update release date 2023-06-06 11:05:17 +02:00
Martchus 2cd10b7a66 Update to tagparser 12 2023-05-16 22:01:51 +02:00
Martchus a0b9b1f7ba Fix typo 2023-05-08 11:19:13 +02:00
Martchus 791e169dc6 Sync README with tagparser 2023-05-08 11:19:13 +02:00
Martchus 0dd79f5613 Update translations 2023-05-07 22:58:23 +02:00
Martchus 43b46bd312 Update README according to latest changes 2023-05-07 22:58:09 +02:00
Martchus 1b7bc82787 Use group box consistently in auto correction page 2023-05-07 22:24:32 +02:00
Martchus a941ec42c1 Improve wording in a few places of the UI 2023-05-07 22:18:31 +02:00
Martchus a6231b8442 Add the tag type the "not supported for" message refers to 2023-05-03 21:09:36 +02:00
Martchus a18d268ea1 Use `TESTUTILS_ASSERT_EXEC` macro consistently in all CLI tests 2023-05-03 21:04:05 +02:00
Martchus 0e36eec6c7 Suppress "field not supported" for ID3v1 fields if writing ID3v2 as well 2023-05-03 21:00:59 +02:00
Martchus 27a1d6b81e Actually add the `--pedantic` to the `set` operation 2023-05-03 20:41:05 +02:00
Martchus 7a11b944b9 Update link to section about dark mode under Windows
The phrase "not supported" is at this point no longer fitting.
2023-05-03 20:10:27 +02:00
Martchus bc73842ae9 Add test for the --no-color, --validate and --pedantic options 2023-04-29 18:31:21 +02:00
Martchus 40acb0bdec Fix --no-color argument 2023-04-29 12:25:10 +02:00
Martchus ff6cb7d143 Update translations 2023-04-25 23:17:11 +02:00
Martchus 0caff70ebb Apply clang-format 2023-04-25 23:16:52 +02:00
Martchus b7016f98a2 Add pedantic argument to allow returning a non-zero exit code in case of errors
This is especially useful to check whether a file is complete, e.g. one might
use `tageditor info --validate --pedantic --files …` to check whether the
specified files are ok. (If they were truncated there's be an error about it
and the command would return a non-zero exit code. Without pedantic this would
just return in a non-zero exit code if the file couldn't be parsed at all.)
2023-04-25 23:16:15 +02:00
Martchus 1e77e0b9e1 Bump minor version 2023-04-25 23:10:15 +02:00