Skip to content

Commit 64a28d8

Browse files
committed
feat: implement Next/Previous track and tracklist loading
bump version code
1 parent 6ace666 commit 64a28d8

File tree

19 files changed

+267
-34
lines changed

19 files changed

+267
-34
lines changed

Cargo.lock

Lines changed: 23 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "music-player"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
repository = "https://github.com/tsirysndr/music-player"
66
license = "MIT"
@@ -24,15 +24,15 @@ version = "0.1.0"
2424

2525
[dependencies.music-player-playback]
2626
path = "playback"
27-
version = "0.1.0"
27+
version = "0.1.1"
2828

2929
[dependencies.music-player-scanner]
3030
path = "scanner"
31-
version = "0.1.0"
31+
version = "0.1.1"
3232

3333
[dependencies.music-player-entity]
3434
path = "entity"
35-
version = "0.1.0"
35+
version = "0.1.1"
3636

3737
[dependencies.music-player-migration]
3838
path = "migration"
@@ -50,6 +50,10 @@ version = "0.1.0"
5050
path = "addons"
5151
version = "0.1.0"
5252

53+
[dependencies.music-player-tracklist]
54+
path = "tracklist"
55+
version = "0.1.0"
56+
5357
[dependencies.sea-orm-migration]
5458
version = "^0.9.0"
5559
features = [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ SUBCOMMANDS:
6969
- [x] [gRPC API](https://buf.build/tsiry/musicserverapis/docs/main:music.v1alpha1) for controlling the player
7070
- [x] Scan music library
7171
- [x] Play/Pause/Stop music
72-
- [ ] Next/Previous track
72+
- [x] Next/Previous track
7373
- [ ] Create/Delete playlists
7474
- [ ] Terminal UI (using [tui-rs](https://github.com/fdehau/tui-rs))
7575
- [ ] Web UI

entity/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "music-player-entity"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
repository = "https://github.com/tsirysndr/music-player"
66
license = "MIT"

entity/src/addon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use sea_orm::entity::prelude::*;
22

3-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
3+
#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
44
#[sea_orm(table_name = "addon")]
55
pub struct Model {
66
#[sea_orm(primary_key)]

entity/src/album.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use sea_orm::entity::prelude::*;
22

3-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
3+
#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
44
#[sea_orm(table_name = "album")]
55
pub struct Model {
66
#[sea_orm(primary_key)]

entity/src/artist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use sea_orm::entity::prelude::*;
22

3-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
3+
#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
44
#[sea_orm(table_name = "artist")]
55
pub struct Model {
66
#[sea_orm(primary_key)]

entity/src/playlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use sea_orm::entity::prelude::*;
22

3-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
3+
#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
44
#[sea_orm(table_name = "playlist")]
55
pub struct Model {
66
#[sea_orm(primary_key)]

entity/src/playlist_tracks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use sea_orm::entity::prelude::*;
22

3-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
3+
#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
44
#[sea_orm(table_name = "playlist_track")]
55
pub struct Model {
66
#[sea_orm(primary_key)]

entity/src/track.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use sea_orm::entity::prelude::*;
22

3-
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
3+
#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel)]
44
#[sea_orm(table_name = "track")]
55
pub struct Model {
66
#[sea_orm(primary_key)]

0 commit comments

Comments
 (0)