Commit graph

10167 commits

Author SHA1 Message Date
Adrian Sampson
93c14ea66d
Merge pull request #3612 from ybnd/master
Fix item == None issues when writing lyrics ReST (issue #2805)
2020-06-04 14:32:47 -04:00
ybnd
d1f3d664d7 Implement comments & add to changelog 2020-06-04 16:43:42 +02:00
ybnd
b239a0b3d2 Fix item == None issues when writing lyrics ReST
* Skip ReST writing & sphinx info messages if query doesn't yield anything
* `writerest` into `appendrest` and `writerest`, don't call `writerest(item=None)` to flush state at the end.
2020-06-04 11:15:34 +02:00
Jef LeCompte
42e5844564
fix: revert flake8 change 2020-06-04 02:09:04 -04:00
Jef LeCompte
b9068e3fbd
fix: flake8 problem 2020-06-04 01:40:05 -04:00
Jef LeCompte
f0534090c3
fix: revert add windows to ci 2020-06-04 01:29:52 -04:00
Jef LeCompte
26caef544f
fix: remove --min-version 2020-06-04 01:21:46 -04:00
Jef LeCompte
e66cfd58ad
feat: add windows into ci 2020-06-04 01:14:11 -04:00
Jef LeCompte
bf06338cc7
Merge branch 'jef/github-actions' of https://github.com/jef/beets into jef/github-actions 2020-06-04 00:27:08 -04:00
Jef LeCompte
18645ffbe4
chore(tox): revert changes 2020-06-04 00:26:33 -04:00
Jef LeCompte
9af683f26c
Merge branch 'master' into jef/github-actions 2020-06-04 00:22:54 -04:00
Adrian Sampson
0af2504424
Merge pull request #3607 from cota/tarfile
importer: use tarfile.open to handle compressed archives
2020-06-01 08:09:32 -04:00
Emilio G. Cota
c69e96432a importer: use tarfile.open to handle compressed archives
Call tarfile.open instead of tarfile.TarFile from the importer so that
we can import compressed tar archives.

Note that tarfile.TarFile does not handle compressed archives:
$ python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tarfile
>>> tf = tarfile.TarFile("Lagrimas.tar.bz2")
Traceback (most recent call last):
[...]
tarfile.ReadError: invalid header
>>>

But tarfile.open does deal with them:
$ python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tarfile
>>> tf = tarfile.open("Lagrimas.tar.bz2")
>>>

Tested:
$ ls Lagrimas/*.mp3 | wc -l
11
$ tar cjf Lagrimas.tar.bz2 Lagrimas/

- Before:
$ beet import Lagrimas.tar.bz2
extraction failed: invalid header
No files imported from /tmp/Lagrimas.tar.bz2

- After:
$ beet import Lagrimas.tar.bz2
[works]

Fixes #3606.
2020-05-31 23:35:31 -04:00
Adrian Sampson
19ab28e141
Merge pull request #3605 from ybnd/master
Fix `list -af` example in documentation
2020-05-29 08:28:26 -04:00
ybnd
d3b759d7ca Fix list -af example in documentation
Didn't work since $tracktotal is not an Album field
2020-05-29 13:29:31 +02:00
Jef LeCompte
9c93b4d356
docs: update punctuation
Co-authored-by: Adrian Sampson <adrian@radbox.org>
2020-05-27 16:36:27 -04:00
Jef LeCompte
0068afcb99
feat: add more options to tox 2020-05-26 12:40:23 -04:00
Jef LeCompte
e8693acb6a
docs: elaborated exhaustive list
Co-authored-by: Adrian Sampson <adrian@radbox.org>
2020-05-26 10:40:10 -04:00
Jef LeCompte
b0f456b3c3
ci: removed windows for now
has to do with UnicodeDecodeError
2020-05-25 23:18:59 -04:00
Jef LeCompte
9a67cee95f
ci: added windows 2020-05-25 23:16:40 -04:00
Jef LeCompte
9f8bd4cd3f
style: flake8 linting 2020-05-25 20:06:43 -04:00
Jef LeCompte
0c3201930c
feat: added github actions
only working with linux for now. exact replica of travis basically.
should probably try to implement the rest of tox or deprecate some
functionality.
2020-05-25 19:35:15 -04:00
Adrian Sampson
6639c1babc
Merge pull request #3600 from martinkirch/add-drop2beets-ref
add drop2beets to community plugins
2020-05-23 11:51:58 -04:00
Martin Kirchgessner
fc4a61c557 add drop2beets to community plugins 2020-05-23 17:09:18 +02:00
Adrian Sampson
1b4686eebc Merge pull request #3598 from jef/jef/fix-str
fix: use `endwith()` instead of `endWith()`
2020-05-23 09:19:25 -04:00
Adrian Sampson
edb31f69d0 Remove explicit jellyfish dep from Tox
This is already installed when installing beets, and it's done in a way
that actually gets the right package version for the right Python version.
2020-05-23 09:03:12 -04:00
Jef LeCompte
10f589d80a
feat: added subsonicupdate tests 2020-05-22 21:23:26 -04:00
Jef LeCompte
66e6b11404
refactor: moved static methods inside class
made them static private class methods
2020-05-22 21:23:25 -04:00
Jef LeCompte
d9603788bc
fix: use endwith() instead of endWith() 2020-05-22 21:23:25 -04:00
Adrian Sampson
469541df2e
Merge pull request #3596 from jef/jef/fix-subsonic
feat: uses new subsonic format as default
2020-05-18 15:14:43 -04:00
Jef LeCompte
1374aa2aea feat: uses new subsonic format as default
also gets rid of warning that port must be `int` when it's default was a `string`
2020-05-18 10:23:26 -04:00
Adrian Sampson
5c91013d1f Expand changelog for #3594 2020-05-17 14:46:10 -04:00
Adrian Sampson
485abb08c0 Merge pull request #3594 from stlutz/master
Scrape new Genius song page html
2020-05-17 14:44:57 -04:00
stlutz
5298e1a976 Add changelog entry. 2020-05-17 18:42:23 +02:00
stlutz
5d306d6fd9 Remove debugging statement and conform to line length. 2020-05-16 17:48:56 +02:00
stlutz
15402f6aa7 Add alternative scraping algorithm to deal with Genius's new song page html layout. 2020-05-16 17:15:45 +02:00
stlutz
46143d9762 Remove unnecessary intermediate web request to genius.com when fetching lyrics.
The search results already include the correct song page url, making it superfluous to do another request via the /song api just to get it.
2020-05-16 16:28:17 +02:00
Adrian Sampson
d4a82b1fa5
Merge pull request #3592 from thenktor/patch-2
Update genres-tree.yaml
2020-05-16 10:03:44 -04:00
stlutz
ac043f9be0 When fetching lyrics from Genius, search for title and artist.
Searching only for the title and just verifying the artist afterwards leads to songs with very common titles not being found, since Genius limits the amount of returned hits.
An example would be 'Saviour' by 'Circa Waves'.
2020-05-16 13:26:09 +02:00
Adrian Sampson
eadfa2c37b
Merge pull request #3591 from thenktor/patch-1
Update genres.txt
2020-05-15 21:00:03 -04:00
Thorsten
cd4d8c7f9c
Update changelog.rst 2020-05-16 00:51:30 +02:00
Thorsten
852cdb6dfa
Update genres-tree.yaml
Added more heavy metal genres: https://en.wikipedia.org/wiki/Heavy_metal_genres
2020-05-16 00:34:37 +02:00
Thorsten
05d202760b
Update genres.txt
Added more heavy metal genres: https://en.wikipedia.org/wiki/Heavy_metal_genres
2020-05-16 00:34:10 +02:00
Adrian Sampson
9254beb14c
Merge pull request #3590 from dosoe/beet_update_parentwork
forgot one mb_workid_current occurence
2020-05-14 18:43:05 -04:00
soergeld
fe418b946e forgot one mb_workid_current occurence 2020-05-14 22:40:37 +02:00
Adrian Sampson
b3656bcab9
Merge pull request #3586 from dosoe/beet_update_parentwork
Fetching parentwork if changed, even if not force
2020-05-14 08:26:30 -04:00
Adrian Sampson
08204c1014
Merge pull request #3587 from dosoe/beet_correct_autotag
Correct beet/autotag/__init__.py to adapt to flexible tags
2020-05-13 12:49:19 -04:00
soergeld
ed97b984b0 Documentation 2020-05-13 18:02:14 +02:00
soergeld
66085a231f Cosmetics 2020-05-13 17:42:49 +02:00
soergeld
26a78a0c28 Cosmetics 2020-05-13 16:54:04 +02:00