Commit Graph

214 Commits

Author SHA1 Message Date
KoffeinFlummi
1a17860957 cargo fmt 2019-04-20 00:11:43 +02:00
KoffeinFlummi
f320b953d6 Implement following playlists 2019-04-19 23:50:36 +02:00
KoffeinFlummi
e68ba60179 Optimize/parallelize library initialization 2019-04-19 22:50:12 +02:00
KoffeinFlummi
3044715362 Lock library until initialization is done 2019-04-19 22:49:30 +02:00
KoffeinFlummi
1e58ca9345 Implement (un)saving tracks, albums; (un)following artists 2019-04-18 15:43:51 +02:00
KoffeinFlummi
4c974a83f7 Use command system for queue saving 2019-04-18 15:43:04 +02:00
KoffeinFlummi
adba809327 Display saved/followed checkmark 2019-04-18 14:04:40 +02:00
KoffeinFlummi
d93302a63f Restore playlist deletion 2019-04-18 13:31:27 +02:00
KoffeinFlummi
ab0d3eb9e7 Add .log to .gitignore 2019-04-18 13:30:44 +02:00
KoffeinFlummi
d8f3365867 Don't remove artists added via tracks 2019-04-16 20:30:04 +02:00
KoffeinFlummi
cb32f0ca07 Add all tracks to queue when playing 2019-04-16 19:52:44 +02:00
KoffeinFlummi
210c7d9f4e Implement saved tracks, albums, and artists 2019-04-16 19:52:22 +02:00
KoffeinFlummi
dd69a8c6f2 Fix keybinding parsing for Mod+Char 2019-04-16 19:45:06 +02:00
Henrik Friedrichsen
0bbba3c57d remove clippy from CI for now, as it's too strict 2019-04-15 22:07:54 +02:00
Henrik Friedrichsen
8738472e87 test login credentials before entering main program
closes #58

this is a bit messy, as librespot panics, when authentication fails. thus, we
test the credentials in a separate thread to handle the panic.

see also: https://github.com/librespot-org/librespot/issues/108
2019-04-15 21:59:19 +02:00
Henrik Friedrichsen
ea4ea5a853 implement pagination for search results
closes #5

Ideally we should implement some indication in the UI that more search results
can be retrieved by scrolling down further.
2019-04-10 14:30:29 +02:00
Henrik Friedrichsen
f9f4c52139 make use of compiler type derivation 2019-04-10 14:22:35 +02:00
Henrik Friedrichsen
a6f96d86ba refactor search (lots of duplicate code) 2019-04-10 14:04:09 +02:00
Oscar Linderholm
63f2342477 Set focus to search results tab 2019-04-10 14:04:09 +02:00
Oscar Linderholm
9ea78a9e6e Add support for Spotify URI searches 2019-04-10 14:04:09 +02:00
Oscar Linderholm
5981b08458 Refactor the simplified playlist function 2019-04-10 14:04:09 +02:00
Oscar Linderholm
0f0b2f3e2a Add methods for fetching Spotify URI items 2019-04-10 14:04:09 +02:00
Oscar Linderholm
de1062471f Add Spotify URI resource helpers 2019-04-10 14:04:09 +02:00
Henrik Friedrichsen
f6d674d9be unsigned subtraction overflow fix 2019-04-09 22:49:10 +02:00
Henrik Friedrichsen
69e6c77753 implement pagination interface for listview 2019-04-09 22:48:42 +02:00
Henrik Friedrichsen
95370b23c0 simplified overflow-safe subtraction 2019-04-09 22:00:54 +02:00
Henrik Friedrichsen
534ccc904f respect currently playing track when shifting queue entries 2019-04-07 14:14:56 +02:00
Henrik Friedrichsen
b72f560e5a implement moving of tracks in queue 2019-04-05 00:27:20 +02:00
Henrik Friedrichsen
14c909862f implement parsing of modifier+key combinations 2019-04-05 00:19:39 +02:00
Henrik Friedrichsen
990ba1fa29 fix: drop reference to main after usage to avoid double mut borrow
fixes a crash that occured when manually entering commands
2019-04-04 23:35:29 +02:00
Henrik Friedrichsen
326d89bdb3 Merge branch 'osm-develop' into develop 2019-04-04 21:39:33 +02:00
Henrik Friedrichsen
f755ea11c6 bump version of webbrowser dependency for bsd support 2019-04-04 21:38:35 +02:00
Henrik Friedrichsen
983285d015 bump version of webbrowser dependency for bsd support 2019-04-04 21:37:38 +02:00
Oscar Linderholm
65eb6c905a Only allow owner read/write to credentials.toml 2019-04-04 21:15:55 +02:00
Henrik Friedrichsen
c6668aa160 allow failures on beta 2019-04-03 14:36:33 +02:00
Henrik Friedrichsen
0da6cd08c7 fix: prevent usize overflow when moving down in listview 2019-04-03 14:16:36 +02:00
Henrik Friedrichsen
1c26c7bcee cargo fmt/clippy all the things + make them mandatory in CI 2019-04-03 14:13:40 +02:00
Henrik Friedrichsen
25fbdb8bde force UI refresh after results are downloaded 2019-04-03 14:05:09 +02:00
KoffeinFlummi
6971c8d431 Refresh token in main thread before search 2019-04-02 08:31:17 +02:00
KoffeinFlummi
d223aae9c7 Add album and artist searching 2019-04-02 08:31:17 +02:00
KoffeinFlummi
c42c144ccf Use seperate threads for search 2019-04-02 08:30:42 +02:00
KoffeinFlummi
3c7b3e3618 Add tabview, add playlists to search 2019-04-02 08:30:42 +02:00
KoffeinFlummi
d2dc2f0ecc Tweak progress bar style 2019-04-02 08:30:16 +02:00
KoffeinFlummi
626ee79654 Pass focus cmd through, fix search keybinding 2019-04-02 08:30:15 +02:00
KoffeinFlummi
3f57111b7e Handle keybindings immediately 2019-04-02 08:30:15 +02:00
Henrik Friedrichsen
3d446ab942 enable librespot cache for audio data 2019-03-31 16:28:43 +02:00
Henrik Friedrichsen
fdb1d01d9a fix crash when adding list to randomized empty queue
with an empty queue the index calculation results in a negative value for
unsigned type usize.
2019-03-30 23:23:16 +01:00
Henrik Friedrichsen
90ffd94c61 add missing whitespace to shuffle mode indicator 2019-03-30 23:20:23 +01:00
Henrik Friedrichsen
378afc40a8 login process is now done interactively
manual config editing is not required anymore
2019-03-30 23:10:54 +01:00
Henrik Friedrichsen
c649adebdf minor wording changes, mainly to make the dialog smaller in width 2019-03-30 22:40:42 +01:00