52 Commits

Author SHA1 Message Date
9558ad0d97 Add readpicture mpd function option to miniplayer 2022-11-12 23:32:11 -06:00
d1c7b4de6e Flush input buffers before first loop 2022-10-04 21:32:14 +00:00
9f64a610c5 Check MPD's repeat state every time when drawing repeat flag 2022-10-04 20:44:21 +00:00
4012271ccc Updated repeat keybind to check MPD repeat state when issued and toggle 2022-10-04 20:43:05 +00:00
d62e2fe779 Removed repeat flag 2022-10-04 20:42:10 +00:00
46811eb909 Merge pull request #23 from GuardKenzie/dev
Moved from using ffmpeg for album art to MPD's native method
2022-06-09 01:02:42 +00:00
db7baa44f2 Switched to mpd native albumart command
- Removed `http_base_url` and `http_cover_filenames` from config
- removed `_getAlbumArtFromFile` and `_getAlbumArtFromHttpServer` functions
- The `getAlbumArt` function now fetches the album art using `MPDClient.albumart`
- Removed unused imports.
2022-06-09 00:57:09 +00:00
86a7d7f52c Removed deprecation notice 2022-06-09 00:53:21 +00:00
98be83766d Fixed uppercase letters 2022-03-29 00:52:10 +00:00
5effa54038 Merge branch 'main' into dev 2022-03-29 00:29:51 +00:00
492a920c77 Fixed progressbar not updating when song repeats 2022-03-29 00:29:27 +00:00
c7f18f1b5b Added move_up and move_down commands 2022-03-29 00:29:06 +00:00
558eed9332 Added Up, Down, Left, and Right (shift + up, shift + down, ...) 2022-03-29 00:28:35 +00:00
4df5879df7 Made config keys case sensitive 2022-03-29 00:26:28 +00:00
c4413651e7 Fixed multiple artists
Tracks with multiple artists used to cause rendering issues and crashes
because then `artist` field was a list of strings while miniplayer
incorrectly assumed it to be a single string. The issue is fixed by
compiling multiple artists into a single string, separating them with
commas.
2022-03-27 00:16:50 +03:00
694910483b Added "delete" keybind to remove selected song from playlist 2021-11-23 23:42:31 +00:00
a91749aadc Added update_needed to repeat and shuffle 2021-11-23 23:42:03 +00:00
5c3c02d8ee Added delete and backspace as bindable keys 2021-11-23 23:40:43 +00:00
10e168ee0e Disabled playlist keys (up/down/select) when the playlist is not visible 2021-11-23 23:15:47 +00:00
3a63301f01 Added repeat and shuffle commands 2021-11-23 23:15:09 +00:00
ee69737141 Fixed illegible colors 2021-11-21 22:06:34 +00:00
d43dc3f3dc Fixed error when no temporary album art present 2021-11-21 01:46:40 +00:00
8f158e4656 Added theming and auto color picking.
- Added a config section called "theme"
- Added config values `accent_color`, `bar_color`, `time_color`, `bar_head` and `bar_body`
- Added a `color_update_needed` flag
- Added a function `getDominantColor` to get the dominant color from the current album art
- Added a separate color pair for the time stamp
- Fixed variable error referenced before assignment
- Changed default progress bar look
2021-11-21 01:16:03 +00:00
2b113f7358 Added backwards compatibility with older configs 2021-09-09 14:01:50 +02:00
c398b53f4d Using requests HTTP session for better performance 2021-08-09 16:34:04 +02:00
8deec2b499 Added possibility to configure what art filenames to try with webserver call 2021-08-09 16:21:55 +02:00
8793e28fe0 Added possibility to fetch album art from HTTP server 2021-08-09 15:40:54 +02:00
033ee8cd0a Added support for using spacebar in configuration file 2021-06-30 23:24:47 +02:00
4d83ede6b6 Made the playlist play a bit better with adding and removing songs 2021-06-05 14:06:42 +00:00
df28cac8bd Fixed an issue where if there was no config file present the player would error on startup. 2021-05-23 23:27:59 +00:00
d71a5486df Fixed an issue where the progress bar did not reset when starting the currently playing song again with the select action. 2021-05-16 20:58:45 +00:00
73fa635830 Fixed an issue where the player would crash if the playlist was cleared while running
Fixed an issue where the player would crash when songs did not have metadata
2021-05-13 21:57:33 +00:00
11128b7d06 Fixed the issue where the album art did not fill up the window when toggling info 2021-05-13 01:39:22 +00:00
4b7caa6f03 Made the selected song follow the currently playing song if no playlist controls have been pressed for 30s. 2021-05-13 01:38:23 +00:00
3856deccff Fixed an error where if player was resized quickly while trying to draw the playlist, the player would crash. 2021-05-13 01:09:10 +00:00
4257070fe0 Added curses.KEY_ENTER to the special keys map 2021-05-13 01:05:34 +00:00
a0c9ae3ea6 Added controls to the playlist window 2021-05-13 01:04:41 +00:00
d8adba0a1a Cleaned up some of the code 2021-05-12 23:49:47 +00:00
916d96c4b6 Added a new window for the playlist
Added a new config option `show_playlist` to specify if the playlist should be drawn
Added a feature where when the window proportions exceed 1:3, 40% will be used for album art and time info while the remaining 60% will be used for playlist display
2021-05-11 01:37:57 +00:00
1bf6f16459 Added a config option to auto close the player once the playlist is finished. 2021-04-30 18:22:35 +00:00
7628bb37f7 Added the ability to toggle displaying track information or just album art. 2021-04-30 18:10:02 +00:00
2e5bb7b4f5 Made the help menu display the correct keybindings after they have been changed in the config. 2021-04-30 17:43:01 +00:00
a64886d6a8 Merge remote-tracking branch 'origin/main' 2021-04-28 12:50:29 +00:00
2486c137de Added the ability to configure the volume step. 2021-04-28 12:46:56 +00:00
da7655cf51 Added the ability to specify keybinds in the config file 2021-04-28 12:45:02 +00:00
bd3c5aa639 Feature: add password support to MPDClient 2021-04-28 07:01:45 +05:30
3a9b60e96f Made the player more responsive by increasing loops per second and by implementing a update flag which forces a redraw when certain keybinds are pressed. 2021-04-19 17:23:38 +00:00
0491341d6e Fixed an issue where if the song artist or title was not set, the player would error. When there is no title, the file name without the extension will be used. 2021-02-01 23:11:32 +00:00
6706c93797 Added support for Überzug to display album art 2021-01-31 14:50:15 +00:00
6ca9b405ce Added a configuration option for mpd host and port. 2021-01-31 00:10:40 +00:00