Stig Inge Lea Bjørnsen
020e8e27d8
Fix for import and reimport of singleton items.
2014-09-27 18:19:04 +02:00
Stig Inge Lea Bjørnsen
6eb4afb35f
Remove unnecessary database queries during reimport.
2014-09-27 18:11:49 +02:00
Fabrice L.
54c9761135
Merge pull request #981 from KraYmer/lyrics-enh
...
Lyrics scraping code refactored
2014-09-27 11:25:06 +02:00
Fabrice L.
d2db6ae88b
Update embedart.rst
...
add info about threshold for similarity
2014-09-27 11:23:46 +02:00
Fabrice Laporte
3ef52e8ead
lyrics.py: remove unnecessary re compile step
2014-09-26 07:08:54 +02:00
Adrian Sampson
d17c148e52
Minor fixes, changelog for #974
2014-09-25 15:33:52 -07:00
Adrian Sampson
4f2d7e0aaa
Merge pull request #974 from KraYmer/fetchart_issue848_2
...
embedart: write candidate image only if it is "similar" to already embedded one (suite)
2014-09-25 15:25:46 -07:00
Fabrice Laporte
3a748f3294
add test_is_page_candidate()
2014-09-25 00:05:29 +02:00
Fabrice Laporte
a6a83be434
fix flake8
2014-09-24 23:30:38 +02:00
Stig Inge Lea Bjørnsen
c6a08a08a5
Add support for reimporting flexible attributes.
...
Move the reimport and replaced item logic into separate methods:
* ImportTask.record_replaced()
* ImportTask.remove_replaced()
* ImportTask.reimport_metadata()
2014-09-24 22:02:29 +02:00
Fabrice Laporte
879fc8d3ca
add LyricsGooglePluginTest to test_lyrics.py
2014-09-24 18:04:37 +02:00
Fabrice Laporte
76b658b14a
use beautiful soup strainer for a x20 performance gain!
2014-09-24 18:04:16 +02:00
Adrian Sampson
ee9e51d3cc
beet convert -y should not need an argument
2014-09-24 08:01:06 -07:00
Fabrice Laporte
8ef7837d22
merge strip_cruft() and _scrape_normalize_eol() into _scrape_strip_cruft
2014-09-24 16:51:54 +02:00
Adrian Sampson
fc2c75ee9c
Tests for mkdirall
...
A red herring. I thought this might be responsible for #969 .
2014-09-23 18:49:38 -07:00
Fabrice Laporte
333591fd78
no html entities in _scrape_streamline_soup output
2014-09-24 00:25:50 +02:00
Fabrice Laporte
da6bcda4af
add lyrics rsrc files
2014-09-23 18:05:08 +02:00
Fabrice Laporte
7e3676ecc9
sort sources in alphabetical order
...
remove test_sources_fail() (all sources pass now)
2014-09-23 18:01:05 +02:00
Fabrice Laporte
91a7eb249c
add _scrape_merge_paragraphs lyrics scraping step + others scraping enh
2014-09-23 17:58:58 +02:00
Fabrice Laporte
a938e68c98
refactor scrape_lyrics_from_url into smaller functions
2014-09-23 13:21:31 +02:00
Adrian Sampson
ea89cf32eb
Merge pull request #977 from KraYmer/lyrics_test
...
Lyrics test
2014-09-22 09:38:11 -07:00
Fabrice L.
151ee87d8d
remove a log.info()
2014-09-22 17:32:15 +02:00
Fabrice Laporte
168a24ad77
test_lyrics.py: improve lyrics module coverage
2014-09-22 17:28:02 +02:00
Fabrice Laporte
1dd4ca1d81
lyrics_sources: put sources in their correct category
2014-09-22 17:21:29 +02:00
Fabrice Laporte
aea640d241
lyrics.py: fix regexes used by strip_cruft (make them case insensitive)
...
strip_cruft() should now correctly replace all <br> with \n thus making
insert_line_feeds() and sanitize_lyrics() functions superfluous (they have been
removed).
2014-09-22 17:20:25 +02:00
Fabrice Laporte
d2cf41fc70
restore command_output() implementation as of 0ec285f
2014-09-22 13:49:23 +02:00
Fabrice Laporte
a0c38a07a6
artresizer: parse output of identify command to check IM version
...
we used to parse `convert` output but `convert` happens to be a
Windows cli command too. using `identify` is less error prone.
2014-09-22 13:45:53 +02:00
Fabrice Laporte
e4180e406e
fix flake8
2014-09-21 14:44:22 +02:00
Fabrice Laporte
c1224caab5
Merge branch 'fetchart_issue848'
...
Conflicts:
test/test_embedart.py
2014-09-21 14:23:59 +02:00
Fabrice Laporte
f5520d7ec9
fix flake8 warnings
2014-09-20 12:27:27 +02:00
Fabrice Laporte
d684229816
skip art compare tests if no recent IM version
2014-09-20 12:26:36 +02:00
Fabrice Laporte
1c2448c3e0
add can_compare flag to ArtResizer
2014-09-20 12:19:10 +02:00
Adrian Sampson
4f3a52a26f
release.py: Prettify foo-cmd in ReST changelog
2014-09-19 11:07:40 -07:00
Adrian Sampson
dcc63e9824
release.py: Fix bumping setup.py version
2014-09-19 11:05:18 -07:00
Fabrice Laporte
e731990888
check_method return method version, add _can_compare()
2014-09-19 17:30:29 +02:00
Adrian Sampson
6ac568c11b
Changelog for #971
2014-09-18 15:22:57 -07:00
Adrian Sampson
bec6d0f8ff
Merge pull request #971 from zacharydenton/patch-1
...
Update type of last_played to library.DateType().
2014-09-18 15:21:34 -07:00
Zach Denton
606d47a315
Update type of last_played to library.DateType().
2014-09-18 17:13:09 -04:00
Thomas Scholtes
79d1203541
Remove unnecessary method on ImportTask
2014-09-18 19:32:29 +02:00
Thomas Scholtes
dc3c4883dc
convert: Check the correct path when determening whether to skip
...
Fixes regression from 3197795faa
and makes tests from 56aba87fdc pass.
Fixes #970
2014-09-18 17:17:02 +02:00
Thomas Scholtes
56aba87fdc
convert: Test skip existing files
...
Reproduces #970
2014-09-18 17:01:17 +02:00
Thomas Scholtes
d0ac66bfe6
Fix oldstyle object initializer for py26
2014-09-18 16:51:11 +02:00
Thomas Scholtes
1e45ba597d
embed_item function does not raise if image file not found
...
Fixes #968
2014-09-18 16:19:05 +02:00
Adrian Sampson
9aa05bdb00
Version bump: 1.3.9
2014-09-17 19:19:22 -07:00
Adrian Sampson
c16c90b948
Date for 1.3.8 release
2014-09-17 19:17:03 -07:00
Adrian Sampson
893f4c5d9b
Changelog cleanup
2014-09-17 19:14:15 -07:00
Fabrice Laporte
cf372f72a6
reduce image sizes
2014-09-17 22:57:50 +02:00
Fabrice Laporte
1bffe2a7bf
obey Travis orders
2014-09-17 22:57:38 +02:00
Fabrice Laporte
187497c8c6
embedart: docs. explain 'compare_threshold' option
2014-09-17 22:07:35 +02:00
Fabrice Laporte
3ec8902ea4
embedart: add tests for 'compare_threshold' option
...
was tricky to write meaningful tests when computing phash of existing 6
pixels image (image-2x3.jpg) so I added new -more representatives-
images.
2014-09-17 22:04:45 +02:00