Skip to content

Commit 051ca43

Browse files
author
Chris Bellew
committed
Added support for playing entire albums.
1 parent ddd79c4 commit 051ca43

File tree

8 files changed

+280
-144
lines changed

8 files changed

+280
-144
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,8 @@ Below are examples of what to say to Google Now to trigger playback. Sentence fr
3636

3737

3838
### For Music:
39-
"**Listen to** *Black Sands* **by** *Bonobo*" - Listen to <song> by <artist>
39+
"**Listen to** *Black Sands* **by** *Bonobo*" - Listen to <song> by <artist>
40+
41+
"**Listen to the album** *Drink The Sea* **by** *The Glitch Mob*" - Listen to <album> by <artist>
42+
43+
"**Listen to the album** *Music Has The Right To Children*" - Listen to <album> (artist is optional, specify if more than one match found)

res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<string name="help_client">Select the default client to stream media to. You can easily stream to a different client by ending your search query with \&quot;on &lt;client name&gt;\&quot;, where &lt;client name&gt; is the name of the PHT Client.</string>
2525
<string name="help_feedback">Select which type of feedback I should give you.</string>
2626
<string name="help_button_desc">Help Button</string>
27-
<string name="help_usage">Here are some examples to trigger playback:\n\nWatch V For Vendetta\nWatch Season 1 Episode 1 of Homeland\nWatch Breaking Bad Season 5 Episode 8\nWatch episode Once More With Feeling of Buffy The Vampire Slayer\nWatch the next episode of The Walking Dead\nWatch the latest episode of The Daily Show with Jon Stewart\n\nIf you don\'t have \&quot;Resume if in progress\&quot; checked, you can selectively resume by saying \&quot;Resume watching\&quot; instead of \&quot;Watch\&quot;\n\nYou can also specify a client by adding \&quot;on &lt;client name&gt;\&quot; to your spoken query.</string>
27+
<string name="help_usage">Here are some examples to trigger playback:\n\nWatch V For Vendetta\nWatch Season 1 Episode 1 of Homeland\nWatch Breaking Bad Season 5 Episode 8\nWatch episode Once More With Feeling of Buffy The Vampire Slayer\nWatch the next episode of The Walking Dead\nWatch the latest episode of The Daily Show with Jon Stewart\n\n\n\nFor Music:\nListen to the album Drink The Sea by The Glitch Mob\nListen to the album Music Has The Right To Children (Artist is optional. Specify if more than one match is found)\n\nIf you don\'t have \&quot;Resume if in progress\&quot; checked, you can selectively resume by saying \&quot;Resume watching\&quot; instead of \&quot;Watch\&quot;\n\nYou can also specify a client by adding \&quot;on &lt;client name&gt;\&quot; to your spoken query.</string>
2828
<string name="help_usage_button">Usage Examples</string>
2929

3030
</resources>

src/com/atomjack/vcfpht/GoogleSearchReceiver.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
public class GoogleSearchReceiver extends BroadcastReceiver {
88

9-
private static final String TAG = MainActivity.TAG;
10-
119
@Override
1210
public void onReceive(Context context, Intent intent) {
1311
String queryText = intent.getStringExtra(GoogleSearchApi.KEY_QUERY_TEXT).toLowerCase();

src/com/atomjack/vcfpht/MainActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040

4141
public class MainActivity extends Activity {
4242
public final static String PREFS = "VoiceControlForPlexHomeTheaterPrefs";
43-
public final static String TAG = "VoiceControlForPlexHomeTheater";
44-
43+
4544
public final static int FEEDBACK_VOICE = 0;
4645
public final static int FEEDBACK_TOAST = 1;
4746

0 commit comments

Comments
 (0)