Skip to content

Commit ea8ece3

Browse files
Merge pull request librespot-org#597 from librespot-org/config-update
Update CI MSRV, remove Travis. Minor tweaks to device discovery.
2 parents b72485c + 0246c04 commit ea8ece3

File tree

5 files changed

+36
-80
lines changed

5 files changed

+36
-80
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
matrix:
4242
os: [ubuntu-latest]
4343
toolchain:
44-
- 1.40.0 # MSRV (Minimum supported rust version)
44+
- 1.42.0 # MSRV (Minimum supported rust version)
4545
- stable
4646
- beta
4747
experimental: [false]

.travis.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
[![Build Status](https://img.shields.io/github/workflow/status/librespot-org/librespot/test/dev)](https://github.com/librespot-org/librespot/actions)
2-
[![Build Status](https://travis-ci.org/librespot-org/librespot.svg?branch=dev)](https://travis-ci.org/librespot-org/librespot)
1+
[![Build Status](https://github.com/librespot-org/librespot/workflows/test/badge.svg)](https://github.com/librespot-org/librespot/actions)
32
[![Gitter chat](https://badges.gitter.im/librespot-org/librespot.png)](https://gitter.im/librespot-org/spotify-connect-resources)
43
[![Crates.io](https://img.shields.io/crates/v/librespot.svg)](https://crates.io/crates/librespot)
54

@@ -21,7 +20,7 @@ As the origin by [plietar](https://github.com/plietar/) is no longer actively ma
2120
# Documentation
2221
Documentation is currently a work in progress, contributions are welcome!
2322

24-
There is some brief documentation on how the protocol works in the [docs](https://github.com/librespot-org/librespot/tree/master/docs) folder,
23+
There is some brief documentation on how the protocol works in the [docs](https://github.com/librespot-org/librespot/tree/master/docs) folder,
2524

2625
[COMPILING.md](https://github.com/librespot-org/librespot/blob/master/COMPILING.md) contains detailed instructions on setting up a development environment, and compiling librespot. More general usage and compilation information is available on the [wiki](https://github.com/librespot-org/librespot/wiki).
2726
[CONTRIBUTING.md](https://github.com/librespot-org/librespot/blob/master/CONTRIBUTING.md) also contains our contributing guidelines.
@@ -32,7 +31,7 @@ If you wish to learn more about how librespot works overall, the best way is to
3231
If you run into a bug when using librespot, please search the existing issues before opening a new one. Chances are, we've encountered it before, and have provided a resolution. If not, please open a new one, and where possible, include the backtrace librespot generates on crashing, along with anything we can use to reproduce the issue, eg. the Spotify URI of the song that caused the crash.
3332

3433
# Building
35-
A quick walk through of the build process is outlined here, while a detailed compilation guide can be found [here](https://github.com/librespot-org/librespot/blob/master/COMPILING.md).
34+
A quick walk through of the build process is outlined here, while a detailed compilation guide can be found [here](https://github.com/librespot-org/librespot/blob/master/COMPILING.md).
3635

3736
## Additional Dependencies
3837
We recently switched to using [Rodio](https://github.com/tomaka/rodio) for audio playback by default, hence for macOS and Windows, you should just be able to clone and build librespot (with the command below).
@@ -111,4 +110,3 @@ functionality.
111110
- [librespot-java](https://github.com/devgianlu/librespot-java) - A Java port of librespot.
112111
- [ncspot](https://github.com/hrkfdn/ncspot) - Cross-platform ncurses Spotify client.
113112
- [ansible-role-librespot](https://github.com/xMordax/ansible-role-librespot/tree/master) - Ansible role that will build, install and configure Librespot.
114-

connect/src/discovery.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Discovery {
7575
"status": 101,
7676
"statusString": "ERROR-OK",
7777
"spotifyError": 0,
78-
"version": "2.1.0",
78+
"version": "2.7.1",
7979
"deviceID": (self.0.device_id),
8080
"remoteName": (self.0.config.name),
8181
"activeUser": "",
@@ -85,6 +85,9 @@ impl Discovery {
8585
"accountReq": "PREMIUM",
8686
"brandDisplayName": "librespot",
8787
"modelDisplayName": "librespot",
88+
"resolverVersion": "0",
89+
"groupStatus": "NONE",
90+
"voiceSupport": "NO",
8891
});
8992

9093
let body = result.to_string();

core/src/config.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ pub enum DeviceType {
3636
AVR = 6,
3737
STB = 7,
3838
AudioDongle = 8,
39+
GameConsole = 9,
40+
CastAudio = 10,
41+
CastVideo = 11,
42+
Automobile = 12,
43+
Smartwatch = 13,
44+
Chromebook = 14,
45+
UnknownSpotify = 100,
46+
CarThing = 101,
47+
Observer = 102,
48+
HomeThing = 103,
3949
}
4050

4151
impl FromStr for DeviceType {
@@ -51,6 +61,14 @@ impl FromStr for DeviceType {
5161
"avr" => Ok(AVR),
5262
"stb" => Ok(STB),
5363
"audiodongle" => Ok(AudioDongle),
64+
"gameconsole" => Ok(GameConsole),
65+
"castaudio" => Ok(CastAudio),
66+
"castvideo" => Ok(CastVideo),
67+
"automobile" => Ok(Automobile),
68+
"smartwatch" => Ok(Smartwatch),
69+
"chromebook" => Ok(Chromebook),
70+
"carthing" => Ok(CarThing),
71+
"homething" => Ok(HomeThing),
5472
_ => Err(()),
5573
}
5674
}
@@ -69,6 +87,16 @@ impl fmt::Display for DeviceType {
6987
AVR => f.write_str("AVR"),
7088
STB => f.write_str("STB"),
7189
AudioDongle => f.write_str("AudioDongle"),
90+
GameConsole => f.write_str("GameConsole"),
91+
CastAudio => f.write_str("CastAudio"),
92+
CastVideo => f.write_str("CastVideo"),
93+
Automobile => f.write_str("Automobile"),
94+
Smartwatch => f.write_str("Smartwatch"),
95+
Chromebook => f.write_str("Chromebook"),
96+
UnknownSpotify => f.write_str("UnknownSpotify"),
97+
CarThing => f.write_str("CarThing"),
98+
Observer => f.write_str("Observer"),
99+
HomeThing => f.write_str("HomeThing"),
72100
}
73101
}
74102
}

0 commit comments

Comments
 (0)