Commit Graph

7535 Commits

Author SHA1 Message Date
Philipp Wolfer
6e8f4ed5d2 Improve format test coverage 2020-03-06 13:47:38 +01:00
Philipp Wolfer
83be0ae5a3 Added tests for loading unsupported images from tags 2020-03-06 12:46:30 +00:00
Laurent Monin
9353eb25da Merge pull request #1516 from zas/caa_provider_tests
Improve handling of CAA thumbnail sizes, add tests
2020-03-06 11:54:36 +01:00
Laurent Monin
ff006f1924 _CAA_THUMBNAIL_SIZE_ALIASES: remove useless 'large' & 'small' 2020-03-06 10:48:14 +01:00
Bob Swift
d5de2dc159 Use StackItem and FunctionStackItem with script exception calls 2020-03-05 15:35:16 -07:00
Laurent Monin
053f57666a _CAA_THUMBNAIL_SIZE_MAP: use '500' instead of historical 'large' for thumbnail URLs 2020-03-05 15:49:20 +01:00
Laurent Monin
9c261325fe _CAA_THUMBNAIL_SIZE_MAP: use '250' instead of historical 'small' for thumbnail URLs 2020-03-05 15:46:56 +01:00
Laurent Monin
2529d98151 caa_url_fallback_list(): add support for size aliases
It makes it more future-proof, and we'll let us use 500 and 250 instead of historical large and small
Add/modify related tests
2020-03-05 15:43:12 +01:00
Laurent Monin
4892309e95 test_caa_url_fallback_list(): add few explanations 2020-03-05 15:32:54 +01:00
Laurent Monin
ac84aba3a2 test_caa_url_fallback_list(): Improve assertion error message 2020-03-05 15:31:22 +01:00
Laurent Monin
1ee61dd4a7 caa_url_fallback_list() test: assert TypeError exceptions in case of bad args 2020-03-05 15:07:20 +01:00
Laurent Monin
2507644eca Test picard.coverart.providers.caa.caa_url_fallback_list() 2020-03-05 14:59:15 +01:00
Laurent Monin
0578d3d1a7 Merge pull request #1515 from zas/PICARD-1784
PICARD-1784: fix a typo leading to Coverart error: Host not found
2020-03-05 14:18:07 +01:00
Laurent Monin
572e750372 PICARD-1784: fix a typo leading to Coverart error: Host not found
It happens only with releases having PDF cover art images from CAA, and when those images are actually downloaded by Picard (depending on selected options)

This issue was introduced in 30635246f6
2020-03-05 10:38:57 +01:00
Philipp Wolfer
6e3da123af PICARD-1777: Properly support fractional scaling on Windows 10
With Qt 5.14 setting HighDpiScaleFactorRoundingPolicy allows proper scaling to e.g. 150% on Windows 10. Otherwise Qt5 would just scale to the next full factor, e.g. 200%.
2020-03-05 07:26:04 +00:00
Bob Swift
61d9196b92 Fix function line, column in ScriptRuntimeError. Add tests. 2020-03-04 16:14:45 -07:00
Laurent Monin
38a05d6eaa Merge pull request #1508 from rdswift/PICARD-1776
PICARD-1776: Trap ValueError exception in $datetime function
2020-03-04 23:19:45 +01:00
Philipp Wolfer
be5965b884 Bump version for 2.3.2 development 2020-03-04 11:57:07 +01:00
Philipp Wolfer
7f6db1bde6 PCIARD-1783: Fixed regex escaping for tag descriptions in Vorbis and APEv2 2020-03-04 07:02:06 +00:00
Philipp Wolfer
57c8fe209a PICARD-1783: Fix deletion of comment, performer and lyrics tags
This adds tests for deleting comment, performer and lyrics tags and fixes various issues with this in ID3, MP4, Vorbis and APEv2.
2020-03-04 07:02:06 +00:00
Bob Swift
462ba2d74b Remove unnecessary "except..." code. 2020-03-03 15:17:14 -07:00
Bob Swift
1ccaebb28f Fix line, position order and add line number to test. 2020-03-03 15:07:33 -07:00
Bob Swift
64a379aeb2 Use thread-safe function stack. Add platform-specific tests. 2020-03-03 15:07:32 -07:00
Bob Swift
030fd17251 Add function_stack to parser. Revise ScriptRuntimeError args. 2020-03-03 15:06:07 -07:00
Bob Swift
5a8df90074 Added ScriptRuntimeError. Remove unnecessary non-Win tests. 2020-03-03 15:05:42 -07:00
Bob Swift
1c1f2998f4 Trap ValueError exception in $datetime function and add tests 2020-03-03 15:04:19 -07:00
Bob Swift
60d9827fa6 PICARD-1781: Have $find return '' rather than '-1' on not found 2020-03-03 17:19:02 +00:00
Bob Swift
becd3e0d7a Add IndexError check to $firstwords function 2020-02-28 07:47:38 +00:00
Philipp Wolfer
dd5be66728 Release 2.3.1 2020-02-27 20:59:23 +01:00
Philipp Wolfer
dad572fa8f Updated translations 2020-02-27 20:56:49 +01:00
Philipp Wolfer
25250d710c Update translations 2020-02-27 20:48:56 +01:00
Philipp Wolfer
c1c9cf6bf6 PICARD-1774: Fix MultiValue returning [] on empty value
This also fixes issues with some functions:
- $lenmulti with empty value must return 0
- $foreach and $map must loop zero times on empty value
2020-02-27 08:25:01 +00:00
Ray
3c3a4c2c8e PICARD-1771: Scoring change to ignore undesired release types 2020-02-27 08:07:10 +01:00
Philipp Wolfer
cc49ac34a4 CI: Add fallback to git describe to work with no tags available 2020-02-27 07:58:14 +01:00
Bob Swift
05ea186c29 Fix negative length handling in $num 2020-02-26 22:25:44 +00:00
Bob Swift
1bd45a0c59 Add ZeroDivisionError handling in $mod function 2020-02-26 22:22:47 +00:00
Philipp Wolfer
bfb467588c CI: Do not run archive artifacts for macOS always() 2020-02-25 17:37:50 +01:00
Philipp Wolfer
fc87a788a9 fix-header.py: Update alias list 2020-02-24 15:44:26 +01:00
Philipp Wolfer
2ab612173a Fixed Windows Store patch version
Next patch version needs to be larger than 6975 to avoid update issues, since the previous release had 2.3.6975.
2020-02-24 15:22:11 +01:00
Philipp Wolfer
dcd9fc05a8 Add 2.3 to api_versions 2020-02-24 14:47:56 +01:00
Philipp Wolfer
1948f0c116 Fix build numbers for CI builds
Count the number of commits on the master branch since last release tag. This reduces the size and avoids issues for building the patch version for the Windows store app, since this is limited to a maximum of 65535.
2020-02-24 13:46:57 +00:00
Laurent Monin
4991b0e56e Update picard.pot: mostly to resync line numbers after fix_header was run 2020-02-24 12:16:00 +01:00
Laurent Monin
8245afbd5b Merge pull request #1500 from zas/run_fix_header
Run fix header script on all Python source files
2020-02-24 10:56:57 +01:00
Philipp Wolfer
eafac31b3a Bump version number to 2.3.1dev1 2020-02-24 10:44:32 +01:00
Philipp Wolfer
b03e4576b2 CI: Fix build numbers for macOS and Windows packages
Fetch the entire git history for macOS and Windows packaging builds to create a build number. This is especially important for the Windows store builds.
2020-02-24 10:28:01 +01:00
Laurent Monin
6b5e852a60 Run fix-header on *.py 2020-02-24 10:25:09 +01:00
Laurent Monin
9093abdff7 fix-header.py: output progress message (to stderr) 2020-02-24 10:07:53 +01:00
Laurent Monin
2f8985a478 fix-header.py: Fix IndexError when file is empty 2020-02-24 10:07:05 +01:00
Philipp Wolfer
b142fd6315 Updated Windows store language
Add Spanish, remove Chinese (China) as we don't have complete store description for it yet. Also use en-us as default ENglish, as this is mandatory to fill in. Let's not manage multiple English variants for now to reduce overhead.
2020-02-24 10:04:57 +01:00
Philipp Wolfer
3029d4a432 Updated picard.pot 2020-02-24 09:53:38 +01:00