summaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
AgeCommit message (Collapse)AuthorFilesLines
2024-06-21do not call read_header()ffmpeg-7Gravatar Christian Hesse1-5/+0
Looks like this is private and has never been intended to be call by us.
2024-06-19add a format specifier for durationGravatar Christian Hesse1-3/+11
2024-06-19support custom format from configurationGravatar Christian Hesse1-9/+24
2024-06-19support custom format at build time...Gravatar Christian Hesse1-32/+50
... and drop the option for oneline formatting. That can be achived differently now.
2024-06-18use sigaction(2) instead of signal(2)Gravatar Christian Hesse1-4/+7
As stated in the man pages, `sigaction` should be preferred to `signal`.
2024-05-21give a hint with no artworkGravatar Christian Hesse1-0/+3
2024-05-21add a comment on possibly missing mime-typesGravatar Christian Hesse1-0/+1
2024-05-21accept mime-types for MPEG-4 audio for artworkGravatar Christian Hesse1-1/+3
Looks like libmagic gives the mime-types 'audio/mp4' and 'audio/x-m4a' for these... Fixes #45
2024-01-01update copyright for 2024Gravatar Christian Hesse1-1/+1
2023-01-03update copyright for 2023Gravatar Christian Hesse1-1/+1
2022-08-24fix libav version checkGravatar Christian Hesse1-1/+1
Checking with LIBAVCODEC_VERSION_INT is stupid if we do not include libavcodec... Let's use LIBAVFORMAT_VERSION_INT instead. This broke with commit 06d4b9b7a160ee1fbdc419f16dd6b8c9277288a8. Fixes #42
2022-01-03update copyright for 2022Gravatar Christian Hesse1-1/+1
2021-03-16fix flickering notification when unpausingGravatar fwsmit1-1/+1
When last state is 'pause' we already have the correct icon, so no need to reset with generic icon. Signed-off-by: Christian Hesse <mail@eworm.de>
2021-01-01update copyright for 2021Gravatar Christian Hesse1-1/+1
2020-11-25try $XDG_CONFIG_HOME/mpd-notification.conf firstGravatar maxice81-2/+6
Signed-off-by: Christian Hesse <mail@eworm.de>
2020-11-25clearly state the licenseGravatar Christian Hesse1-2/+13
2020-01-28update copyright for 2020Gravatar Christian Hesse1-1/+1
2019-10-10this is condition, not loopGravatar Christian Hesse1-1/+1
2019-10-09drop retry code, just fail and let the service restartGravatar Christian Hesse1-20/+3
2019-10-08do not retry on exitGravatar Christian Hesse1-1/+1
2019-01-01update copyright for 2019Gravatar Christian Hesse1-1/+1
2018-05-30show track information on pauseGravatar Christian Hesse1-11/+6
2018-05-30show a notification without image data firstGravatar Christian Hesse1-1/+11
2018-05-28use correct type for stateGravatar Christian Hesse1-1/+2
2018-05-28set notification timeout onceGravatar Christian Hesse1-3/+2
2018-05-16update for ffmpeg 4.xGravatar Christian Hesse1-0/+2
The function av_register_all() is deprecated since commit 0694d8702421e7aff1340038559c438b61bb30dd.
2018-01-02update copyright for 2018Gravatar Christian Hesse1-1/+1
2017-10-30try to scale with valid pixbuf onlyGravatar Christian Hesse1-1/+1
2017-03-03properly handly timeout valuesGravatar Christian Hesse1-3/+3
The timeout value in the config file was expected to be in ms... Fixes #18
2017-03-02do not disable artwork stuff for remote hostGravatar Christian Hesse1-4/+0
Looks like people run mpd on remote host and have a copy (or net mount) with media and/or image files on local system. So do not disable artwork stuff for remote host. Fixes #16
2017-03-02add compile time features to version stringGravatar Christian Hesse1-1/+8
2017-01-06notify systemd on stopGravatar Christian Hesse1-0/+9
2017-01-05make systemd optionalGravatar Christian Hesse1-0/+8
2017-01-05give some extra status informationGravatar Christian Hesse1-3/+7
2017-01-05use systemd service manager notificationGravatar Christian Hesse1-0/+3
2017-01-04update copyright for 2017Gravatar Christian Hesse1-1/+1
2016-10-10string updatesGravatar Christian Hesse1-10/+10
2016-10-10add more error handlingGravatar Christian Hesse1-6/+30
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-10-07allow option 'oneline' in config fileGravatar Christian Hesse1-1/+2
2016-10-07sort and complete help outputGravatar Christian Hesse1-1/+1
2016-10-07fix compilation without libavGravatar Christian Hesse1-5/+7
2016-10-07update error pathGravatar Christian Hesse1-14/+20
2016-10-07make libmagic initialization globalGravatar Christian Hesse1-17/+20
2016-10-07update verbose and error outputGravatar Christian Hesse1-9/+9
2016-10-07update verbose outputGravatar Christian Hesse1-4/+12
2016-10-07use libmagic to decide whether to search for media artworkGravatar Christian Hesse1-11/+33
2016-10-05support reading options from config fileGravatar Christian Hesse1-0/+15
This tries to read ~/.local/mpd-notification.conf, which is expected to look like this: host = localhost port = 6600 music-dir = /srv/media/music/ scale = 200 timeout = 20 Unused options can be commented or removed completely.
2016-10-05add scale option to help outputGravatar Christian Hesse1-1/+1
2016-10-05add notification file workaroundGravatar Christian Hesse1-3/+14
2016-10-05keep aspect ratio when scalingGravatar Christian Hesse1-1/+9
2016-10-05allow to scale artwork imagesGravatar Christian Hesse1-2/+17
2016-10-05merge the artwork functionsGravatar Christian Hesse1-52/+32
2016-10-05do not handle image path, but always give pixbufGravatar Christian Hesse1-20/+14
2016-10-04always set imageGravatar Christian Hesse1-2/+2
Looks like libnotify does remember the image even if the notification is updated. So always set the image, it is cleared when called with NULL.
2016-04-01Allow one line notificationsGravatar Christian Hesse1-8/+20
This is related to #9.
2016-01-09support local unix socketsGravatar Ronnie P. Thomas1-1/+1
Add support for using local AF_UNIX sockets as host
2016-01-04update copyright for 2016Gravatar Christian Hesse1-1/+1
2015-11-16read environment variables: MPD_HOST and MPD_PORTGravatar Christian Hesse1-1/+9
Fixes #6
2015-11-16free resources when nothing to be displayedGravatar Christian Hesse1-1/+2
We need to free our resources, otherwise subsequent calls will fail. Should fix #7
2015-07-14clean AVFormatContextGravatar Christian Hesse1-4/+4
2015-07-09make sure to use artwork when availableGravatar Christian Hesse1-1/+7
2015-07-09silent libav error messages only when not verboseGravatar Christian Hesse1-1/+2
2015-07-09move verbose output into conditional outputGravatar Christian Hesse1-3/+3
2015-07-09be verbose about artworkGravatar Christian Hesse1-0/+3
2015-07-09always allocate memory for notification stringGravatar Christian Hesse1-3/+3
2015-07-09rename define after icon nameGravatar Christian Hesse1-3/+3
2015-07-09do not write artwork to file but handle pixbuf to libnotifyGravatar Christian Hesse1-36/+35
2015-07-09silent libav error messagesGravatar Christian Hesse1-0/+3
2015-07-09rework the notification string handlingGravatar Christian Hesse1-16/+37
2015-07-03make libav (and retrieving cover from media file) optionalGravatar Christian Hesse1-1/+12
2015-07-03add --version optionGravatar Christian Hesse1-5/+16
2015-06-19Implement a notification-timeout option (-t)Gravatar Samuel Čavoj1-5/+11
It takes a floating point input in seconds and is converted to ms before passed to libnotify. Modified-by: Christian Hesse <mail@eworm.de>
2015-04-21use libav/ffmpeg to get artwork from mp3 filesGravatar Christian Hesse1-2/+67
2015-03-20check for correct return codeGravatar Christian Hesse1-4/+4
2015-01-04update copyright for 2015Gravatar Christian Hesse1-1/+1
2014-10-01print signal nameGravatar Christian Hesse1-3/+3
2014-09-30introduce mpd-notification.hGravatar Christian Hesse1-18/+1
2014-09-30handle SIGINT and SIGTERMGravatar Christian Hesse1-9/+36
2014-08-28handle icon in root directoryGravatar Christian Hesse1-1/+6
2014-08-28update help outputGravatar Christian Hesse1-1/+1
2014-08-28do not use DEBUG macro, but use verbose command line argumentGravatar Christian Hesse1-22/+33
2014-08-27add support for album artwork, closes #1Gravatar Christian Hesse1-4/+72
2014-08-09allow to use long command line argumentsGravatar Christian Hesse1-1/+11
2014-07-02free strings after useGravatar Christian Hesse1-3/+7
2014-05-06use getopt for command line parsingGravatar Christian Hesse1-27/+13
2014-01-02write version to header fileGravatar Christian Hesse1-0/+1
2014-01-02update copyright yearGravatar Christian Hesse1-1/+1
2013-10-30complain if hostname is emptyGravatar Christian Hesse1-0/+4
2013-10-22parse command line options for host and portGravatar Christian Hesse1-0/+27
2013-10-22add mpd host configuration optionsGravatar Christian Hesse1-1/+3
2013-09-12print PID in debug modeGravatar Christian Hesse1-0/+4
2013-08-23display the notification again on SIGUSR1Gravatar Christian Hesse1-10/+32
2013-08-08indent includes0.4.2Gravatar Christian Hesse1-7/+7
2013-07-25introduce config.hGravatar Christian Hesse1-8/+2
2013-07-11use sizeof()Gravatar Christian Hesse1-1/+1
2013-07-07fix compilation with libnotify < 0.7.0Gravatar Christian Hesse1-1/+6
2013-07-04remove trailing whitespaces0.4.1Gravatar Christian Hesse1-1/+1
2013-07-03add note about debug outputGravatar Christian Hesse1-1/+5
2013-04-29whitespaces/tabsGravatar Christian Hesse1-6/+6
2013-04-27set properties only onceGravatar Christian Hesse1-2/+2