[banshee] Added --set-rating=RATING command line option
- From: Alexander Kojevnikov <alexk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] Added --set-rating=RATING command line option
- Date: Wed, 20 Jan 2010 10:04:52 +0000 (UTC)
commit 1ea0c314f2597a38b47d763e6031c20f99695a42
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Wed Jan 20 20:46:37 2010 +1100
Added --set-rating=RATING command line option
src/Clients/Booter/Booter/Entry.cs | 3 ++-
src/Clients/Halie/Halie/Client.cs | 3 +++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Booter/Booter/Entry.cs b/src/Clients/Booter/Booter/Entry.cs
index 632e3b3..f6d1677 100644
--- a/src/Clients/Booter/Booter/Entry.cs
+++ b/src/Clients/Booter/Booter/Entry.cs
@@ -166,7 +166,8 @@ namespace Booter
new LayoutOption ("stop-when-finished", Catalog.GetString (
"Enable or disable playback stopping after the currently playing track (value should be either 'true' or 'false')")),
new LayoutOption ("set-volume=LEVEL", Catalog.GetString ("Set the playback volume (0-100)")),
- new LayoutOption ("set-position=POS", Catalog.GetString ("Seek to a specific point (seconds, float)"))
+ new LayoutOption ("set-position=POS", Catalog.GetString ("Seek to a specific point (seconds, float)")),
+ new LayoutOption ("set-rating=RATING", Catalog.GetString ("Set the currently played track's rating (0 to 5)"))
),
new LayoutGroup ("query-player", Catalog.GetString ("Player Engine Query Options"),
diff --git a/src/Clients/Halie/Halie/Client.cs b/src/Clients/Halie/Halie/Client.cs
index 7a08626..4f628c6 100644
--- a/src/Clients/Halie/Halie/Client.cs
+++ b/src/Clients/Halie/Halie/Client.cs
@@ -145,6 +145,9 @@ namespace Halie
case "set-volume":
player.Volume = UInt16.Parse (arg.Value);
break;
+ case "set-rating":
+ player.Rating = Byte.Parse (arg.Value);
+ break;
default:
if (arg.Key.StartsWith ("query-")) {
if (track == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]