Commit Graph

7535 Commits

Author SHA1 Message Date
Laurent Monin
a6a667b4a5 Merge pull request #176 from zas/metadatabox_columns_resize
Fix save/restore of metadata box column sizes.
2013-11-26 02:49:35 -08:00
Laurent Monin
c7d0a2c5f6 Revert "Merge pull request #159 from Sophist-UK/sophist_fix_compilation_identification"
This reverts commit 1c2a8a5890, reversing
changes made to 76d3493066.

This merge was premature.
2013-11-26 08:18:49 +01:00
Laurent Monin
25212db0c5 Merge pull request #172 from phw/browser_integration_localhost_only
Limit browser integration to localhost by default.

It can be changed in Advanced > Network > Browser Integration options.
Browser Integration options changes are now applied only after user validation.
2013-11-25 15:13:21 -08:00
Laurent Monin
1c2a8a5890 Merge pull request #159 from Sophist-UK/sophist_fix_compilation_identification
Fix compilation flag incorrectly set by Picard, track featured artists don't indicate compilation.

Sophist explained:
Ideally the MB database would show a secondary type of Compilation accurately, but since it (presumably) doesn't, Picard tries to determine whether it is a compilation by seeing if all the tracks are by the same artist, the implication being that it is a compilation album if there are tracks with different artists.

There are a few problems with this:

1. Picard was comparing both primary and secondary track artists, so if all tracks have the same main artist but some also have featured artists (which is NOT a compilation), then Picard was flagging this (incorrectly) as a compilation.

2. Picard was not checking the release-group secondary-type field for Compilation - so e.g. a Greatest Hits album is a compilation, but since often all tracks have the same artist, Picard was flagging this (incorrectly) as NOT a compilation.
2013-11-25 14:42:22 -08:00
Michael Wiencek
21c61b4bec Perform file locking on win32
The functions _insert_bytes_no_mmap and _delete_bytes_no_mmap call
mutagen.util.lock, which in turn uses the fnctl module which isn't
available on Windows.
2013-11-25 16:29:17 -06:00
Laurent Monin
76d3493066 Move CAA_HOST and CAA_PORT to const.py 2013-11-25 21:03:45 +01:00
Laurent Monin
ab4ae93ec7 Merge pull request #171 from phw/caa_host_constant
Add constants for cover art archive host and port.
2013-11-25 11:53:26 -08:00
Wieland Hoffmann
bfa59c989b replaygain: Fix the calculation on single tracks 2013-11-25 13:55:33 +01:00
Wieland Hoffmann
3f3ccde421 replaygain: Don't calculate album gains over NATs
The album gain values are now calculated per track and still saved.
2013-11-25 13:50:56 +01:00
Wieland Hoffmann
1e513b743e replaygain: Use a defaultdict in split_files_by_type 2013-11-25 13:29:13 +01:00
Wieland Hoffmann
736a19394f Remove superfluous variables
Those are write-only variables.
2013-11-25 13:12:53 +01:00
Wieland Hoffmann
d0aa59ed4d browser_lookup: If the item is a DataObject, use its already known id
DataObject objects are initialized with an mbid, we can use that to perform the
browser lookup.

Fixes PIACRD_86
2013-11-17 17:02:55 +01:00
Wieland Hoffmann
5b6cedaae7 Remove an unused import 2013-11-17 17:02:55 +01:00
Lukáš Lalinský
549ae3c353 New AcoustID API key 2013-11-12 14:23:45 +01:00
Laurent Monin
4c64a277cd Fix save/restore of metadata box column sizes.
In some cases, mostly after maximizing/restoring window a few times,
metadata table columns were smaller and smaller due to wrong calculations.
Also when window was resized, weird things were appearing with those columns.
This patch is handling those events much better (but still not perfect).
Horizontal scroll was changed to be per pixel instead of per column.

It tries to handle scrollbar appeareance/disappearance, maximize/minimize cycles, restart cycles, elegantly.
2013-11-11 12:02:48 +01:00
Wieland Hoffmann
ddea99ef2a Regenerate picard.pot 2013-11-08 17:29:01 +01:00
Wieland Hoffmann
d4198b116a Add the starting directory to NEWS.txt 2013-11-08 17:28:48 +01:00
Wieland Hoffmann
210d5f7299 Change the text for selecting the starting directory
It was "Open this directory when starting:" which is not what's
happening: the selected directory would only be visible if the user is
using the file browser, but not if he's only using the "Add folder"
button.
2013-11-08 17:15:33 +01:00
Sophist
4e41139a97 Compilation if set in MB releasegroup releasetype 2013-11-08 07:54:15 +00:00
Sophist
aff0fa7b93 Remove unnecessary comment 2013-11-08 07:54:14 +00:00
Sophist
540b35e7cb Track featured artists don't indicate compilation
This fix only uses primary track artist to determine whether an album is
a compilation. Featured artists no longer influence this.
2013-11-08 07:54:13 +00:00
Laurent Monin
48063ac594 Add action 'Set as starting directory' to file browser context menu 2013-11-07 12:10:50 +01:00
Laurent Monin
a5b4d30dae Reduce code redundancy and use starting directory for Add folder action 2013-11-07 11:32:40 +01:00
Laurent Monin
313e0478e6 Add an option in Advanced>Interface to set starting directory.
By default, Picard remembers last directory used and restores it on start,
but this isn't not always desirable, one may prefer to start on the same directory
each time.
This patch allows one to change default behavior and set a starting directory.
2013-11-07 11:04:43 +01:00
Frederik "Freso" S. Olesen
a5df10243c Have Travis ping #musicbrainz-devel with test results.
Per discussion in pull request #173:
https://github.com/musicbrainz/picard/pull/173

Documentation for further tweaks:
http://about.travis-ci.org/docs/user/notifications/
2013-11-01 20:44:13 +01:00
Johannes Dewender
2f113a1a48 link to wiki for Windows instructions 2013-11-01 18:19:01 +01:00
Johannes Dewender
70472b90e1 structure the Windows notes better 2013-11-01 17:51:07 +01:00
Johannes Dewender
1a616957a4 fix install/build instructions for Windows
This was recently done by somebody and that is the information
that was missing.
2013-11-01 17:14:53 +01:00
Frederik "Freso" S. Olesen
d4ba356845 Also apt-get development files for libdiscid.
This will hopefully make python-libdiscid build.
2013-10-25 00:11:16 +02:00
Frederik "Freso" S. Olesen
25c6e05b07 Remove Python 2.6 from Travis' testing matrix.
Since we rely on apt-get to install PyQt4, it will only be available
for Python 2.7. :(
2013-10-25 00:03:26 +02:00
Frederik "Freso" S. Olesen
696373b33f Make Travis apt-get libdiscid0. 2013-10-24 23:44:54 +02:00
Frederik "Freso" S. Olesen
b6fc657487 Initial stab at a Travis configuration file. 2013-10-24 23:24:42 +02:00
Philipp Wolfer
7339f7b1e3 Added a constant for the acoustid port. 2013-10-22 18:39:40 +02:00
Philipp Wolfer
ffd5580a9a Added a constant for the coverart acrhive port. 2013-10-22 18:36:23 +02:00
Philipp Wolfer
e6272f1da5 Apply changes to browser integration only on save.
Fixes the case where the user disables the browser integration checkbox but does not save the settings. This lead to the browser integration being disabled while the option was still enabled.
2013-10-22 18:32:09 +02:00
Philipp Wolfer
83053e44a2 Add option to limit browser integration to localhost.
This will make Picard's browser integration to listen on localhost only, as listening on the public interface is a possible security and privacy concern. There is still an option to enable listening on the external interface to allow for special requirements such as using the Picard Barcode Scanner android app.
2013-10-22 18:30:38 +02:00
Philipp Wolfer
c016925b77 Add constant for coverart archive host.
Signed-off-by: Philipp Wolfer <ph.wolfer@gmail.com>
2013-10-22 08:52:43 +02:00
Ionuț Ciocîrlan
f1e8257d5a Merge remote-tracking branch 'upstream/master'
Conflicts:
	picard/file.py
2013-10-20 18:34:51 +03:00
Wieland Hoffmann
bb8d859c29 Merge branch 'master' of github.com:musicbrainz/picard into mb-master
Conflicts:
	NEWS.txt
2013-10-17 11:33:50 +02:00
Wieland Hoffmann
0c940cc6c5 Update the example metadata even more 2013-10-17 11:31:12 +02:00
Sophist
c99c09be5a Update example data to match changes to metadata 2013-10-17 11:28:49 +02:00
Frederik "Freso" S. Olesen
d20b878af6 Make AcoustID use Recording IDs instead of Track IDs. (PICARD-526) 2013-10-17 11:28:48 +02:00
Sophist
3995b39a5d Add News. 2013-10-17 11:28:46 +02:00
Sophist
2441fd05de Add explanatory comment 2013-10-17 11:28:26 +02:00
Sophist
577f2bcabf Fix error when installing over existing plugins
As reported in PICARD-444, the following error is received when
installing over an existing plugin:

Traceback (most recent call last):
File ".\picard\ui\options\plugins.py", line 134, in open_plugins
self.install_plugin(path)
File ".\picard\ui\options\plugins.py", line 148, in install_plugin
self.tagger.pluginmanager.install_plugin(path, dest)
File ".\picard\plugin.py", line 198, in install_plugin
same_file = os.path.samefile(path, dest) if dest_exists else False
AttributeError: 'module' object has no attribute 'samefile'
2013-10-17 11:28:26 +02:00
Sophist
0f683b8b92 Fix plugin install code
Fix following errors:

1. On plugin install:
Traceback (most recent call last):
File ".\picard\ui\options\plugins.py", line 133, in open_plugins
self.install_plugin(path)
File ".\picard\ui\options\plugins.py", line 138, in install_plugin
dest = os.path.join(self.tagger.user_plugin_dir, file)
AttributeError: 'Tagger' object has no attribute 'user_plugin_dir'

2. On Open Plugin Folder:
Traceback (most recent call last):
File ".\picard\ui\options\plugins.py", line 151, in open_plugin_dir
QtGui.QDesktopServices.openUrl(QtCore.QUrl(self.loader %
self.tagger.user_plugin_dir, QtCore.QUrl.TolerantMode))
AttributeError: 'Tagger' object has no attribute 'user_plugin_dir'.

Code missed from commit 7c4fdf765c on
2013-06-08.
2013-10-17 11:28:26 +02:00
Sophist
0a56791b67 Add News. 2013-10-17 11:28:23 +02:00
Sophist
13d0411ad9 Add recordingtitle as per PICARD-515
This fix adds a %_recordingtitle% script variable for use in renaming as
per PICARD-515.
2013-10-17 11:26:55 +02:00
Sophist
32db60862b Fix stupid coding error in mimeo comment response. 2013-10-17 11:26:55 +02:00
Sophist
2a00c65808 Fix issue with date format yyyy-mm
MB sometimes gives dates in form yyyy-mm. Mutagen cannot save id3v23
dates in this format and truncates them to yyyy. Then they don't match
when the file is reloaded.

This fix detects New metadata dates in this format and truncates them.
2013-10-17 11:26:55 +02:00