Commit Graph

3193 Commits

Author SHA1 Message Date
Laurent Monin
994da0b1ac Prevent text to be drawn over the clear edit icon 2014-07-15 17:55:09 +02:00
Laurent Monin
d7622c2ffc Use QIcon.fromTheme() and use our own ressource as fallback 2014-07-15 12:56:31 +02:00
Laurent Monin
2b827b4171 Add edit clear icon as resource 2014-07-14 13:11:31 +02:00
Laurent Monin
b67ab2fd87 Add a clear button to the search line edit 2014-07-13 20:41:46 +02:00
Wieland Hoffmann
84ffe3502f Fix the last commit
because I forgot to `git add` the file again
2014-06-28 21:14:13 +02:00
Wieland Hoffmann
50bc0755af Reset self.form_values after generating the HTML file
Otherwise, :qa
2014-06-28 21:12:52 +02:00
Laurent Monin
233e1403cb Merge pull request #345 from phw/fix-script-function-with-zero-arguments
Fix evaluation of script functions with zero arguments.
2014-06-26 11:18:15 +02:00
Philipp Wolfer
c6446626aa Better fix for script functions with zero arguments. 2014-06-25 22:08:10 +02:00
Laurent Monin
56d4d74ae0 Update translation files 2014-06-23 12:13:44 +02:00
Laurent Monin
21932662af Update picard.pot file 2014-06-23 12:08:44 +02:00
Laurent Monin
1884e4abba Merge pull request #347 from phw/fix-load-options-on-script-error
Load the options dialog even if there is a ScriptError.
2014-06-23 12:03:44 +02:00
Laurent Monin
d159fd6abe Merge pull request #346 from phw/plugin-fixes
Fixed plugin precedence for the first plugin in plugin list.
2014-06-23 12:03:22 +02:00
Philipp Wolfer
f2f8df11da Load the options dialog even if there is a ScriptError.
Before a ScriptError, which is rasied for e.g. a missing function, the options dialog would not show up. This prevents the user from even fixing the scripting.
2014-06-22 20:48:53 +02:00
Philipp Wolfer
aa89e5a3a3 Fixed plugin precedence for the first plugin in plugin list.
If a plugin was in both the system wide and ther user's plugin folder and the plugin was the first in the list the plugin was loaded and listed twice.
2014-06-22 20:25:46 +02:00
Philipp Wolfer
45984d0172 Fix evaluation of script functions with zero arguments. 2014-06-22 20:12:56 +02:00
Laurent Monin
050b81a16c Merge pull request #344 from xlotlu/master
filename shortening needs file extension to make decisions.
2014-06-21 20:09:42 +02:00
Ionuț Ciocîrlan
c60751559e filename shortening needs file extension to make decisions.
closes #PICARD-613
2014-06-21 20:26:14 +03:00
Wieland Hoffmann
d95a7221b1 Merge branch 'sophist_fix_default_naming_script' of https://github.com/Sophist-UK/picard 2014-06-20 10:31:49 +02:00
Wieland Hoffmann
9dfecd60bf Merge branch 'video' of https://github.com/phw/picard 2014-06-20 10:30:47 +02:00
Wieland Hoffmann
f41d3203fd Merge branch 'albumartist_website_fix' of https://github.com/zas/picard 2014-06-20 10:27:59 +02:00
Laurent Monin
e5953457b6 Not having 'relation_list' is not invalid, do not emit error message
Error message is still emitted if metadata has no artist (which shouldn't happen for artist query)

E: 17:27:06 Album Artist Website: u'2451caed-5d09-456f-b640-5880b6060a64': MusicBrainz artist xml result not in correct format - {'attribs': {}, 'text': u'', 'children': {u'metadata': [{'attribs': {}, 'text': u'', 'children': {u'artist': [{'attribs': {u'type': u'Group', u'id': u'2451caed-5d09-456f-b640-5880b6060a64'}, 'text': u'', 'children': {u'name': [{'attribs': {}, 'text': u'Sir Frankie Crisp', 'children': {}}], u'sort_name': [{'attribs': {}, 'text': u'Sir Frankie Crisp', 'children': {}}]}}]}}]}}
2014-06-20 10:10:10 +02:00
Laurent Monin
033d88362b Fix up albumartist_website plugin debug message
Traceback (most recent call last):
  File "picard\webservice.pyo", line 285, in _process_reply
  File "C:\Program Files (x86)\MusicBrainz Picard\plugins\albumartist_website.py", line 95, in website_process
    log.debug("%s: %r: Artist Official Homepages = %s", PLUGIN_NAME, artistId, url)
NameError: global name 'url' is not defined
2014-06-20 10:01:16 +02:00
Laurent Monin
68f88a73fe Merge pull request #339 from zas/config_path_in_debug
Display configuration file or registry path in debug log
2014-06-14 15:19:30 +02:00
Laurent Monin
c703d2cbb1 Merge pull request #338 from zas/cover_art_show
Double-clicking on images in info dialog open them in external viewer
2014-06-14 15:19:11 +02:00
Philipp Wolfer
4e89212940 Support .ogv video files 2014-06-13 19:17:51 +02:00
Philipp Wolfer
0793d71e67 Support ASF video file formats (reverted from commit 7494155d0c) 2014-06-13 19:16:40 +02:00
Laurent Monin
30c48db06c Display configuration file or registry path in debug log 2014-06-10 14:24:48 +02:00
Wieland Hoffmann
094094b1dd Add coverartproviders to the package list 2014-06-01 10:40:25 +02:00
Laurent Monin
9ddab79cc9 Double-clicking on images in info dialog open them in external viewer 2014-05-29 11:09:02 +02:00
Laurent Monin
ad2669331c Merge pull request #332 from zas/cover_art_pdf
Improve handling of PDF cover art from CAA
2014-05-29 10:10:01 +02:00
Laurent Monin
853e7e9bb5 images_to_be_saved_to_tags(): use can_be_saved_to_tags property 2014-05-29 09:30:18 +02:00
Laurent Monin
f544a4f44f Eventually raise CoverArtImageIOError when getting CoverArtImage.data 2014-05-29 09:13:26 +02:00
Laurent Monin
9ab5d72594 Introduce CaaThumbnailCoverArtImage and properties to handle thumbnails
- can_be_saved_to_tags
PDFs cannot be saved to tags as today

- can_be_saved_to_disk
thumbnails shouldn't saved to disk (in audio files directory), they are only used for display

- can_be_saved_to_metadata
thumbnails aren't saved to audio files metadata
2014-05-29 09:02:26 +02:00
Laurent Monin
54cc1e4c8d CaaCoverArtImage: describe thumbnail and is_thumbnail 2014-05-28 20:39:05 +02:00
Laurent Monin
442b41ed4a Merge pull request #336 from zas/cover_art_providers
Split cover art providers to their own classes and files
2014-05-28 17:30:13 +02:00
Laurent Monin
30eac04cbf Display thumbnail image for PDFs in info dialog
It requires few changes in CaaCoverArtImage, basically one property (is_thumbnail) to indicate
the image is a thumbnail so it isn't added to metadata.
And a thumbnail property to link main image to its thumbnail.
2014-05-28 17:29:41 +02:00
Laurent Monin
c7f224fe8f Move _queue_from_caa() code to _caa_json_downloaded(), simplify 2014-05-28 17:06:18 +02:00
Laurent Monin
0e6572fad3 CaaCoverArtImage: specify constructor, accept is_front 2014-05-28 16:57:19 +02:00
Laurent Monin
fdab5efa78 Download pdf cover art only if needed, download main file, not thumbnails.
This patch solves 2 issues:
- pdf files only need to be saved if "save_images_to_files" option is set, PDFs are never embedded in tags
- ignore "caa_image_size" option which causes thumbnail of the pdf to be downloaded instead of the main file
2014-05-28 16:57:14 +02:00
Laurent Monin
91b8a5ad20 Improve handling of PDF cover art from CAA
- detect PDFs in imageinfo
- exclude PDFs from images to be written to tags
- display info about PDF in info dialog (need more work)
2014-05-28 16:53:04 +02:00
Laurent Monin
0988a7db37 Describe CoverArtProvider class 2014-05-28 16:12:02 +02:00
Laurent Monin
c84173190f Fix up CoverArtProvider.match_url_relations description 2014-05-28 15:35:13 +02:00
Laurent Monin
8c651af501 Clarify queue_downloads() return values 2014-05-28 15:33:31 +02:00
Laurent Monin
e50bc12a88 Remove unneeded wrapper methods 2014-05-28 15:28:06 +02:00
Laurent Monin
778c9a0aff Drop now unused caa_front_found 2014-05-28 15:19:23 +02:00
Laurent Monin
5db4d18851 Raise NotImplementedError 2014-05-28 15:17:16 +02:00
Laurent Monin
419fa117d2 Merge pull request #337 from Sophist-UK/sophist_include_select_for_py2app
Include select module in mac build.
2014-05-28 15:15:25 +02:00
Sophist
dead1fd34e Include select module in mac build.
See [Picard-607](http://tickets.musicbrainz.org/browse/PICARD-607) for
requirement.
2014-05-28 10:29:42 +01:00
Laurent Monin
b4b1619187 Introduce CoverArtProvider.match_url_relations() to reduce code redundancy 2014-05-27 16:36:30 +02:00
Laurent Monin
14b8bd85e7 Split cover art providers to their own classes and files
- add extension point so one can write a cover art provider plugin
- minor changes to ease the move
2014-05-27 13:57:35 +02:00