Commit Graph

7535 Commits

Author SHA1 Message Date
Bob Swift
9970c6f4fb Use list boxes for coverart type selection
- Sort lists and enable / disable buttons as appropriate
- Allow multiple selections, and add button to reset to defaults.
2018-08-27 09:54:40 -06:00
Bob Swift
6cf71d12c8 Update coverart type acceptance logic 2018-08-27 09:53:39 -06:00
Laurent Monin
81e16ad7a3 Merge pull request #925 from zas/PICARD-1308
PICARD-1308: fix incorrect version number in Info.plist (macosx)
2018-08-27 10:36:38 +02:00
Laurent Monin
718ab8627d PICARD-1308: Set app version for macosx
Fix up info.plist and tidy up.

https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-111349
http://hboon.com/difference-between-cfbundleversion-and-cfbundleshortversionstring/
2018-08-27 10:16:24 +02:00
Philipp Wolfer
e11408ee0a Provide cover art metadata in cover art naming script
Resolves PICARD-1319
2018-08-27 08:36:13 +02:00
Philipp Wolfer
9457559d84 Update pot file 2018-08-26 13:45:24 +02:00
Philipp Wolfer
2f1943717e Merge pull request #928 from phw/PICARD-1245-itunes-compatible-grouping-and-work
PICARD-1245: Add an option to save grouping and work compatible with iTunes
2018-08-26 13:34:17 +02:00
Philipp Wolfer
002cf52dea Tests: Reduced redundancy in formats tests 2018-08-25 09:34:10 +02:00
Philipp Wolfer
38fa2b0adc Tests: Settings cleanup is not needed
A fresh copy of settings is assigned on setUp
2018-08-25 09:14:59 +02:00
Philipp Wolfer
3c9adf34a0 PICARD-1245: Added tests 2018-08-24 17:31:12 +02:00
Philipp Wolfer
61a45b0f28 Add an option to save grouping and work compatible with iTunes
Will change the standard mapping from grouping -> TIT1, work -> TXXX:Work to grouping -> GRP1, work -> TIT1

Resolves PICARD-1245
2018-08-24 16:32:27 +02:00
Laurent Monin
fd9678e81c Merge pull request #923 from zas/import_cleanup
Import cleanup using isort
2018-08-22 09:58:47 +02:00
Laurent Monin
5329e3592a Clean up and sort imports using isort
Add a config for isort (https://github.com/timothycrosley/isort)
Run isort -rc . and make import style consistent across files
Add a note about `isort` in CONTRIBUTING.md
2018-08-22 08:51:25 +02:00
Laurent Monin
da1a913243 Merge pull request #924 from zas/PICARD-1318
PICARD-1318: Fix dictionary changed size during iteration error
2018-08-21 09:12:47 +02:00
Laurent Monin
c5f8237bba PICARD-1318: Fix dictionary changed size during iteration error
It happens when looking up a track with script $set(newartists, %artists%)
2018-08-20 14:08:11 +02:00
Laurent Monin
35b5a085a6 Merge pull request #922 from samj1912/clearlog
PICARD-1310: Fix crash on clearing the log, due to wrong var. name
2018-08-19 10:41:43 +02:00
Philipp Wolfer
a59cc5100a Merge branch 'master' into clearlog 2018-08-16 15:25:22 +02:00
Philipp Wolfer
6a1dba750f Merge pull request #921 from yvanzo/fix-typo-par
Fix typo (unmatched parenthesis)
2018-08-15 16:24:22 +02:00
Sambhav Kothari
24722cc47c PICARD-1310: Fix crash on clearing the log, due to wrong var. name 2018-08-12 18:06:58 +01:00
yvanzo
a124a4ba2f Update pot file 2018-08-11 14:31:02 +02:00
yvanzo
0ec9e2a657 Fix typo (unmatched parenthesis) in error display 2018-08-11 14:19:37 +02:00
Sambhav Kothari
3967bb7914 Add a script to upload a new release to ftp 2018-08-10 19:45:31 +05:30
Sambhav Kothari
bcdb0e6392 Bump version 2018-08-10 19:34:12 +05:30
Sambhav Kothari
e6f9c458a1 Update version to 2.0.3 2018-08-10 17:51:33 +05:30
Sambhav Kothari
aa3f8d28d1 Add release notes for 2.0.3 2018-08-10 17:51:33 +05:30
Sambhav Kothari
fecc1c1230 Update pot file 2018-08-10 17:37:18 +05:30
Sambhav Kothari
5c6c51cb58 Update .po files 2018-08-10 17:36:14 +05:30
Laurent Monin
2413504540 Merge pull request #920 from samj1912/pr-899
PICARD-1122: Fix preferred release types not working
2018-08-09 21:28:46 +02:00
Xincognito10
ab7de69dcd PICARD-1122: Fix preferred release types not working
This commit implements an algorithm to fetch a release
that matches the preferred release types outlined in the
settings page. Further testing is required.
2018-08-10 00:44:22 +05:30
Sambhav Kothari
715713ec75 Fix incorrectly named function call 2018-08-09 21:17:25 +05:30
Laurent Monin
478b8fc03f Merge pull request #919 from antlarr/fix-crash-in-getcwd
PICARD-1306: Fix crash opening the options dialog if cwd doesn't exist
2018-08-08 14:47:54 +02:00
Antonio Larrosa
3985526c05 PICARD-1306: Fix crash opening the options dialog if cwd doesn't exist
Handle FileNotFoundError exceptions raised from os.path.abspath and
os.path.realpath used by the options dialog for the examples in the
file naming tab.

Fixes PICARD-1306
2018-08-08 16:33:52 +05:30
Sambhav Kothari
08a7e754e9 Merge pull request #916 from antlarr/fix-unicode-path-support
PICARD-1207: Fix handling paths with unicode characters on python3
2018-08-08 15:12:01 +05:30
Antonio Larrosa
2eb01c2063 Add a test that checks move_additional_files work with unicode paths
This is to test PICARD-1207
2018-08-08 14:59:33 +05:30
Antonio Larrosa
f95a848c82 PICARD-1207: Fix handling paths with unicode characters on python3
When moving additional files, the call to encode_filename encodes the
path to the original filename converting the variable from str to bytes,
provoking the next exception when calling shutil, which only accepts
strings (the documentation don't specifically mention that for shutil.move,
but it does for copy, copyfile, copymode, etc.)

Traceback (most recent call last):
  File "./picard/util/thread.py", line 47, in run
    result = self.func()
  File "./picard/file.py", line 222, in _save_and_rename
    self._move_additional_files(old_filename, new_filename)
  File "./picard/file.py", line 435, in _move_additional_files
    shutil.move(old_file, new_file)
  File "/usr/x86_64-pc-linux-gnu/lib/python3.6/shutil.py", line 551, in move
    if _destinsrc(src, dst):
  File "/usr/x86_64-pc-linux-gnu/lib/python3.6/shutil.py", line 565, in _destinsrc
    if not src.endswith(os.path.sep):
TypeError: endswith first arg must be bytes or a tuple of bytes, not str

Also, other functions like os.path.dirname, os.path.isdir, os.stat,
os.utime ... allow to be passed a string, instead of the encoded path in
a bytes variable. So I removed the use of encode_filename for all cases
that either require or allow a string to be passed so we don't do
unnecessary processing neither.

I checked this fixes PICARD-1207.
2018-08-08 14:59:33 +05:30
Sambhav Kothari
1ee4ec72e7 Merge pull request #918 from antlarr/fix-move-files-nat
PICARD-1305: Fix crash when the file doesn't belong to an album
2018-08-08 14:57:45 +05:30
Antonio Larrosa
ef4130e785 Fix crash when the file doesn't belong to an album
If the file doesn't belong to an album, we have to load a NAT and then
move the file there. Also fix the call to self.tagger.move_file_to_nat
which was missing a parameter (the file to move)
2018-08-08 14:51:06 +05:30
Sambhav Kothari
7fcafe7822 Merge pull request #913 from metabrainz/revert-859-picard-259
Revert "PICARD-259: Allow tagger script to access file metadata"
2018-08-02 23:18:32 +05:30
Sambhav Kothari
be8c601c8f Revert "PICARD-259: Allow tagger script to access file metadata" 2018-08-02 22:03:20 +05:30
Sambhav Kothari
fb1d99c06c Merge pull request #917 from samj1912/picard1292
PICARD-1292: Fix default install location for windows
2018-08-02 01:00:38 +05:30
Sambhav Kothari
30af2d2b45 PICARD-1292: Fix default install location for windows 2018-08-02 00:40:02 +05:30
Sambhav Kothari
e31b6f9944 Merge pull request #915 from antlarr/fix-crashes
PICARD-1302, PICARD-1303, PICARD-1304: Fix crashes
2018-08-02 00:32:55 +05:30
Sambhav Kothari
125789560a Merge branch 'master' into fix-crashes 2018-08-01 20:55:02 +05:30
Sambhav Kothari
7e9b5810d6 Merge pull request #906 from phw/run-scripts
PICARD-1289: Add context menu entry to run any script on demand
2018-08-01 20:53:23 +05:30
Antonio Larrosa
497d4ecb74 Catch specific exceptions 2018-08-01 10:30:34 +02:00
Antonio Larrosa
7af9ca9d75 Parse correctly more tracknumber formats
item.tracknumber can be a number (3), a string containing a number ('3')
or a string containing a number and a total ('3/10'), so we now parse
all cases correctly and just fallback to return 0 in all other cases
2018-08-01 08:51:36 +02:00
Sambhav Kothari
0a907b8628 Merge branch 'master' into run-scripts 2018-08-01 11:08:18 +05:30
Antonio Larrosa
8e41abe1d8 Fix crash when cluster contains items with no track number
int('') generates an exception, but in that case we don't want to return
'' but 0, since otherwise we may end comparing an int and a str.

Fixes PICARD-1304
2018-07-31 18:27:06 +02:00
Antonio Larrosa
02aa67249b Qt5's QUrl doesn't have encodedHost or queryItem methods
It seems these lines were forgotten and not ported from Qt4 to Qt5,
which made picard crash when dragging an image from a google images'
search result and dropping it into the coverartbox widget.
2018-07-31 13:14:02 +02:00
Antonio Larrosa
717be2627c Fix exception when a release doesn't have any tracks
When trying to match a cluster with the release at
https://musicbrainz.org/release/c8b5f0e6-96d9-4160-a1d9-ddcf005d4482
picard raised an exception because 'track-count' and 'media' were
not defined in the release object.
2018-07-31 13:11:14 +02:00