Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 4 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 59 additions and 10 deletions.
  1. +13 −1 README.md
  2. +43 −2 rdio-enhancer.js
  3. +3 −7 release.sh
View
14 README.md
@@ -5,9 +5,14 @@ rdio enhancer
Current Features
================
-* Album Menu Additons
+* Album Menu Additions
* Add Album to Playlist
* Adds all tracks of the Album to a new or existing Playlist
+ * Play Next
+ * Same as Play Later but puts the album in the next spot in the queue instead of the last.
+* Track Menu Additions
+ * Play Next
+ * Same as Play Later but puts the track in the next spot in the queue instead of the last.
* Playlist Additions
* Add Playlist to Collection
* Adds all tracks of the Playlist to your collection
@@ -17,6 +22,8 @@ Current Features
* Sort by Artist, Album, or Track Name
* Remove duplicates from Playlists
* Move song to top of the playlist
+ * Play Next
+ * Same as Play Later but puts the playlist in the next spot in the queue instead of the last.
* Save current queue or station as a playlist
* Still experimental - Works most of the time. Reload the page if having issues. Please report any issues you find and I will try and fix them.
@@ -30,6 +37,11 @@ To Do
Changelog
================
+v 1.5
+
+* New features
+ * Add Play Next open to everything
+
v 1.4
* New features
View
45 rdio-enhancer.js
@@ -26,7 +26,7 @@ function injectedJs() {
var data = jQuery.fn.currentData,
datatype = data.type;
// if this is an Album
- if(datatype === 'a') {
+ if(datatype === 'a' || datatype === 'al') {
item.menu_items.splice(3, 0,
{
title: "Add Album to Playlist",
@@ -40,9 +40,30 @@ function injectedJs() {
return false;
}
});
+ item.menu_items.splice(6, 0,
+ {
+ title: function() {
+ return (isInQueue(data) ? '<span class="coming_up">In Queue</span>Play Next' : "Play Next");
+ },
+ visible: function() {
+ return true;
+ },
+ action: function() {
+ var player = getPlayer();
+ var track = {
+ type: data.type,
+ key: data.key
+ };
+ player._queueSource(track);
+ play_next_queue.push(track);
+ R.Notifications.show(data.name + ' will play next');
+ return false;
+ }
+ });
}
// if this is a Playlist
else if(datatype === 'p') {
+ var play_next_insert = 5;
if(data.tracks) {
item.menu_items.splice(0, 0,
{
@@ -163,7 +184,28 @@ function injectedJs() {
{
type: "separator"
});
+ play_next_insert = 14;
}
+ item.menu_items.splice(play_next_insert, 0,
+ {
+ title: function() {
+ return (isInQueue(data) ? '<span class="coming_up">In Queue</span>Play Next' : "Play Next");
+ },
+ visible: function() {
+ return true;
+ },
+ action: function() {
+ var player = getPlayer();
+ var track = {
+ type: data.type,
+ key: data.key
+ };
+ player._queueSource(track);
+ play_next_queue.push(track);
+ R.Notifications.show(data.name + ' will play next');
+ return false;
+ }
+ });
}
// if this is a Track
else if(datatype === 't') {
@@ -406,7 +448,6 @@ function injectedJs() {
var queueChanged_orig = queueChanged;
queueChanged = function(queue) {
if(play_next_queue.length > 0) {
- console.log("Have Play next");
while(play_next_queue.length) {
var track = play_next_queue.pop();
var i = queue.length;
View
10 release.sh
@@ -3,11 +3,9 @@
set -e
version=$1
-force=$2
package=$(basename $(pwd))
-output_dir=/tmp/$package-$version
-PRIVATE_KEY=~/chrome-keys/$package.pem
+output_dir=~/tmp/$package-$version
if [[ ! $version ]]; then
echo "Needs a version number as argument"
exit 1
@@ -25,7 +23,7 @@ if [[ $(git diff | grep manifest.json) ]]; then
fi
echo "Tagging locally"
-git tag $force $version
+git tag $version
echo "Pushing tag"
git push --tags origin master
@@ -41,9 +39,7 @@ cp manifest.json $output_dir
cp rdio-enhancer.js $output_dir
cp rdio-enhancer.css $output_dir
-echo "Packing for github upload"
-chromium --pack-extension=$output_dir --pack-extension-key=$PRIVATE_KEY
-echo "Creating zip file for webstore upload"
+echo "Creating zip file for Chrome webstore upload"
rm -f $output_dir.zip
zip -r $output_dir.zip $output_dir

No commit comments for this range

Something went wrong with that request. Please try again.