Henrik Friedrichsen
880fbb3f6e
fix: don't try to play tracks without spotify id
...
Can happen when a playlist is queued that contains tracks removed from the
Spotify catalogue.
fixes #321
2020-11-16 22:21:27 +01:00
Bettehem
e0cfc40639
Spotify URL handling improvements ( #320 )
...
* Fixed regex for handling links via ctrl+v shortcut.
Fixed the whole url getting passed to get data on each link type instead of only the id.
Fixed MPRIS OpenUri function not handling an user&id in the link correctly.
2020-11-15 19:17:15 +01:00
Bettehem
9baed7ae98
Added possibility to turn on/off shuffle using MPRIS ( #318 )
...
* Added possibility to turn shuffle on/off via MPRIS
* Simplified code to use unwrap_or instead of a match.
Changed the default value to be retrieved from spotify.
* only set shuffle setting if parameter was passed
* fix: fetch shuffle state with every MPRIS query
And not just once during DBus/MPRIS setup. Also, redraw UI when shuffle
state has changed.
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-11-14 21:50:13 +01:00
dependabot-preview[bot]
db521d47ed
Bump futures from 0.3.7 to 0.3.8 ( #316 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.7...0.3.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-10 20:18:50 +01:00
Bettehem
a8861fc1aa
Spotify URL support for MPRIS OpenUri function ( #314 )
...
* Added OpenUri D-BUS MPRIS support.
Removed "user:" from URIType check because Spotify doesn't always provide it.
* Added tags to .gitignore
* Changed mpris metadata to actually return the track's url instead of the Spotify URI so that it matches the functionality of the official Spotify client.
* Changed mpris:trackid and xesam:url to not use static naming so it can support podcasts.
* Changed xesam:url to default to an empty string instead of "0"
* Added possibility to start playing Shows and Episodes via MPRIS.
Added possibility to search for Podcast Episodes.
* Fixed mpris:trackid not returning the id in the correct format.
MPRIS OpenUri function now supports Spotify url links.
* return result directly instead of mut string
* handle artist URLs/URIs
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-11-10 20:18:22 +01:00
dependabot-preview[bot]
0c1297d749
Bump regex from 1.4.1 to 1.4.2
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.4.1...1.4.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-11-07 13:48:54 +01:00
Max Isom
9a19032b33
Add Homebrew instructions
...
ncspot is [now available via Homebrew](https://github.com/Homebrew/homebrew-core/pull/63554 )!
2020-10-28 14:16:14 +01:00
Matheus Cardoso
7c61fe8b29
add doc about possibility to add track to playlist ( #306 )
...
* add doc about possibility to add track to playlist
* Update README.md
mention "similar tracks" feature as well
Co-authored-by: cardosaum <cardosaum@pm.me >
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-27 08:52:41 +01:00
Henrik Friedrichsen
61e9db0a21
bump version to 0.2.4
2020-10-26 21:41:12 +01:00
dependabot-preview[bot]
c7fe964a4b
Bump libc from 0.2.79 to 0.2.80 ( #304 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.79 to 0.2.80.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.79...0.2.80 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-26 10:12:53 +01:00
dependabot-preview[bot]
15d3ba1da4
Bump futures from 0.3.6 to 0.3.7 ( #305 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.6...0.3.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-26 10:12:42 +01:00
Bolli
d88ea93a94
feat: create new empty playlist via command ( #272 )
...
* feat: create new empty playlist via command
- type :newplaylist <name> to create a new playlist
fixes #242
* use full argument string for playlist name
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-25 17:57:49 +01:00
Henrik Friedrichsen
5fb4eb7af2
fix: update playlist changes in local store
...
Move playlist change logic out of the library while we're at it and notify
the library of changes instead.
fixes #302
2020-10-25 00:09:23 +02:00
JojiiOfficial
6587efdfd2
Add dialog for adding duplicate tracks to a playlist ( #299 )
...
* Add dialog for adding duplicate tracks to a playlist
* use local playlist store to check for duplicates
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-24 20:41:55 +02:00
dependabot-preview[bot]
e698d51e59
Bump dbus from 0.8.4 to 0.9.0 ( #296 )
...
* Bump dbus from 0.8.4 to 0.9.0
Bumps [dbus](https://github.com/diwic/dbus-rs ) from 0.8.4 to 0.9.0.
- [Release notes](https://github.com/diwic/dbus-rs/releases )
- [Commits](https://github.com/diwic/dbus-rs/compare/dbus-v0.8.4...dbus-v0.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* migrate to dbus/dbus-tree 0.9.0
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-24 00:03:19 +02:00
Saul Chavez Sanchez
c9d02507ac
Increase/Decrease volume by 5 ( #298 )
...
* Increase/Decrease volume by 5
* Fixed static value
* use fallback value in case parsing fails
fixes #282
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-22 20:21:49 +02:00
dependabot-preview[bot]
da915ab563
Bump fern from 0.5.9 to 0.6.0
...
Bumps [fern](https://github.com/daboross/fern ) from 0.5.9 to 0.6.0.
- [Release notes](https://github.com/daboross/fern/releases )
- [Changelog](https://github.com/daboross/fern/blob/master/CHANGELOG.md )
- [Commits](https://github.com/daboross/fern/compare/fern-0.5.9...fern-0.6.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-10-20 10:53:44 +02:00
dependabot-preview[bot]
db82f716f2
Bump serde_json from 1.0.58 to 1.0.59
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.58...v1.0.59 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-10-20 10:53:33 +02:00
Henrik Friedrichsen
36159900fd
dependency updates
...
Squashed commit of the following:
commit be5808240d03ae8d3a0238c6597d431b317796e0
Merge: cb0cc67 8103734
Author: Henrik Friedrichsen <henrik@affekt.org >
Date: Mon Oct 19 00:27:21 2020 +0200
Merge remote-tracking branch 'origin/dependabot/cargo/toml-0.5.7' into deps
commit cb0cc67e92d89516d52686a67dff7ff5c04d5495
Merge: b8eeb1a 68856c6
Author: Henrik Friedrichsen <henrik@affekt.org >
Date: Mon Oct 19 00:27:12 2020 +0200
Merge remote-tracking branch 'origin/dependabot/cargo/strum_macros-0.19.4' into deps
commit b8eeb1ab1e105886caec337d4f956b0ec5fc4296
Merge: d490fce 9139195
Author: Henrik Friedrichsen <henrik@affekt.org >
Date: Mon Oct 19 00:27:05 2020 +0200
Merge remote-tracking branch 'origin/dependabot/cargo/serde-1.0.117' into deps
commit d490fce784d43eb54615edaae23a2d6bfaf64cc5
Merge: ee72425 51ecfbc
Author: Henrik Friedrichsen <henrik@affekt.org >
Date: Mon Oct 19 00:26:53 2020 +0200
Merge remote-tracking branch 'origin/dependabot/cargo/regex-1.4.1' into deps
commit ee72425de2ee0137a383c0908ae56d469b9d735e
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date: Sun Oct 18 22:19:04 2020 +0000
Bump crossbeam-channel from 0.4.4 to 0.5.0
Bumps [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ) from 0.4.4 to 0.5.0.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.4.4...crossbeam-channel-0.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
commit 51ecfbcb26f2931c74ccacd408224cefdccd9130
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date: Sun Oct 18 22:18:44 2020 +0000
Bump regex from 1.3.9 to 1.4.1
Bumps [regex](https://github.com/rust-lang/regex ) from 1.3.9 to 1.4.1.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.3.9...1.4.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
commit 68856c6b42fd4411218a906b603c658bf4634038
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date: Sun Oct 18 22:18:17 2020 +0000
Bump strum_macros from 0.17.1 to 0.19.4
Bumps [strum_macros](https://github.com/Peternator7/strum ) from 0.17.1 to 0.19.4.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
commit 81037349e712317a1cd2b47c424e58535e97b3fd
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date: Sun Oct 18 22:18:03 2020 +0000
Bump toml from 0.5.6 to 0.5.7
Bumps [toml](https://github.com/alexcrichton/toml-rs ) from 0.5.6 to 0.5.7.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases )
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.5.6...0.5.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
commit 91391958b2d1d46e4038ceb16c84219a8ce5c373
Author: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Date: Sun Oct 18 22:17:34 2020 +0000
Bump serde from 1.0.116 to 1.0.117
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.116 to 1.0.117.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.116...v1.0.117 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-10-19 00:30:47 +02:00
Henrik Friedrichsen
79a3d0ca8a
add recommendations/similar tracks feature
...
fixes #186
2020-10-18 17:41:18 +02:00
Henrik Friedrichsen
e5be021699
refactor: zap display_center stub implementations
2020-10-18 17:04:41 +02:00
Henrik Friedrichsen
013beb245b
refactor: pass globally mutable config reference
...
Before, copies of the configuration were passed over. This change also
causes configuration reloads to affect the entire application and is
easier to maintain but introduces some RwLock overhead.
2020-10-18 13:09:45 +02:00
Henrik Friedrichsen
e1b4892b8a
make album column for tracks configurable
...
introduces new config variable `album_column`
fixes #267
2020-10-17 23:56:23 +02:00
Henrik Friedrichsen
9fbbc7921e
fix: handle overlapping columns in listview
2020-10-17 23:45:14 +02:00
Henrik Friedrichsen
f00580b97e
highlight search query matches in listviews
2020-10-15 23:43:18 +02:00
Mario Rodas
6bb2c08705
Replace directories with platform_dirs create
...
`directories` create is no longer maintained, and uses
`~/Library/Preferences` on MacOS, but Apple advises against creating
files in `Preferences`.
`platform-dirs` allows to use `~/.config` on MacOS.
2020-10-12 10:46:36 +02:00
Henrik Friedrichsen
b777ff3bc8
bump version to 0.2.3
2020-10-10 21:00:54 +02:00
Henrik Friedrichsen
d862a77edd
document ctrl-v/open from clipboard binding
2020-10-10 20:55:24 +02:00
Henrik Friedrichsen
b9dfc09421
update dependencies
2020-10-10 20:52:30 +02:00
Henrik Friedrichsen
f3c66111a2
cargo clippy
2020-10-10 20:47:12 +02:00
Henrik Friedrichsen
f40b36c967
remove broken snap badge
2020-10-09 20:29:42 +02:00
Henrik Friedrichsen
98914f27e1
fix: load more tracks if album has more than 50
...
fixes #281
2020-10-09 20:22:15 +02:00
Bolli
79093eca1e
feat: add insert command to paste spotify links ( #277 )
...
* feat: add insert command to paste spotify links
- use Ctrl-v to paste from clipboard or use :insert without an argument
* fix: handle paste on disabled clipboard feature
* fix: handle wrong URIs
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-09 19:26:52 +02:00
Moshe Sherman
f2b4f01242
Vim like search ( #279 )
...
* add quick search within a list
* vim like search navigation
* close cmd line with esc
* format
* document changes in README
2020-10-05 13:50:12 +02:00
Moshe Sherman
fc79889665
play next ( #278 )
...
* add play next feature
* fix play_next insertion order
* fix play_next call for playable
* document play_next shortcut + reformat
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-10-04 16:58:55 +02:00
Moshe Sherman
7bf0cac6c0
handle last element removal in queue
2020-10-01 20:48:27 +02:00
Moshe Sherman
4e7ec60b0e
disable repeat track if manualy skip song
2020-10-01 20:48:27 +02:00
Moshe Sherman
9872a10bfa
adhere to repeat/shuffle settings on previous track
2020-10-01 20:48:27 +02:00
Moshe Sherman
181f5e4918
dont stop track
2020-10-01 20:48:27 +02:00
Moshe Sherman
77e5de562d
Display album name for playable objects ( #268 )
...
* display album name
* give proper name to the space key
fixes #266
* use 50% for center offset
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-09-28 22:28:10 +02:00
Kemyt
cded15f50c
Fix last tab to fill entire width correctly ( #271 )
...
Condition to check if the tab is the last one was never met.
Co-authored-by: Kemyt <kemyt4@gmail.com >
2020-09-24 09:13:37 +02:00
eulerfan271
9e970f5799
Added config option for bitrate ( #270 )
...
* added config option for bitrate
* updated README.md to include bitrate config options
2020-09-22 17:01:56 +02:00
Moshe Sherman
c4ec1a9122
give proper name to the space key
...
fixes #266
2020-09-16 08:56:50 +02:00
Henrik Friedrichsen
3893a6f5a0
add feature flag for song notifications
...
enables users/distributions to ship without dbus dependency
2020-09-07 23:50:45 +02:00
Henrik Friedrichsen
69f11cdcf7
gracefully handle error when showing notification
...
fixes #265
2020-09-07 23:38:37 +02:00
Henrik Friedrichsen
9be4ca8185
update to 0.2.2
2020-09-01 07:54:45 +02:00
pin
b5e718f5f6
Use libc for setlocale() to fix non-ASCII ( #256 )
...
* Use libc for setlocale() to fix non-ASCII
character printing.
https://github.com/hrkfdn/ncspot/issues/221
* move string instantiation outside unsafe block
update libc crate while at it
Co-authored-by: Henrik Friedrichsen <henrik@affekt.org >
2020-08-29 11:27:47 +02:00
Henrik Friedrichsen
6f7b64c908
cargo clippy
2020-08-23 21:00:29 +02:00
Henrik Friedrichsen
1edf28a165
make contextmenu aware of commands
...
e.g. to process vim-like keybindings for navigation
fixes #108 , fixes #157 , fixes #178 , fixes #199 , fixes #250
2020-08-23 20:44:03 +02:00
Henrik Friedrichsen
d2b9dffb54
fix: do not delete from empty queue
...
fixes #253
2020-08-21 00:13:54 +02:00