Commit graph

3704 commits

Author SHA1 Message Date
Adrian Sampson
71645ea7cd Changelog for #158 2014-08-25 09:55:37 -07:00
Thomas Scholtes
1e207395b3 Formatted mapping uses field type to determine default 2014-08-25 18:53:05 +02:00
Thomas Scholtes
659a0862f6 PEP8 fixes 2014-08-25 18:46:19 +02:00
Thomas Scholtes
4835475fb7 Tags are not read while walking the import tree.
This makes skipping directories on incremental imports much faster and
fixes #158.
2014-08-25 18:40:56 +02:00
Thomas Scholtes
b1f670ada3 Move albums_in_dir() from autotag to import module
Has nothing to do with the former
2014-08-25 18:40:56 +02:00
Adrian Sampson
81bd217b0d Merge pull request #920 from andriykohut/master
With new discogs api there is no need for filtering releases with isinstance
2014-08-25 09:33:33 -07:00
Andrii Kohut
34584eadd1 Works faster then checking each result item with isinstance 2014-08-25 19:14:41 +03:00
Adrian Sampson
1a60e7d129 Changelog for #858/#918 2014-08-25 09:03:37 -07:00
Adrian Sampson
dcb21ecfb3 Merge pull request #918 from geigerzaehler/formatting
Model formatting: Refactor and fix precedence
2014-08-25 09:02:47 -07:00
Adrian Sampson
22dc67f382 Changelog for #878 2014-08-25 08:51:18 -07:00
Adrian Sampson
8880750b4f Changelog for #917/#855 2014-08-25 08:49:21 -07:00
Adrian Sampson
b227aabfee Merge pull request #917 from geigerzaehler/stats
Improvements for stats command
2014-08-25 08:44:55 -07:00
Thomas Scholtes
6d67365df6 PEP8 fix 2014-08-25 17:17:02 +02:00
Thomas Scholtes
9f4b3b811d Refactor modfiy command and tests
Parsing of the modify command line is handled by `modfiy_parse_args()`.
Test use the command line.
2014-08-25 15:46:57 +02:00
Thomas Scholtes
c0b248c4a2 convert: Catch errors when writing tags
Fixes #878.
2014-08-25 14:52:40 +02:00
Thomas Scholtes
91c5d0ae12 Item fields take precedence over Album fields in formatting
For consistency, this is reversed when formatting paths. Fixes #858.
2014-08-25 14:38:58 +02:00
Thomas Scholtes
0798af7774 Refactor model formatting
Remove all formatting related code from models. It now lives in the
`FormattedMapping` class. Only API change is from `model.formatted` to
`model.formatted()`.
2014-08-25 14:24:39 +02:00
Thomas Scholtes
2d2c84b505 Stats only count albums in the database
Items might have the `album` field set without belonging to an album in
the beets database. We only count the albums that are represented in
the database.
2014-08-25 11:34:40 +02:00
Thomas Scholtes
9e2b6d0253 Show album artist stats
See #855
2014-08-25 11:33:10 +02:00
Adrian Sampson
b5c9271baa Changelog/thanks for #912 2014-08-24 15:44:25 -07:00
Adrian Sampson
bc3347fc5f Merge pull request #912 from dreewoo/UnreadableFileError
Catch UnreadableFileError when reading files in a (try_)write context
2014-08-24 15:42:12 -07:00
Adrian Sampson
1263fbdf7e Changelog for #910 (fix #915) 2014-08-24 10:22:23 -07:00
Adrian Sampson
900e44f1b9 Merge pull request #910 from andriykohut/master
Fix problems with new discogs_client version
2014-08-24 10:17:16 -07:00
Adrian Sampson
904baa6bc1 Debug log for unreadable state files (#913) 2014-08-24 10:09:31 -07:00
Andrii Kohut
f8af931caa Seems like something broken in new version of discogs_client 2014-08-24 17:34:31 +03:00
Thomas Scholtes
b512a0ce37 lyrics: Use multiple lyrics search strings.
In particular we use the original artist and title before stripping
*and* and *featuring* suffixes.

Fixes #914.
2014-08-24 16:17:21 +02:00
Andrii Kohut
9a80179059 this should fix UnicodeEncodeError with non-ascii queries 2014-08-24 16:37:24 +03:00
Thomas Scholtes
32626fedc4 mediafile: Catch IndexError when file has empty list tag
Fixes #913
2014-08-24 15:03:04 +02:00
Thomas Scholtes
225ce62a33 Catch all errors when loading state file.
A crash during the multi-threaded import process may leave the pickled
state invalid (see #913). We recover from all these errors.
2014-08-24 14:40:38 +02:00
Jocelyn De La Rosa
dd58f1b452 Catch UnreadableFileError when reading files in a (try_)write context 2014-08-24 00:21:07 +02:00
Andrii Kohut
d0115f1110 set user agent as Client parameter, remove imports 2014-08-23 13:12:28 +03:00
Andrii Kohut
a663e52bad Fix problems with new discogs_client version 2014-08-23 13:00:25 +03:00
Adrian Sampson
132fad847b Changelog for sorting (#823) 2014-08-22 15:02:50 -07:00
Adrian Sampson
eb579cf14b Merge pull request #823 from PierreRust/sortquery
Sorting support in beets query mecanism (dbcore)
2014-08-22 14:59:44 -07:00
Adrian Sampson
787f0e25c5 Version bump: 1.3.8 2014-08-22 12:52:03 -07:00
Adrian Sampson
91295d8d7b Refine changelog for 1.3.7 release 2014-08-22 12:48:43 -07:00
Adrian Sampson
e52ca41456 Changelog and style for #908
Use a defaultdict for more idiomatic collection.
2014-08-21 23:11:23 -07:00
Adrian Sampson
9ca6ae6a86 Merge pull request #908 from ruippeixotog/issue-230
Add support for releases with multiple versions of the same recording
2014-08-21 23:06:13 -07:00
Rui Gonçalves
7c196799e5 Add support for releases with multiple versions of the same recording 2014-08-21 23:35:27 +01:00
Adrian Sampson
8467b5e2be Changelog for #906 2014-08-19 13:36:33 -07:00
Adrian Sampson
850540c89f Merge pull request #906 from hkhanna/write-always-flag
Add --force flag for write subcommand
2014-08-19 13:31:53 -07:00
Adrian Sampson
b31ad388b1 Clean up properly after DistanceTest
One more ordering dependency. That's all of them, right???
2014-08-19 12:52:48 -07:00
Adrian Sampson
61416da0a7 Better isolation for ConfigTest 2014-08-19 12:27:35 -07:00
Harry Khanna
4944686090 Change flag from --always to --force for symmetry with other beets commands 2014-08-19 14:07:17 -04:00
Harry Khanna
65c4ae627e Clarify the default behavior for the write subcommand 2014-08-19 14:06:41 -04:00
Adrian Sampson
6b9df4e0f5 Fix harness in test_zero
May have been the cause of some intermittent failures on Travis.
2014-08-19 10:51:48 -07:00
Harry Khanna
2ffd3e287f Add --always flag for write subcommand
Forces a write of tags to file even if the file's tags match the database.
This is useful to force plugins that respond to write (e.g., Scrub and Zero) to run on those tags.
This may also make the TODO comment in zero.py less important since creates a way to manually run the zero plugin on a file imported as-is.
2014-08-19 13:43:16 -04:00
Adrian Sampson
4f2fe19e03 Flake8 fix in spotify 2014-08-19 09:53:26 -07:00
Adrian Sampson
d8c4be100d Spotify: Use logging (#892)
Instead of one-off logging functions. This also obviates the need for a
separate verbose flag.
2014-08-18 22:30:42 -07:00
Adrian Sampson
4eb23f7c06 Update tests for #900 2014-08-18 22:26:17 -07:00