]> kaliko git repositories - mpd-sima.git/log
mpd-sima.git
3 years agoCleanup Exceptions
kaliko [Sun, 4 Jul 2021 17:26:15 +0000 (19:26 +0200)]
Cleanup Exceptions

3 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

3 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)

3 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.

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

3 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)

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

3 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.

3 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

3 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

3 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.

3 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

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

3 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.

3 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)

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

3 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)

3 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.

3 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)

3 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)

3 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

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

3 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

3 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.

3 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

3 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

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

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

3 years agosimadb: Propagate add option
kaliko [Sun, 9 May 2021 09:55:35 +0000 (11:55 +0200)]
simadb: Propagate add option

3 years agoAdd blocklist commands, remove simadb_cli
kaliko [Sun, 9 May 2021 09:48:57 +0000 (11:48 +0200)]
Add blocklist commands, remove simadb_cli

Move all command to a subparser

3 years agoMPD client: Remove useless check on use_mbid
kaliko [Thu, 6 May 2021 09:32:29 +0000 (11:32 +0200)]
MPD client: Remove useless check on use_mbid

3 years agoUse os.getenv instead of os.environ.get
kaliko [Wed, 5 May 2021 18:20:01 +0000 (20:20 +0200)]
Use os.getenv instead of os.environ.get

3 years agoAdd abstract unix socket support for MPD connection
kaliko [Wed, 5 May 2021 16:30:45 +0000 (18:30 +0200)]
Add abstract unix socket support for MPD connection

Add unittests for env var parsing

3 years agoFixed test_config
kaliko [Wed, 5 May 2021 15:58:12 +0000 (17:58 +0200)]
Fixed test_config

568365b introduced a file acces control on db_file

3 years agosimadb: do not fetch NULL genre
kaliko [Tue, 4 May 2021 18:37:34 +0000 (20:37 +0200)]
simadb: do not fetch NULL genre

3 years agoAdd new database replacement code.
kaliko [Tue, 4 May 2021 18:21:13 +0000 (20:21 +0200)]
Add new database replacement code.

In case a previous database is loaded, it is renamed with a prefix
"-old-version-backup" in the same directory. No migration managed.

3 years agoUpdate simadb API
kaliko [Tue, 4 May 2021 13:37:44 +0000 (15:37 +0200)]
Update simadb API

3 years agoUpdate file access controls
kaliko [Tue, 4 May 2021 13:15:53 +0000 (15:15 +0200)]
Update file access controls

3 years agoUse new sqlite module
kaliko [Mon, 3 May 2021 11:40:49 +0000 (13:40 +0200)]
Use new sqlite module

3 years agoAdd genres tables to the database, update Genre plugin (related to #48)
kaliko [Mon, 3 May 2021 07:41:14 +0000 (09:41 +0200)]
Add genres tables to the database, update Genre plugin (related to #48)

3 years agoUpdate simadb API
kaliko [Sat, 1 May 2021 17:13:53 +0000 (19:13 +0200)]
Update simadb API

3 years agoAdd fetch history methods
kaliko [Sat, 1 May 2021 13:28:37 +0000 (15:28 +0200)]
Add fetch history methods

3 years agoAdd Triggers for blocklist→albums|artists
kaliko [Fri, 30 Apr 2021 09:35:59 +0000 (11:35 +0200)]
Add Triggers for blocklist→albums|artists

3 years agoFixed indentation
kaliko [Fri, 30 Apr 2021 08:02:30 +0000 (10:02 +0200)]
Fixed indentation

3 years agoAdd drop_all, fetch_artists*, get_bl_* methods
kaliko [Thu, 29 Apr 2021 14:03:27 +0000 (16:03 +0200)]
Add drop_all, fetch_artists*, get_bl_* methods

3 years agoRewrote simadb
kaliko [Wed, 28 Apr 2021 11:06:36 +0000 (13:06 +0200)]
Rewrote simadb

3 years agoci: Exposes unittest report to gitlab
kaliko [Wed, 5 May 2021 11:55:27 +0000 (13:55 +0200)]
ci: Exposes unittest report to gitlab

3 years agoFixed crash when setting XDG_CONFIG_HOME (closes #50)
kaliko [Wed, 5 May 2021 14:33:28 +0000 (16:33 +0200)]
Fixed crash when setting XDG_CONFIG_HOME (closes #50)

Also add unittests for XDG env. var. management.

3 years agoRemove dead code
kaliko [Sat, 1 May 2021 17:15:12 +0000 (19:15 +0200)]
Remove dead code

3 years agoCleanup obsolete code (ralated to 6194c3a)
kaliko [Fri, 30 Apr 2021 08:04:10 +0000 (10:04 +0200)]
Cleanup obsolete code (ralated to 6194c3a)

3 years agoFixed bug introduced in 6194c3a
kaliko [Thu, 29 Apr 2021 14:38:23 +0000 (16:38 +0200)]
Fixed bug introduced in 6194c3a

DB was not created when missing on startup.

3 years agoAdd missing command in bash completion
kaliko [Thu, 29 Apr 2021 14:37:49 +0000 (16:37 +0200)]
Add missing command in bash completion

3 years agoRemoved obsolete CLI options
kaliko [Wed, 28 Apr 2021 16:02:39 +0000 (18:02 +0200)]
Removed obsolete CLI options

3 years agoRemove HTML files
kaliko [Wed, 28 Apr 2021 15:51:41 +0000 (17:51 +0200)]
Remove HTML files

3 years agoBump version
kaliko [Wed, 28 Apr 2021 15:50:27 +0000 (17:50 +0200)]
Bump version

3 years agoReleasing 0.17.0 0.17.0
kaliko [Wed, 28 Apr 2021 15:36:29 +0000 (17:36 +0200)]
Releasing 0.17.0

3 years agoAdd support of musicbrainz_{albumid,trackid} in Track object
kaliko [Wed, 28 Apr 2021 11:00:13 +0000 (13:00 +0200)]
Add support of musicbrainz_{albumid,trackid} in Track object

3 years agoAdd new command purge-history
kaliko [Fri, 23 Apr 2021 09:23:03 +0000 (11:23 +0200)]
Add new command purge-history

3 years agoUpdate bash completion (closes #44)
kaliko [Fri, 23 Apr 2021 08:53:03 +0000 (10:53 +0200)]
Update bash completion (closes #44)

3 years agoAesthetic changes in usage messages
kaliko [Fri, 23 Apr 2021 08:36:18 +0000 (10:36 +0200)]
Aesthetic changes in usage messages

3 years agoFixed Genre plugin documenation
kaliko [Thu, 22 Apr 2021 13:17:00 +0000 (15:17 +0200)]
Fixed Genre plugin documenation

3 years agoAdd new command (closes #43)
kaliko [Thu, 22 Apr 2021 13:15:15 +0000 (15:15 +0200)]
Add new command (closes #43)

Add config-test, create-db, generate-config

3 years agoExtract Tags control_config method from plugin
kaliko [Wed, 21 Apr 2021 13:31:55 +0000 (15:31 +0200)]
Extract Tags control_config method from plugin

Ease reuse outside of plugin

3 years agoExpose only config in MPDClient instance.
kaliko [Wed, 21 Apr 2021 12:28:36 +0000 (14:28 +0200)]
Expose only config in MPDClient instance.

Remove useless daemon argument

3 years agoDefault config definition more consistent
kaliko [Wed, 21 Apr 2021 10:17:40 +0000 (12:17 +0200)]
Default config definition more consistent

3 years agosetup.py: Remove useless import
kaliko [Tue, 20 Apr 2021 08:42:02 +0000 (10:42 +0200)]
setup.py: Remove useless import

3 years agoAdd Genre plugin
kaliko [Mon, 19 Apr 2021 16:59:31 +0000 (18:59 +0200)]
Add Genre plugin

3 years agoFixed manual for Tags plugin
kaliko [Mon, 19 Apr 2021 15:40:53 +0000 (17:40 +0200)]
Fixed manual for Tags plugin

3 years agoUse duration instead of time in Track objects (closes #37)
kaliko [Mon, 19 Apr 2021 15:17:13 +0000 (17:17 +0200)]
Use duration instead of time in Track objects (closes #37)

3 years agoFixed bad pid in Uniq core plugin (closes #32)
kaliko [Mon, 19 Apr 2021 14:38:12 +0000 (16:38 +0200)]
Fixed bad pid in Uniq core plugin (closes #32)

When daemonized the PID advertised by the plugin (channel's name) was
the PID before the double fork and not the actual daemon's PID.

3 years agoFixed examples
kaliko [Mon, 19 Apr 2021 13:55:31 +0000 (15:55 +0200)]
Fixed examples

3 years agoFixed variable in info log message (typo introduced in baa6dc7)
kaliko [Sun, 21 Feb 2021 16:34:42 +0000 (17:34 +0100)]
Fixed variable in info log message (typo introduced in baa6dc7)

3 years agoExposes genres in Track objets
kaliko [Sat, 20 Feb 2021 16:22:14 +0000 (17:22 +0100)]
Exposes genres in Track objets

3 years agoFixed previous commit, cannot apply shuffle on MetaContainer
kaliko [Fri, 19 Feb 2021 17:38:44 +0000 (18:38 +0100)]
Fixed previous commit, cannot apply shuffle on MetaContainer

3 years agoAdd randomness in Tags plugin artist selection
kaliko [Fri, 19 Feb 2021 17:32:53 +0000 (18:32 +0100)]
Add randomness in Tags plugin artist selection

3 years agoSome cleanup in log, get messages more uniform across plugins
kaliko [Fri, 19 Feb 2021 17:24:00 +0000 (18:24 +0100)]
Some cleanup in log, get messages more uniform across plugins

3 years agoFixed plugin album_candidate method, missing loop break
kaliko [Fri, 19 Feb 2021 17:17:54 +0000 (18:17 +0100)]
Fixed plugin album_candidate method, missing loop break

3 years agoFixed "artist with quotes not found" (closes #41)
kaliko [Sat, 6 Feb 2021 11:30:12 +0000 (12:30 +0100)]
Fixed "artist with quotes not found" (closes #41)

3 years agoRemove a, now useless, conditional import.
kaliko [Fri, 5 Feb 2021 16:43:55 +0000 (17:43 +0100)]
Remove a, now useless, conditional import.

Needed for early version of python3 only.

3 years agoFixed crashes with untagged title (closes #40)
kaliko [Fri, 5 Feb 2021 13:08:18 +0000 (14:08 +0100)]
Fixed crashes with untagged title (closes #40)

3 years agoReleasing 0.16.1 0.16.1
kaliko [Sat, 9 Jan 2021 11:45:05 +0000 (12:45 +0100)]
Releasing 0.16.1

3 years agoUpdate log string
kaliko [Sat, 9 Jan 2021 08:29:11 +0000 (09:29 +0100)]
Update log string

3 years agoUse set-comprehension in simadb
kaliko [Tue, 22 Dec 2020 11:08:02 +0000 (12:08 +0100)]
Use set-comprehension in simadb

3 years agoCleanup linter warnings
kaliko [Tue, 22 Dec 2020 10:30:26 +0000 (11:30 +0100)]
Cleanup linter warnings

3 years agoUniform use of MetaContainer
kaliko [Mon, 21 Dec 2020 16:40:41 +0000 (17:40 +0100)]
Uniform use of MetaContainer

3 years agoEnsure in MPD filters there is at least the minimum metadata needed
kaliko [Mon, 21 Dec 2020 15:15:13 +0000 (16:15 +0100)]
Ensure in MPD filters there is at least the minimum metadata needed

3 years agoFixed issues in reorg and album_candidate
kaliko [Sun, 20 Dec 2020 17:52:12 +0000 (18:52 +0100)]
Fixed issues in reorg and album_candidate

3 years agoRemove dead clode from Tags plugin
kaliko [Sun, 20 Dec 2020 17:43:46 +0000 (18:43 +0100)]
Remove dead clode from Tags plugin

3 years agoUpdate random plugin
kaliko [Sun, 20 Dec 2020 17:00:34 +0000 (18:00 +0100)]
Update random plugin

3 years agoFixed bug in history plugin (24h db cleanup not fired)
kaliko [Sun, 20 Dec 2020 16:50:56 +0000 (17:50 +0100)]
Fixed bug in history plugin (24h db cleanup not fired)

3 years agoIntegrate pylint-gitlab and dependency scanning
kaliko [Fri, 18 Dec 2020 09:58:42 +0000 (10:58 +0100)]
Integrate pylint-gitlab and dependency scanning

3 years agoCleanup linter warnings
kaliko [Fri, 18 Dec 2020 11:38:12 +0000 (12:38 +0100)]
Cleanup linter warnings

3 years agoMajor refactoring of Plugin class
kaliko [Fri, 18 Dec 2020 09:11:01 +0000 (10:11 +0100)]
Major refactoring of Plugin class

Add an AdvancedPlugin class with advanced Player/db query. It permits to
share album search for album queue mode and other utilities previously
available in LastFM (ie. webserv) only.

3 years agoLower log message level
kaliko [Fri, 18 Dec 2020 08:47:33 +0000 (09:47 +0100)]
Lower log message level

3 years agoMPD client: Update name and aliases in case of discrepancy
kaliko [Thu, 17 Dec 2020 14:50:18 +0000 (15:50 +0100)]
MPD client: Update name and aliases in case of discrepancy

When MPD library returns an artist name different from the name used in
the query, an alias is add in addition to name update.

3 years agoAdd album queue mode to Tags plugin
kaliko [Thu, 17 Dec 2020 14:45:10 +0000 (15:45 +0100)]
Add album queue mode to Tags plugin

3 years agoFixed some code style and comment
kaliko [Wed, 16 Dec 2020 13:34:23 +0000 (14:34 +0100)]
Fixed some code style and comment

3 years agoUse window option in find request
kaliko [Wed, 16 Dec 2020 13:05:29 +0000 (14:05 +0100)]
Use window option in find request

Limit response size since this is only to test filter validity, response
is useless anyway.

3 years agoEnsure metadata used in filter are available (closes #38)
kaliko [Wed, 16 Dec 2020 13:03:50 +0000 (14:03 +0100)]
Ensure metadata used in filter are available (closes #38)

3 years agoFixed errors in documentation and bumped version
kaliko [Wed, 16 Dec 2020 10:15:48 +0000 (11:15 +0100)]
Fixed errors in documentation and bumped version