Evgeny S
96c199e95a
Update metadata.rs
...
Turns out unreleased tracks can have no forbidden and allowed lists at all, take care of that.
2017-06-03 22:30:04 +03:00
Evgeny S
8bd9174370
Update metadata.rs
...
Properly check forbidden and allowed lists, skip tracks where allowed list is set but is empty.
2017-06-03 19:55:30 +03:00
Evgeny S
4a17a15a82
Fix #173 (a track cannot be played with librespot)
...
Some tracks might have several `allowed` fields, librespot assumes that all fields must match, otherwise track cannot be played.
This change collects all `allowed` and `forbidden` lists, then does the final check on whole lists at once.
2017-06-01 13:04:22 +03:00
Paul Lietar
bbc438d9b2
Clippy run
2017-01-29 17:20:12 +00:00
Paul Lietar
05118b40f8
Move MetadataManager to use tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
bcbd7afb1a
Change mercury to use tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
ed14c3469b
track: Use a linear map to store files by format.
2016-05-04 10:03:46 +01:00
Paul Lietar
dde613e0a0
player: skip unavailable tracks rather than crash
...
Fixes #74
2016-05-04 09:11:27 +01:00
Paul Lietar
d27c4ca752
Support building with rust stable, using syntex.
2016-03-07 18:22:41 +00:00
Paul Lietar
93640465dc
Import librespot_protocol as protocol.
2016-01-27 10:40:00 +00:00
Paul Lietar
7a1db5f5a9
Encapsulate the session data and configuration.
2016-01-26 22:34:57 +00:00
Paul Lietar
f822031ce3
Expose some more metadata.
2016-01-26 22:24:36 +00:00
Paul Lietar
ac0d597e75
Ignore files which don’t have an id.
...
Fixes #42
2016-01-20 10:37:57 +00:00
Paul Lietar
fd6b805bfd
Fix some clippy warnings.
2016-01-02 16:48:44 +01:00
Paul Lietar
90eeed3f80
rustfmt
2016-01-02 16:20:35 +01:00
Paul Lietar
f8956166ea
Add option to specify bitrate.
2016-01-02 03:30:24 +01:00
Paul Lietar
654a403459
Improve handling of missing audio keys by failing the future rather than crashing.
2015-12-29 23:12:02 +01:00
Paul Lietar
8c2aa28d43
Use the correct country when checking for track availability.
2015-12-29 13:13:26 +01:00
Paul Lietar
4f518fc445
Get track availability and alternatives
2015-12-28 17:47:32 +01:00
Paul Lietar
5db141066a
Use eventual’s futures in metadata instead of rolling our own.
...
For now the object cache has been removed. It may be added back later.
2015-12-28 16:53:54 +01:00
Paul Lietar
09e180b0e2
Remove deprecation warnings.
2015-12-28 01:29:53 +01:00
Paul Lietar
267ccbe65e
Fix build on latest rust.
2015-09-01 13:20:37 +02:00
Paul Lietar
e452abce43
Cache audio files to disk.
2015-07-07 22:40:31 +01:00
Paul Lietar
2a2f227bef
Refactor the whole architecture.
...
Use less threads, makes it much simpler to reason about.
2015-07-02 19:24:25 +02:00
Paul Lietar
45491925de
Answer to basic Spirc requests.
2015-07-02 00:40:38 +02:00
Paul Lietar
addc1fce22
Update protocol files.
2015-07-01 20:18:00 +02:00
Paul Lietar
7ffe996652
Lots of stuff
2015-06-23 15:38:29 +01:00