Henrik Friedrichsen
240a0a7c41
Fix: Play multiples of Track and Playable
...
With the migration to rspotify 0.11.x playlists were changed to be a list of `Playable`
instead of `Track` items, so that playlists can contain podcast episodes.
This needs to be considered when collecting all tracks for playback in `ListView`.
Should help with #667
2021-12-08 21:32:36 +01:00
Henrik Friedrichsen
74b4e65b64
Refactor: move playable models to separate module
2021-11-08 20:44:21 +01:00
Henrik Friedrichsen
96f2d88696
Update to rspotify 0.11.2 ( #640 )
...
* Update to rspotify 0.11.x
Many breaking changes
* Minor cleanups via Clippy
2021-11-07 17:19:56 +01:00
Henrik Friedrichsen
ec640581bc
Add initial_screen config variable
...
Resolves #616
2021-10-15 17:20:12 +02:00
Henrik Friedrichsen
e0a0987f1a
Add "Share album" contextmenu entry
...
Fixes #606
2021-09-24 22:56:37 +02:00
HMH
102acd803e
Enable binding multiple commands to a key.
...
This enables useful combinations of commands like `Space -> queue; move
down 1` using ';' as command separator. ';' can be escaped using ';;'.
2021-09-11 21:40:00 +02:00
HMH
d17c66f8ad
Add command to show recommendations. ( #593 )
...
* Add command to show recommendations.
This adds a command `similar selected|current` which enables searching for
track recommendations for playlists, albums as well as single tracks.
* Make sure to only send 5 seed items in total.
* Add docs for recommendation bindings to the README
2021-09-07 15:01:06 +02:00
Henrik Friedrichsen
faad362f55
Refactor: separate Spotify API from player logic
...
The separation is not perfect yet, but it's a start and makes the entire codebase much easier to read.
2021-08-23 22:15:54 +02:00
Ahmad Sattar
d949a7c02b
Scroll changes volume when mouse is on volume %
2021-08-17 17:30:06 +02:00
Henrik Friedrichsen
6b8e1d33dc
Code cleanups
2021-08-15 15:05:49 +02:00
Henrik Friedrichsen
eb8d9ad294
Fix notify/cover platform config
2021-07-27 23:04:00 +02:00
Henrik Friedrichsen
d731fe7188
Make command_key configurable
...
Fixes #487
2021-07-27 01:35:21 +02:00
nc
2edc22f251
add album cover to notification
2021-07-16 10:27:37 +02:00
Henrik Friedrichsen
46a8f01bac
Fix: Handle commands in select artist modal
...
Fixes #560
2021-07-11 01:29:11 +02:00
Ronak Buch
9de86e6294
Fix nerdfont pause/stop glyphs
...
b42315d accidentally changed both of these to the glyph for play, this
reverts them back to the correct glyphs.
2021-05-30 01:30:22 +02:00
Ronak Buch
1259badd9a
Bump reqwest form 0.9 to 0.11
2021-05-28 09:43:28 +02:00
Henrik Friedrichsen
b42315d113
Add flip_status_indicators setting
...
Fixes #511
2021-05-14 17:41:19 +02:00
Henrik Friedrichsen
cd2cde542e
Revert "Flip play/pause indicators"
2021-05-14 14:13:44 +02:00
Henrik Friedrichsen
40ad2bd208
Fix build of cover feature
2021-05-11 22:47:56 +02:00
Henrik Friedrichsen
8fb854dea6
Cargo format
2021-05-10 22:18:03 +02:00
fwcd
09404285c1
Use 'play' icon in stopped state
2021-05-10 22:09:38 +02:00
Henrik Friedrichsen
83dd2494c8
Remove spammy trace log in ListView
2021-05-07 23:16:47 +02:00
Henrik Friedrichsen
f0d5e31c86
Flip play/pause indicators
...
Fixes #511
2021-05-07 22:56:09 +02:00
Henrik Friedrichsen
71d42d489e
Remove extern crate statements
...
https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html
2021-05-07 22:51:32 +02:00
Kemyt
aa8e9f1099
Add rounding to volume percentage display
...
Shows percentage is sometimes lower than actual because float number
is cast to u16 without rounding, so for example 4.99_f64 becomes 4_u16
2021-04-17 17:48:41 +02:00
Henrik Friedrichsen
decf7c2aef
Improve synchronization of playback times
...
Take librespot timestamps instead of approximating them in ncspot.
2021-04-11 15:17:10 +02:00
Henrik Friedrichsen
32cb6e70d3
Show tracks + duration of album, playlist, queue
...
Stats are in the top right
Fixes #475
2021-04-08 22:26:19 +02:00
Henrik Friedrichsen
577e7ebd87
Unify pagination setup for ApiResult values
...
Also:
- Fix duplicate results
- Rename `album.load_tracks` to `album.load_all_tracks`
2021-04-08 17:46:50 +02:00
Henrik Friedrichsen
0f8e4d0558
Use new pagination interface for podcast episodes
2021-04-08 16:49:19 +02:00
Henrik Friedrichsen
02921752e1
Use new pagination interface for artist albums
...
Brings along some other changes:
- Split artist albums/singles into separate panel
- Paginate artist albums/singles
- Play top tracks by artist instead of all tracks by artist
Fixes #477
2021-04-06 15:02:19 +02:00
Henrik Friedrichsen
c48771770c
Implement new pagination abstraction
...
This moves the pagination logic to Spotify API results instead of having
to reimplement it on the consumer end.
2021-04-06 14:55:01 +02:00
Henrik Friedrichsen
0f573f8247
Refactor: Make Spotify cloneable
2021-04-03 22:35:08 +02:00
Henrik Friedrichsen
8483653cde
Refactor: extract Spotify Worker to separate file
2021-04-03 21:38:42 +02:00
Henrik Friedrichsen
d2edfc3caf
rename as_boxed_view_ext to into_boxed_view_ext
2021-03-22 22:36:33 +01:00
Henrik Friedrichsen
5f87e3cd79
show display name owning the current library
...
as suggested in #470
2021-03-22 21:56:50 +01:00
André Andersson
65e9887f38
Refactor needs_download and rename library.items to better convey usage ( #466 )
...
* Refactor
* Rename items to playlists and update error message
2021-03-16 20:43:17 +01:00
Henrik Friedrichsen
ff6788a2a9
Clear search term when ESC is pressed
...
fixes #384
2021-03-06 00:00:19 +01:00
Henrik Friedrichsen
f2bcfcaa60
fix: more resilient playlist track deletion
...
Introduction of the sort command with #328 broke the deletion of playlist items,
because sorted track indices got out of sync with their actual index within the
playlist at the Spotify backend.
The new approach is not perfect, as it doesn't update the list index of items
after deletion, but by supplying the playlist snapshot id the backend is able to
apply the requested changes.
This should still be improved in the future, though.
2021-03-05 23:34:29 +01:00
Henrik Friedrichsen
466b4cd18e
Refactor pagination code into separate file
2021-03-05 21:54:29 +01:00
Henrik Friedrichsen
ca8f1a8545
Persist sorting orders for playlists
...
Closes #436
2021-03-05 21:54:29 +01:00
Qluxzz
3d11b2c333
Fix spelling mistake
2021-03-05 21:54:15 +01:00
KoffeinFlummi
df87ff9bdd
Implement cover drawing as optional feature
2021-02-27 13:14:49 +01:00
Henrik Friedrichsen
f49e241e10
fix: correct positioning of search match highlight
2021-02-06 00:48:26 +01:00
André Andersson
ab60556644
Fix removing listview item even if not succesfully deleted ( #404 )
...
* Fix deleting listview item if not deleted
* Refactor
2021-01-23 22:42:42 +01:00
Alexandre Bury
cfb91493a5
Update to cursive 0.16
2021-01-19 21:47:18 +01:00
André Andersson
ed0c62a888
Add support for open.spotify.com links ( #392 )
...
* No longer necessary
* Add support for open.spotify.com links
* Reuse struct for insert command
* Formatting
2021-01-17 20:12:07 +01:00
André Andersson
206a7d88a5
Return to search when viewing search results
2021-01-16 22:50:12 +01:00
André Andersson
d9d6d684ea
Fix multiple tracks in queue being shown as playing ( #396 )
...
* Fix multiple items being shown as playing
* Refactor
2021-01-16 21:40:59 +01:00
Henrik Friedrichsen
f507ef6ced
show screen title in "pop view" hint
...
fixes #376
2021-01-10 17:04:37 +01:00
Henrik Friedrichsen
9afad2d91c
cargo fmt/clippy
2021-01-10 01:54:54 +01:00