Commit graph

2307 commits

Author SHA1 Message Date
reiv
32934bd16a Preserve album art on re-import (fixes #314)
Copy the replaced album's artpath attribute to the new album. This
causes the image file to be moved along with the music files.
2015-11-03 22:43:05 +01:00
reiv
33ea9f1c10 Revert all changes on this branch thus far
Revert "PEP8 amendments"

This reverts commit 413fe6bbfd.

Revert "Importer: Delete orphaned album art on..."

This reverts commit 629a80a1d1.
2015-11-03 11:33:35 +01:00
reiv
413fe6bbfd PEP8 amendments 2015-11-01 16:12:25 -08:00
reiv
629a80a1d1 Importer: Delete orphaned album art on re-imports
First step towards fixing #314.
2015-11-01 16:10:56 -08:00
Adrian Sampson
4c6dbe6780 Remove seen_idents set
This was used since time immemorial to keep track of recently-imported music
that hasn't hit the database yet. I created it when the importer only added
music to the database at the end of the pipeline, after doing all the work to
manipulate the metadata. Now, for several reasons, we add the music
immediately after the user sees it and then manipulate the records *in the
database*. With the latest change, which gets rid of the last separation
between UI and database-adding, we no longer need to do this.
2015-10-24 13:06:16 -07:00
Adrian Sampson
079822b893 Importer: no separate stage for applying metadata
It's cheaper and easier to just apply metadata in the UI thread. The
advantage, then, is that we no longer need to keep track of anything in-memory
to enumerate data that has been seen by the user but not added to the database
yet!

In the next step, I'll remove `seen_idents` altogether.
2015-10-24 13:03:26 -07:00
Adrian Sampson
cc5aba8294 Roll back PR #1358: regression on recent duplicate
This should fix #1652, which found that this code did the wrong thing when
there were *no* `found_duplicates`: that is, when the duplicate actually came
from the `seen_keys` list, so the album is not in the database yet. This
handling was confusing "no non-empty duplicates" with "no in-database
duplicates", and incorrectly bypassing the duplicates prompt.

Since having empty albums in the database is a rare case (it should be
impossible!), and we should no longer *crash* when it happens, I am
considering it unnecessary to handle it specially. The user will now just see
"Old: 0 items" and that's that.
2015-10-24 12:46:27 -07:00
Adrian Sampson
15190794dc Log more details about duplicates
Part of the investigation into #1652.
2015-10-24 12:39:27 -07:00
Adrian Sampson
e937ca5c15 Fix grammar in a docstring 2015-10-19 11:12:36 -07:00
Adrian Sampson
ef26d4c926 Version bump for 1.3.16 2015-10-17 17:45:46 -07:00
Adrian Sampson
13fede597f Fix my fix for #1586: iterate over views 2015-10-08 10:40:18 -07:00
Adrian Sampson
3c8823db96 Run case sensitivity check (#1586) on bytestring
This should avoid problems when querying for Unicode paths.
2015-10-07 16:38:27 -07:00
Adrian Sampson
a0a9af261c Use syspath in case sensitivity check (#1586) 2015-10-07 16:33:29 -07:00
Adrian Sampson
4677903844 Reorganize case sensitivity check function
Just a little readability enhancement.
2015-10-07 16:31:59 -07:00
Adrian Sampson
9e5e9a23ab Query case sensitivity depends on the query (#1586)
This could match intuition a little more closely and also avoids a coupling
with the configuration.
2015-10-07 15:53:26 -07:00
Adrian Sampson
3b604c7ff9 Merge pull request #1586 from mried/RobustCaseSensitiveDetection
A robust way to check for a case sensitive file system
2015-10-07 15:43:38 -07:00
Adrian Sampson
9f1c113476 For #1617: Use Confit's built-in path resolution
Has the side effect of raising more reasonable errors when the type is wrong.
2015-10-07 15:36:31 -07:00
Adrian Sampson
fe1fab9aee For #1617, fix laziness with a new subclass 2015-10-07 15:32:07 -07:00
David Logie
168a1645e0 Move the included file loading out of confit.py. 2015-10-05 14:01:26 +01:00
David Logie
bfc5a1b803 Add new `include` config option.
This new option allows users to provide a list of external config files
which will be evaluated when beets starts.

This is useful for keeping private settings (e.g. API keys) out of the
main configuration file.
2015-10-05 14:01:26 +01:00
Peter Kessen
fffb727033 corrected output of file size
using unit e.g. 5.4 KiB instead of 5.4 KB now
2015-09-29 17:33:54 +02:00
Adrian Sampson
f4a124e7e2 Fix #1605: parsing bare + and - in queries 2015-09-15 13:53:41 -07:00
Malte Ried
b5f1f990d2 Merge branch 'master' into RobustCaseSensitiveDetection
# Conflicts:
#	docs/changelog.rst
2015-09-12 21:52:21 +02:00
Malte Ried
ce022a64f6 Files should be matched exactly so the search for a.mp3 doesn't find a.mp3.foo. 2015-09-12 20:44:56 +02:00
Malte Ried
f79d1ab205 Changed the WHERE clause of a PathQuery to use LIKE instead of lower() 2015-09-11 19:16:00 +02:00
Malte Ried
4c249ac25b Using GetLongPathNameW to determine file names to check for case sensitivity on windows instead of creating a file. 2015-09-11 12:35:41 +02:00
Malte Ried
a06a421ce8 Bugfix for cas insensitive searches for a file path. Fixes #1587. 2015-09-08 16:04:26 +02:00
Malte Ried
951a11809f Merge branch 'master' into RobustCaseSensitiveDetection
# Conflicts:
#	docs/changelog.rst
2015-09-08 15:57:42 +02:00
Adrian Sampson
11762885b4 Remove stray config options from main defaults
What were these doing here in the first place?
2015-09-07 21:39:05 -07:00
Malte Ried
636f0af8b2 Merge branch 'master' into RobustCaseSensitiveDetection
# Conflicts:
#	docs/changelog.rst
2015-09-03 22:12:33 +02:00
Malte Ried
cd56286e86 Added some documentation 2015-09-03 22:10:32 +02:00
Adrian Sampson
bc137b174f Doc tweaks & changelog for #1589 2015-09-02 15:05:23 -07:00
Jérémie Detrey
8b58af8dba Follow style conventions. 2015-09-02 23:25:47 +02:00
Jérémie Detrey
dcbc2dafa1 Fix #1303: process DateItemField tags in YMD order 2015-09-02 22:48:55 +02:00
Malte Ried
6ad53e1466 Improved version of case sensitivity checking and move method to beets.util 2015-09-02 21:17:03 +02:00
nath@home
7ed742b268 play-raw: Fix a docstring and add doc 2015-09-01 23:42:43 +02:00
nath@home
9c663432bd Refactor util/interactive_open: multiple targets
interactive_open should now be invoked with at least the list of
targets and optionally the command to open the targets with.
This allows beets-play to pass multiple file paths directly to
the configured command.

The changes to the existing invocations are pretty trivial in
order to comply to this refactor.
2015-09-01 23:42:42 +02:00
nath@home
a23c5d4f67 play-raw: Call vlc with one file par arg 2015-09-01 23:42:42 +02:00
Malte Ried
32bd7914e5 Implemented a much more robust way to check for a case sensitive filesystem 2015-09-01 10:57:02 +02:00
Peter Kessen
760b2ac73f removed obsolet variable
removed variable _added_help from CommonOptionsParser
variable is not required since 3f49044
2015-08-30 16:32:44 +02:00
Adrian Sampson
9e83c76762 Changelog for #1582 2015-08-29 12:57:59 -07:00
Adrian Sampson
3f490440b6 Reduce footprint of #1582
No need for a separate function since we only use this once.
2015-08-29 12:56:39 -07:00
Peter Kessen
b857320105 fixed tox style suggestions
also following the "no contrived examples" rule by using
beatles as artist in example
2015-08-28 08:47:25 +02:00
Peter Kessen
eb68d4ddb5 Added extra output for help with subcommand list
An example including output format is given now
2015-08-26 18:38:04 +02:00
Peter Kessen
7a8765a631 Added support for extra help line on option parser
added method _add_help_text to class CommonOptionParser
2015-08-26 18:36:22 +02:00
nath@home
8773d958c1 clearart-notify: Use default arguments when clearing art 2015-08-23 00:03:33 +02:00
nath@home
b53798aaf9 clearart-notify: Use item.try_write() to clear art
This method already groups reading the config, managing file I/O
and exceptions, as well as sending events to the plugins, so it's
really easier and cleaner to do it that way. Note that passing
'images':None as tags to update correctly triggers beets to delete
the images tag altogether.
2015-08-23 00:01:19 +02:00
nath@home
b6290e2895 clearart-notify: Send write events when clearing art
For example, this led beets-check to not recompute hashes when
doing beet clearart [query]. Further operations on the file(s)
would then trigger beets-check to issue integrity warnings.
2015-08-23 00:00:21 +02:00
Adrian Sampson
7b6c773a3f Cleanup for #1532 2015-08-14 19:44:11 -07:00
Ben Boeckel
323f79ecdb colors: support standard terminal colors
Fixes #1548.

Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-08-05 22:00:25 -04:00