Enqueue in Audacious

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
6.2
Description:

Lately I switched from XMMS to Audacious. I already had a script for XMMS to Enqueue Audio-Files in XMMS out of Nautilus. So I adapted this one to Audacious.

Just unpack the file into ~/.gnome2/nautilus-scripts

Have Fun with it!!! ;-)

Greetz
Last changelog:

10 years ago

fix: new version after some problems with enqueuing more than one file at once. Thanx to "qbit"

camshron

8 years ago

#! /bin/sh
# A small script to enqueue media files in audacious recursively
# Written by Thura
# Modified by Phillip Cameron

is_player_present=$(ps -e | grep audacious)

walk()
{
for file in "$1"/*
do
if [ -d "$file" ];then
walk "$file"
else
if [ -n "$is_player_present" ];then
audacious --enqueue "$file"
else
audacious "$file"
fi
fi
done
}

if [ -d "$arg" ];then
walk "$arg"
else
if [ -n "$is_player_present" ];then
audacious --enqueue "$@"
else
audacious "$@"
fi
fi

Report

joshtt

10 years ago

Nice job!

But is there a way to enqueue files in an already open window of audacious?
When I enqueue, it starts a second instance of audacious.

Thanks!

Josh

Report

joshtt

10 years ago

Ok, sorry .... this only happens when run as root.

J.

Report

qbit

11 years ago

I tried to enqueue more than one file and it failed, so I had to change the script for this one:

FILES="${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}"

echo "${FILES}" | while read FILE; do
if [ -n "${FILE}" ]; then
audacious --enqueue "${FILE}"
fi;
done

Report

C

SteffenS81

10 years ago

OK, checked it again and you were right. There actually was a problem with the script.
When more than one file was selected then the second would be shown in the Playlist but you can't start it. With you're alterations the script works great. So thanks for that.
I'll upload the new version.

Greetz

Report

C

SteffenS81

10 years ago

Hmmm, I do not have any problems with enqueuing more than one track at the same time. Just checked this and it seems to run fine with the original script.

Report

skvitek

10 years ago

Hm... When I tried - I can enqueue more than one file - I am probably doing something wrong? =)

To all: you can add "audacious -p" without quotes to end of this script to enqueue
and listen your files.

Report

10 years ago

fix: new version after some problems with enqueuing more than one file at once. Thanx to "qbit"

12345678910
1
product-maker I4C Feb 19 2013 3 bad
product-maker Count:19 Rating: 6.37
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.0
updated Jul 01 2008
added May 07 2008
downloads today
0
page views today 5
System Tags addon