]> kaliko git repositories - mpd-sima.git/log
mpd-sima.git
2 months agoCleanup PlayerError exception wrapper dev
kaliko [Sat, 10 Feb 2024 16:48:34 +0000 (17:48 +0100)]
Cleanup PlayerError exception wrapper

2 months agoRemove vinstall.py
kaliko [Fri, 9 Feb 2024 16:00:08 +0000 (17:00 +0100)]
Remove vinstall.py

2 months agotest: pylint on python 3.11
kaliko [Fri, 9 Feb 2024 15:16:31 +0000 (16:16 +0100)]
test: pylint on python 3.11

2 months agoFixed sphinx build
kaliko [Fri, 9 Feb 2024 15:14:53 +0000 (16:14 +0100)]
Fixed sphinx build

5 months agoci: Fixed sast
kaliko [Sun, 12 Nov 2023 10:07:31 +0000 (11:07 +0100)]
ci: Fixed sast

17 months agoFixed code coverage report (Closes #66)
kaliko [Fri, 11 Nov 2022 09:55:54 +0000 (10:55 +0100)]
Fixed code coverage report (Closes #66)

18 months agoReleasing 0.18.2 master 0.18.2
kaliko [Fri, 28 Oct 2022 07:08:45 +0000 (09:08 +0200)]
Releasing 0.18.2

18 months agoRevert "Catch uncaught socket.timeout (OSError subclass)."
kaliko [Fri, 28 Oct 2022 07:06:02 +0000 (09:06 +0200)]
Revert "Catch uncaught socket.timeout (OSError subclass)."

This reverts commit 36db5e965f1e8dba54b42e31082709b914dd5194.

As mention in #63, this patch does not fixed the issue.

18 months agoUpdate bash completion
kaliko [Fri, 28 Oct 2022 06:57:00 +0000 (08:57 +0200)]
Update bash completion

18 months agoAdd positional argument random, a random mode shortcut
kaliko [Thu, 10 Feb 2022 17:12:18 +0000 (18:12 +0100)]
Add positional argument random, a random mode shortcut

18 months agoFixed startup
kaliko [Fri, 21 Oct 2022 05:55:56 +0000 (07:55 +0200)]
Fixed startup

MPD_sima not starting when var dir is not present.

2 years agoCatch uncaught socket.timeout (OSError subclass).
kaliko [Thu, 10 Feb 2022 16:17:49 +0000 (17:17 +0100)]
Catch uncaught socket.timeout (OSError subclass).

Wrap first call of MPD._reset_cache in try/catch, but I don't understand
why...

During first connection, player cache is populated with MPD._reset_cache
Even though the connection to MPD succeed, we can receive a socket.timeout if
the proxy is not reachable (MPD server in satellite mode request another
MPD server for music library requests, for instance during _reset_cache).

The issue here is the OSError (socket.timeout) is not raised as it
should be, ie. wrapped in PlayerError within MPD.__getattr__.
MPD._reset_cache is calling list('artist'), which is actually going
through MPD.__getattr__, but when OSError is raised is is not
wrapped in PlayerError.

Launching mpd-sima against an MPD server on the same host but with a
database proxy over the network can trigger this socket.timeout:
  * Start MPD
  * Shutdown internet link
  * Start mpd-sima

2 years agodoc: Fixed typo
kaliko [Wed, 9 Feb 2022 13:53:14 +0000 (14:53 +0100)]
doc: Fixed typo

2 years agoBump version
kaliko [Wed, 9 Feb 2022 13:52:24 +0000 (14:52 +0100)]
Bump version

2 years agoReleasing 0.18.1 0.18.1
kaliko [Mon, 7 Feb 2022 17:57:56 +0000 (18:57 +0100)]
Releasing 0.18.1

2 years agoCleanup plugin class
kaliko [Fri, 21 Jan 2022 13:08:10 +0000 (14:08 +0100)]
Cleanup plugin class

2 years agoBetter log level when trying without mbid
kaliko [Fri, 21 Jan 2022 09:49:18 +0000 (10:49 +0100)]
Better log level when trying without mbid

2 years agoFixed typo in Changelog
kaliko [Tue, 28 Dec 2021 09:27:54 +0000 (10:27 +0100)]
Fixed typo in Changelog

2 years agoFixed wrong exception
kaliko [Fri, 24 Dec 2021 08:19:36 +0000 (09:19 +0100)]
Fixed wrong exception

2 years agodoc: Add reference to "Configuration examples"
kaliko [Sat, 4 Dec 2021 11:25:35 +0000 (12:25 +0100)]
doc: Add reference to "Configuration examples"

2 years agoCleanup some imports
kaliko [Sat, 4 Dec 2021 11:24:59 +0000 (12:24 +0100)]
Cleanup some imports

2 years agodoc: publish html target uses setuptools build
kaliko [Sat, 4 Dec 2021 11:22:40 +0000 (12:22 +0100)]
doc: publish html target uses setuptools build

Use setuptools to build html to have version set.

2 years agodoc: Add missig daemon section in all_settings.cfg
kaliko [Tue, 23 Nov 2021 16:50:50 +0000 (17:50 +0100)]
doc: Add missig daemon section in all_settings.cfg

Fixed some typo/format

2 years agoUpdate lastfm web API
kaliko [Tue, 23 Nov 2021 09:51:55 +0000 (10:51 +0100)]
Update lastfm web API

2 years agoSet max_art default value to 20
kaliko [Tue, 23 Nov 2021 09:49:44 +0000 (10:49 +0100)]
Set max_art default value to 20

2 years agodoc: Fixed migration glitch
kaliko [Mon, 22 Nov 2021 16:13:03 +0000 (17:13 +0100)]
doc: Fixed migration glitch

2 years agodoc: Merge manual in sphinx build
kaliko [Mon, 22 Nov 2021 15:02:54 +0000 (16:02 +0100)]
doc: Merge manual in sphinx build

2 years agodoc: Add publish target
kaliko [Thu, 18 Nov 2021 11:44:12 +0000 (12:44 +0100)]
doc: Add publish target

2 years agodoc: Fixed filter
kaliko [Tue, 16 Nov 2021 13:38:55 +0000 (14:38 +0100)]
doc: Fixed filter

Even it is a valid MPD filter, drop external enclosing parentheses

2 years agodoc: Minor content changes
kaliko [Tue, 16 Nov 2021 12:43:48 +0000 (13:43 +0100)]
doc: Minor content changes

2 years agodoc: Use default theme
kaliko [Tue, 16 Nov 2021 12:37:16 +0000 (13:37 +0100)]
doc: Use default theme

2 years agodoc: Fixed missing namespace
kaliko [Sun, 14 Nov 2021 17:52:23 +0000 (18:52 +0100)]
doc: Fixed missing namespace

2 years agodoc: Add queue plugins examples
kaliko [Sun, 14 Nov 2021 17:51:40 +0000 (18:51 +0100)]
doc: Add queue plugins examples

2 years agodoc: Update sphinx config, add user documentation
kaliko [Mon, 7 Jun 2021 12:22:44 +0000 (14:22 +0200)]
doc: Update sphinx config, add user documentation

Also add SimaDB module documentation

2 years agodoc: Update sphinx config and add sima.mpdclient.MPD
kaliko [Fri, 15 May 2020 11:54:15 +0000 (13:54 +0200)]
doc: Update sphinx config and add sima.mpdclient.MPD

2 years agoRemove echonest doc
kaliko [Thu, 7 May 2020 06:38:36 +0000 (08:38 +0200)]
Remove echonest doc

2 years agoUsing bootstrap theme
kaliko [Mon, 1 May 2017 16:13:22 +0000 (18:13 +0200)]
Using bootstrap theme

2 years agoMoved dev doc to sub folder
kaliko [Sat, 14 Nov 2015 19:14:24 +0000 (20:14 +0100)]
Moved dev doc to sub folder

2 years agoAdd cache/echonest to sphinx doc.
kaliko [Sat, 14 Nov 2015 16:58:00 +0000 (17:58 +0100)]
Add cache/echonest to sphinx doc.

2 years agoMerged meta and track, switched to classic theme
kaliko [Wed, 11 Nov 2015 22:23:43 +0000 (23:23 +0100)]
Merged meta and track, switched to classic theme

2 years agoAdd sphinx build
kaliko [Wed, 11 Nov 2015 12:24:59 +0000 (13:24 +0100)]
Add sphinx build

2 years agoUpdate venv installer
kaliko [Sat, 20 Nov 2021 08:49:28 +0000 (09:49 +0100)]
Update venv installer

Require python 3.6

2 years agoRemove bad heuristic to infer artist aliases
kaliko [Fri, 19 Nov 2021 14:26:28 +0000 (15:26 +0100)]
Remove bad heuristic to infer artist aliases

2 years agoFixed wording in manual
kaliko [Thu, 18 Nov 2021 12:56:48 +0000 (13:56 +0100)]
Fixed wording in manual

2 years agoBump version
kaliko [Thu, 18 Nov 2021 12:56:25 +0000 (13:56 +0100)]
Bump version

2 years agoReleasing 0.18.0 0.18.0
kaliko [Tue, 16 Nov 2021 15:57:23 +0000 (16:57 +0100)]
Releasing 0.18.0

2 years agoFixed help message typo
kaliko [Tue, 16 Nov 2021 15:42:58 +0000 (16:42 +0100)]
Fixed help message typo

2 years agoRemove obsolete simadb_cli
kaliko [Tue, 16 Nov 2021 15:32:32 +0000 (16:32 +0100)]
Remove obsolete simadb_cli

2 years agoAdd some space padding in log format
kaliko [Tue, 16 Nov 2021 14:39:42 +0000 (15:39 +0100)]
Add some space padding in log format

Allows to align debug log message with mpdclient.py file

2 years agoMore robust Tags plugin MPD filter configuration
kaliko [Tue, 16 Nov 2021 14:24:52 +0000 (15:24 +0100)]
More robust Tags plugin MPD filter configuration

Remove external enclosing parentheses in user defined MPD filter, for
instance when there is more than one expression:
    ((genre == 'rock' ) AND (date =~ '198.')).

Even though it's a valid MPD filter, forge_filter will enclose it
properly. We do not want to through a syntax error at users since it's a
valid MPD filter, hence trying to transparently reformat the filter.

filter = ((genre == 'rock' ) AND (date =~ '198.'))

  and

filter = (genre == 'rock' ) AND (date =~ '198.')

Will work the same, producing the valid MPD filter:

    ((genre == 'Punk') AND (date =~ '198[2-9]+') AND (artist != ''))

2 years agoFixed wrong use of musicpd for tagtypes command (Closes #60)
kaliko [Tue, 16 Nov 2021 13:32:18 +0000 (14:32 +0100)]
Fixed wrong use of musicpd for tagtypes command (Closes #60)

2 years agoCleanup code
kaliko [Tue, 16 Nov 2021 10:52:04 +0000 (11:52 +0100)]
Cleanup code

Update Exceptions (cf. 3b4178f)
Add copyright header
Better error message

2 years agoRevert previous refactoring around Exceptions
kaliko [Tue, 16 Nov 2021 10:23:42 +0000 (11:23 +0100)]
Revert previous refactoring around Exceptions

Mainly 774e755 and part of 94c7b5c

PlayerError is musicpd.MPDError a different family of exceptions not to
be merged in MPDSimaException, as initially implemented in a978d29.

2 years agoman: Fixed and build mpd_sima.cfg.5 manual
kaliko [Sun, 14 Nov 2021 18:13:41 +0000 (19:13 +0100)]
man: Fixed and build mpd_sima.cfg.5 manual

2 years agoUpdate bash completion (Closes #61)
kaliko [Sun, 7 Nov 2021 17:16:21 +0000 (18:16 +0100)]
Update bash completion (Closes #61)

2 years agoCheck Tags config onmy when it is configured as internal plugin
kaliko [Sun, 7 Nov 2021 17:15:00 +0000 (18:15 +0100)]
Check Tags config onmy when it is configured as internal plugin

2 years agoFixed unhandled exception in monitor (idle MPD command)
kaliko [Fri, 29 Oct 2021 11:55:15 +0000 (13:55 +0200)]
Fixed unhandled exception in monitor (idle MPD command)

Socket timeout was handled but musicpd exception raised on server lost
was not. For instance ConnectionError: "Connection lost while reading
line" was not catch.

2 years agoci: Add missing dependencies
kaliko [Mon, 25 Oct 2021 09:29:24 +0000 (11:29 +0200)]
ci: Add missing dependencies

2 years agoCatch forgotten exception in mpdclient (Closes #59)
kaliko [Mon, 25 Oct 2021 09:20:01 +0000 (11:20 +0200)]
Catch forgotten exception in mpdclient (Closes #59)

2 years agoMainly use literal for list/dict and f-strings when possible
kaliko [Sat, 2 Oct 2021 13:23:04 +0000 (15:23 +0200)]
Mainly use literal for list/dict and f-strings when possible

2 years agoBig cleanup, pyling warning, style, error
kaliko [Sat, 2 Oct 2021 11:11:10 +0000 (13:11 +0200)]
Big cleanup, pyling warning, style, error

2 years agoInit genre attribute in Track object
kaliko [Sat, 2 Oct 2021 11:09:51 +0000 (13:09 +0200)]
Init genre attribute in Track object

2 years agoSome refactoring around Exceptions
kaliko [Sat, 2 Oct 2021 11:09:01 +0000 (13:09 +0200)]
Some refactoring around Exceptions

2 years agoSimplified first loop iteration detection
kaliko [Sat, 2 Oct 2021 10:50:03 +0000 (12:50 +0200)]
Simplified first loop iteration detection

2 years agoClean some linter warnings and errors
kaliko [Fri, 1 Oct 2021 18:29:57 +0000 (20:29 +0200)]
Clean some linter warnings and errors

2 years agoci: Fixed unittest
kaliko [Thu, 30 Sep 2021 18:02:47 +0000 (20:02 +0200)]
ci: Fixed unittest

2 years agoci: Fixed unittest
kaliko [Thu, 30 Sep 2021 17:52:25 +0000 (19:52 +0200)]
ci: Fixed unittest

2 years agoDeal with lost connection (Closes #53)
kaliko [Thu, 30 Sep 2021 17:15:10 +0000 (19:15 +0200)]
Deal with lost connection (Closes #53)

2 years agoAdd more info in crash report (Closes #56)
kaliko [Thu, 30 Sep 2021 17:03:51 +0000 (19:03 +0200)]
Add more info in crash report (Closes #56)

2 years agoUpdate dead http link
kaliko [Thu, 30 Sep 2021 13:19:43 +0000 (15:19 +0200)]
Update dead http link

2 years agoConfigure SAST in
kaliko [Fri, 23 Jul 2021 14:17:32 +0000 (16:17 +0200)]
Configure SAST in

2 years agoMore robust MPD client (start addressing #53)
kaliko [Mon, 5 Jul 2021 08:19:58 +0000 (10:19 +0200)]
More robust MPD client (start addressing #53)

This actually closes the issue but I believe the client does not
currently detect half-opened connection, for instance router
reboot|crash|host roaming.

2 years agoCleanup Exceptions
kaliko [Sun, 4 Jul 2021 17:26:15 +0000 (19:26 +0200)]
Cleanup Exceptions

2 years agoFixed crash when player.search_track returns nothing
kaliko [Tue, 29 Jun 2021 07:44:22 +0000 (09:44 +0200)]
Fixed crash when player.search_track returns nothing

2 years agoFixed double quote error, missing escape character (Closes #52)
kaliko [Fri, 18 Jun 2021 10:38:06 +0000 (12:38 +0200)]
Fixed double quote error, missing escape character (Closes #52)

2 years agoFixed crash when player.find_tracks returns nothing
kaliko [Thu, 17 Jun 2021 11:48:57 +0000 (13:48 +0200)]
Fixed crash when player.find_tracks returns nothing

With the block list, player.find_tracks might return an empty list.

2 years agoRemove to_add attibute
kaliko [Thu, 17 Jun 2021 11:46:53 +0000 (13:46 +0200)]
Remove to_add attibute

2 years agoMPD client: Tries to resolve MusicBrainzArtistID when possible (fixed b36c71a)
kaliko [Tue, 8 Jun 2021 18:39:15 +0000 (20:39 +0200)]
MPD client: Tries to resolve MusicBrainzArtistID when possible (fixed b36c71a)

2 years agodoc: Update docstrings
kaliko [Tue, 8 Jun 2021 15:12:04 +0000 (17:12 +0200)]
doc: Update docstrings

2 years agoMPD client: Tries to resolve MusicBrainzArtistID when possible.
kaliko [Tue, 8 Jun 2021 14:46:40 +0000 (16:46 +0200)]
MPD client: Tries to resolve MusicBrainzArtistID when possible.

2 years agoPlayerError inherit from MPDError instead of plain Exception
kaliko [Tue, 8 Jun 2021 14:30:01 +0000 (16:30 +0200)]
PlayerError inherit from MPDError instead of plain Exception

2 years agoBetter debug message, complete a comment
kaliko [Tue, 8 Jun 2021 11:34:46 +0000 (13:34 +0200)]
Better debug message, complete a comment

2 years agoUse Track Album attribute to avoid missing album name
kaliko [Mon, 7 Jun 2021 19:02:09 +0000 (21:02 +0200)]
Use Track Album attribute to avoid missing album name

Track.Album as a fallback is name is not provided.

2 years agoFixed bad implementation of blocklist for albums
kaliko [Mon, 7 Jun 2021 13:09:06 +0000 (15:09 +0200)]
Fixed bad implementation of blocklist for albums

2 years agodoc: Update docstrings
kaliko [Mon, 7 Jun 2021 12:34:14 +0000 (14:34 +0200)]
doc: Update docstrings

2 years agoman: Fixed error in XDG env. var.
kaliko [Mon, 7 Jun 2021 12:31:29 +0000 (14:31 +0200)]
man: Fixed error in XDG env. var.

2 years agoFixed issue with multivalued musicbrainz_artistid (Closes #47)
kaliko [Mon, 7 Jun 2021 12:28:32 +0000 (14:28 +0200)]
Fixed issue with multivalued musicbrainz_artistid (Closes #47)

2 years agoUpdate Changelog
kaliko [Sat, 5 Jun 2021 05:43:06 +0000 (07:43 +0200)]
Update Changelog

2 years agoUpdate Changelog, end sqlite rewrite phase (closes #45, #49, #33)
kaliko [Fri, 4 Jun 2021 17:27:44 +0000 (19:27 +0200)]
Update Changelog, end sqlite rewrite phase (closes #45, #49, #33)

2 years agosimadb: More consistent use of albumartist info in fetch_albums_history
kaliko [Fri, 4 Jun 2021 14:22:09 +0000 (16:22 +0200)]
simadb: More consistent use of albumartist info in fetch_albums_history

fetch_albums_history() returns a list of Album objects with an Artist
attribute set to albumartist (if provided, else falls back to artist).
We want an Album view of history.

fetch_albums_history(needle) returns a list of Album objects with
Artist attribute set to artist (in this case we want album played for
artist == needle). Here we want the artist view on album history.

2 years agosimadb: Fixed timezone, record play timestamp as UTC (Closes #51)
kaliko [Fri, 4 Jun 2021 14:18:18 +0000 (16:18 +0200)]
simadb: Fixed timezone, record play timestamp as UTC (Closes #51)

Convert all utcnow() to now(timezone.utc)

2 years agoUse MusicBrainz_albumid for album search (Closes #30)
kaliko [Fri, 4 Jun 2021 09:18:56 +0000 (11:18 +0200)]
Use MusicBrainz_albumid for album search (Closes #30)

2 years agoRewrote blocklist feature with the new simadb API
kaliko [Thu, 3 Jun 2021 14:36:48 +0000 (16:36 +0200)]
Rewrote blocklist feature with the new simadb API

2 years agoImproved filter_track plugin method
kaliko [Thu, 3 Jun 2021 09:01:06 +0000 (11:01 +0200)]
Improved filter_track plugin method

2 years agosimadb: Expose file in view_bl
kaliko [Thu, 3 Jun 2021 08:57:24 +0000 (10:57 +0200)]
simadb: Expose file in view_bl

It permits to build a Track object for comparison

2 years agoArtist object changes
kaliko [Wed, 2 Jun 2021 16:08:03 +0000 (18:08 +0200)]
Artist object changes

Use name for albumartist if albumartist is not provided.

2 years agoAdd Album property to Track objects
kaliko [Wed, 2 Jun 2021 15:41:40 +0000 (17:41 +0200)]
Add Album property to Track objects

2 years agoDo not limit valid UUID to version 4
kaliko [Wed, 2 Jun 2021 15:31:16 +0000 (17:31 +0200)]
Do not limit valid UUID to version 4

2 years agosimadb: Fixed early connection close
kaliko [Mon, 10 May 2021 09:05:14 +0000 (11:05 +0200)]
simadb: Fixed early connection close

2 years agoUpdate manual
kaliko [Sun, 9 May 2021 16:17:34 +0000 (18:17 +0200)]
Update manual