17 Commits

Author SHA1 Message Date
Laurent Monin
02a023b5c5 Move MainAction to new picard.ui.enums
- prevent circular imports
- no need to initialize mainwindow module when only imported this enum
- move mainwindow/create.py to mainwindow/actions.py (it makes more sense)
- drop local imports that were added to prevent circular imports
2024-05-05 11:46:08 +02:00
Laurent Monin
048c22c28c action_enabled() -> enable_action()
Suggested by outsidecontext
2024-05-05 11:04:46 +02:00
Laurent Monin
1995a4b66d Move mainwindow.py to mainwindow/__init__.py, and mainwindow_actions to mainwindow/actions.py 2024-05-04 18:08:18 +02:00
Laurent Monin
4a1e98d07d submit_acoustid_action -> MainAction.SUBMIT_ACOUSTID 2024-05-04 17:00:29 +02:00
Laurent Monin
7db474cc46 MainWindow: Drop action-specific enable_submit(), in favor of action_enabled() 2024-05-03 22:23:09 +02:00
Philipp Wolfer
e9c6df2d3e Implement __bool__ and __repr__ for AcoustID Submission
Implementing __bool__ avoids checks like "if submission" to use __len__.
2022-02-14 09:55:40 +01:00
Philipp Wolfer
88e7766e5e Added test for AcoustID Submission.args without MBID 2022-02-14 08:38:43 +01:00
Philipp Wolfer
e119ef5d93 Convert AcoustID Submission.args to property 2022-01-23 18:13:10 +01:00
Philipp Wolfer
62da04f831 PICARD-2396: Adjust AcoustID payload size calculation
Needs to be adjusted to accomodate the potential larger payload if metadata gets submitted
2022-01-22 17:10:12 +01:00
Philipp Wolfer
1464838fc0 PICARD-2396: Add AcoustID Submission.get_args 2022-01-22 17:10:12 +01:00
Philipp Wolfer
11d71bcc8c PICARD-2396: Don't submit AcoustID on large duration difference
If the difference between the file's and the recording's duration exceeds a threshold, do not submit this pair to AcoustID.
2022-01-20 22:55:15 +01:00
Philipp Wolfer
c0e6243a13 PICARD-1926: Adjust test cases for new config structure 2020-12-25 12:37:15 +01:00
Laurent Monin
3bec87d1e4 Fix up AcoustidManager tests 2020-12-11 16:13:16 +01:00
Laurent Monin
6b5e852a60 Run fix-header on *.py 2020-02-24 10:25:09 +01:00
Laurent Monin
3f25bda3c8 Fix a bunch of flake8 warnings, mostly cosmetic changes 2020-02-21 21:43:40 +01:00
Philipp Wolfer
dce902f192 PICARD-1688: Added tests for AcoustID submission 2020-02-11 13:35:04 +01:00
Philipp Wolfer
63cb098006 PICARD-34: Fingerprint indicators shows submission status
The fingerprint indicator is shown in red for unsubmitted fingerprints and gray for submitted fingerprints. The tooltip explains the status.
2020-01-13 15:39:54 +01:00