Commit graph

6572 commits

Author SHA1 Message Date
multikatt
5bb976d8f4 Better error handling when theres nothing imported
yet
2015-05-31 00:46:43 -04:00
multikatt
a80b402f2f -l actually queries the libraries 2015-05-31 00:46:06 -04:00
multikatt
d0dc2014f6 typo 2015-05-31 00:35:56 -04:00
multikatt
d3ec311721 Dont fail if theres no imported albums 2015-05-31 00:32:03 -04:00
Adrian Sampson
1c3a053ce5 Normalize regex query patterns/values (fix #1482) 2015-05-30 15:45:55 -04:00
Adrian Sampson
90178ab380 Always log a template literal (fix #1481)
Otherwise, we risk the user-provided string looking like a format string! If
it contains curly braces, it can behave unexpectedly.
2015-05-28 23:44:41 -04:00
Adrian Sampson
04ef371b92 A new BaseImportTask
This has been a long time coming. There's not much here yet, except for being
slightly more strict about parameter counts, but we can start shifting
more generic responsibility up to it.
2015-05-25 13:31:23 -07:00
Adrian Sampson
0a6cc25381 Another TODO comment I disagree with 😎 2015-05-25 13:09:50 -07:00
Adrian Sampson
6c792c25a9 Merge branch 'master' of github.com:sampsyo/beets 2015-05-25 12:58:03 -07:00
Adrian Sampson
7f5c274c46 Grouped-album tasks have paths
Close #1475, fix #825.
2015-05-25 12:57:23 -07:00
Adrian Sampson
fc33656a93 Remove some outdated comments and tests 2015-05-25 12:26:20 -07:00
Adrian Sampson
3b43b78b67 Merge pull request #1479 from glogiotatidis/flagsfix
[convert] Fix dest and format flags help text.
2015-05-25 11:34:51 -07:00
Adrian Sampson
7c98c1aea1 Fix print_ with no args (close #1478) 2015-05-25 09:56:43 -07:00
Pedro Silva
c93d5ce25b add changelog entry and docs for duplicate merging 2015-05-25 18:19:15 +02:00
Pedro Silva
3be593693d add merging functionality to duplicates plugin
This patch depends on %aunique not being present in config.paths
for behavior as intended.

The logic surrounding moving/copying a track from a duplicated album to
the original one could probably be extracted out and put into
library.Album.

This is based on the ordering imposed by the tiebreaking facility
introduced in 6be98b0a36. Once a natural
duplicate ordering is in place, then the strategies for merging are:

Items:

Iterate through each available field:
    Iterate through each duplicate:
        If current duplicate has a field not set in the original, set it there
        Break

Albums:

Iterate through each duplicate:
    Iterate through each item in duplicate:
        If current item is not present in original, copy it there
        Continue
2015-05-25 18:12:06 +02:00
Giorgos Logiotatidis
4a8f978f4c [convert] Fix dest and format flags help text. 2015-05-25 14:37:38 +03:00
Adrian Sampson
26380b2d72 Merge pull request #1474 from ttsda/master
Added beets-noimport plugin to the plugins documentation page.
2015-05-24 18:34:28 -07:00
Tiago Dias
476c40fce9 Added beets-noimport plugin to the plugins documentation page. 2015-05-25 00:30:35 +01:00
Adrian Sampson
167bcffb89 Changelog for #1472 2015-05-24 15:51:40 -07:00
Adrian Sampson
2c685a5eb1 Merge pull request #1473 from Somasis/master
Use python-mpd2 instead of python-mpd. Fixes #1472.
2015-05-24 15:50:50 -07:00
Kylie McClain
687dc9ddcd Use python-mpd2 instead of python-mpd. Fixes #1472. 2015-05-24 18:24:29 -04:00
Adrian Sampson
d8cc2588cd Changelog for #1470 2015-05-23 18:20:48 -07:00
Adrian Sampson
d4b07446ce Merge pull request #1470 from oldtopman/master
Fix beet web search with non-ascii characters
2015-05-23 18:19:36 -07:00
Old T. Man
acd0a902bb Fix search term encoding. 2015-05-23 13:19:28 -06:00
Adrian Sampson
9597a900e7 Changelog whitespace & expansion 2015-05-20 21:42:08 -07:00
Adrian Sampson
061f0f71bf Merge pull request #1466 from tomjaspers/move-pretend-option
Implement `--pretend` option for the move command
2015-05-20 21:41:15 -07:00
Adrian Sampson
66c9090285 Merge pull request #1468 from swt30/beet-update-doc
File modification note in docs
2015-05-20 20:35:02 -07:00
Scott Thomas
07e352143e File modification note in docs
I couldn't get beet update to read metadata changes - turns out that puddletag
doesn't touch the file modification time by default. It's a perfectly sensible
behaviour but I thought I'd add a note in the `beet update` section in case
anyone else has this problem.
2015-05-21 00:45:20 +01:00
Tom Jaspers
be484f2af0 Implement --pretend option for the move command
The method `show_path_changes` takes a list of tuples (source, destination)
that will be printed on either single / double line, as proposed in #1405.
2015-05-20 13:03:18 +02:00
Adrian Sampson
adebb850b5 Tests: fix a leaky error message
Caused by inadvertently executing too much at module-import time. By
materializing ArtResizer in a global definition, we triggered a debug log
before the test harness had a chance to capture the logging.
2015-05-19 16:50:05 -07:00
Adrian Sampson
07242f65e2 Convert always uses bytestring args (#1461) 2015-05-19 16:38:08 -07:00
Adrian Sampson
36c2241a34 Use bytestring filenames in embedart tests
First step on #1461.
2015-05-19 16:09:39 -07:00
Tom Jaspers
a7eace81d4 fetchart: improve Wikipedia art source
Artists with non-typical casing (e.g., alt-J, dEUS) would not get matched on
DBPedia, as the RDFS:label uses arbitrary casing, and SPARQL provides only exact
matches. The FOAF:name attribute is always title-cased (e.g., Alt-J, Deus).

Due to a bug in DBPedia, the cover filename is truncated when it contains
parentheses, (e.g., 'Foo bar (band).jpg' gets truncated to 'Foo bar .jpg').
To work around this, an additional Wikipedia call gets made for all its
images, in which we try to match our truncated image.

The Wikipedia art source now catches the correct exceptions, instead of
a broad catch-all.

Wikipedia album images can be gifs, so these are now added to the list of
accepted content types.
2015-05-19 09:57:54 +02:00
Tom Jaspers
a82dee35cb fetchart complains if no imaging backend available
The `enforce_ratio` and `minwidth` options depend on PIL or ImageMagick.
Previously it silently fails. Now it will log a warning, and accept the
image.

Tests concerning these options are skipped when no imaging backend is available.

Fix #1460
2015-05-18 19:44:40 +02:00
Pedro Silva
0377510522 handle albums during default attribute set completeness sorting 2015-05-17 23:56:10 +02:00
Pedro Silva
bc6f5869b4 patially revert #132dc4c:
Removing overloaded __dir__ on LibModel. This was making me
unconfortable, as I don't know that it will not break something else.
2015-05-17 23:47:59 +02:00
Pedro Silva
684f4deadc fix typo during tagging: option -t now actually works 2015-05-17 15:01:48 +02:00
Pedro Silva
6be98b0a36 add tiebreaking facility 2015-05-16 19:25:47 +02:00
Pedro Silva
132dc4c617 refactor fields_func logic into Item/Album __dir__ 2015-05-16 15:49:42 +02:00
multikatt
63369246ae Update docs: -g now works for queries 2015-05-15 15:59:56 -04:00
multikatt
b336e5f195 Get remote albums from query 2015-05-15 15:48:07 -04:00
multikatt
b123e8259d Remove implemented TODO comment 2015-05-15 14:14:29 -04:00
multikatt
0c596fd163 Break out query into its own function 2015-05-15 14:13:01 -04:00
multikatt
ef1f4965f0 Adding documentation 2015-05-15 13:59:43 -04:00
multikatt
a091f9e71a Add support for naming remote libraries 2015-05-15 13:25:50 -04:00
multikatt
4109d825d1 Clearing local paths from published libs 2015-05-15 11:51:18 -04:00
Pedro Silva
834418de6d fix #1457: enforce correct config typing 2015-05-15 11:48:27 +02:00
multikatt
3990ac185e adding list command, listing remote albums 2015-05-15 00:34:52 -04:00
multikatt
8cb262cbd1 Join all remote libraries albums into a single lib 2015-05-15 00:20:58 -04:00
multikatt
538a99599e Put all remote libs in a directory 2015-05-14 22:54:55 -04:00