aMSN Forums
May 25, 2013, 04:25:51 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Music banshee-1  (Read 7942 times)
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« on: June 18, 2008, 04:16:10 pm »

With the release of Banshee 1.0, the executable now seems to be called banshee-1 instead of just banshee. Could be worth updating infobanshee, but I don't really know how to check whether it's 1.0 or earlier.
Just sayin' Wink
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #1 on: June 18, 2008, 05:55:56 pm »

Since i don't use banshee, you have to update infobanshee.
Logged
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #2 on: June 18, 2008, 08:12:49 pm »

Ok, I did my best and it seems to work here with both 1.0 and pre-1.0. It's pretty much completely rewritten, so I'll just post the whole thing as it is:
Code:

#!/bin/sh
# needs banshee 0.10.6 or newer
#
# By Ruben "RubenV" Vermeersch
# Rewritten by Zoltán Nagy

BANSHEE=`ps aux | grep banshee | grep -v grep | grep -v info`

if [ -z "$BANSHEE" ]
then
    echo "Banshee is not running"
else
    for part in $BANSHEE
    do
        if [ "$part" = "banshee" ]; then
            version=0
        elif [ "$part" = "banshee-1" ]; then
            version=1
        fi
    done

    if [ $version = 0 ]
    then
        banshee --query-status |sed  s/^//|cut -c9-
        banshee --query-title |sed  s/^//|cut -c8-
        banshee --query-artist |sed  s/^//|cut -c9-
        banshee --query-uri|sed  s/^//|cut -c6-
        banshee --query-cover-uri |sed  s/^//|cut -c11-
    elif [ $version = 1 ]
    then
        banshee-1 --query-current-state |sed s/^//|cut -c16-
        banshee-1 --query-title |sed  s/^//|cut -c8-
        banshee-1 --query-artist |sed  s/^//|cut -c9-
        banshee-1 --query-uri|sed  s/^//|cut -c6-
    fi
fi
exit 0
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #3 on: June 18, 2008, 09:03:31 pm »

Can you try this version of the script ?

Code:

#!/bin/sh
# needs banshee 0.10.6 or newer
#
# By Ruben "RubenV" Vermeersch
# Rewritten by Zoltán Nagy

BANSHEE=`ps -e | grep [b]anshee | grep -v info| awk '{print $4}'`

if [ -z "$BANSHEE" ]
then
    echo "Banshee is not running"
else
    if [ "$BANSHEE" = "banshee" ]; then
        version=0
    elif [ "$BANSHEE" = "banshee-1" ]; then
        version=1
    fi

    if [ $version = 0 ]
    then
        banshee --query-status |sed  s/^//|cut -c9-
        banshee --query-title |sed  s/^//|cut -c8-
        banshee --query-artist |sed  s/^//|cut -c9-
        banshee --query-uri|sed  s/^//|cut -c6-
        banshee --query-cover-uri |sed  s/^//|cut -c11-
    elif [ $version = 1 ]
    then
        banshee-1 --query-current-state |sed s/^//|cut -c16-
        banshee-1 --query-title |sed  s/^//|cut -c8-
        banshee-1 --query-artist |sed  s/^//|cut -c9-
        banshee-1 --query-uri|sed  s/^//|cut -c6-
    else
        echo 0
    fi
fi
exit 0
Logged
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #4 on: June 18, 2008, 09:06:25 pm »

Tried it, works fine.
Logged
niandubay
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #5 on: July 31, 2008, 01:10:35 pm »

Helo, this file don`t work for me, i have banshee-1 (1.2.0) y amsn 0.97 (25/12/2007), under Ubuntu Hardy, when modify the file infobanshee and paste this script, amsn show me a error in tk/tcl, sorry for my english, i from uruguay and no have idea how make to work this.Thanks for all.
Logged
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #6 on: July 31, 2008, 01:53:38 pm »

I tried using the script with the same versions and it works OK. What version of TCL/TK do you use?
Also, could you paste the error message? (click 'Details' on the error dialog)
Logged
niandubay
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #7 on: August 01, 2008, 03:49:35 am »

When i turn on the plugin (modificated) in amsn, jump the error message ...

list element in quotes followed by ":" instead of space
    while executing
"lindex $info 0"
    (procedure "::music::newname" line 12)
    invoked from within
"::music::newname 0 0"
    (procedure "::music::load_newname" line 21)
    invoked from within
"::music::load_newname 0 0"
    ("after" script)

i have tk8.4(8.4.16-2ubuntu1) and tk8.5(8.5.0-3).... but i think that amsn use tk8.5 becouse in the system monitor appear wish8.5... and when i kill it amsn close too...

(sorry for my english....again...)
Logged
Abesto
Newbie

Offline Offline

Posts: 12


View Profile WWW
« Reply #8 on: August 01, 2008, 07:42:50 am »

I tried to reproduce the error but failed. Please post the result of the following, while Banshee is running and after the error has occurred:
Code:
banshee-1 --query-title

I can imagine only that something in the song name confuses the script, but I know tcl only on a common sense level. Mby someone more knowledgeable could help out here?

PS. Don't worry about your English, as long as your point is clear it's fine Smiley
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #9 on: August 01, 2008, 08:35:17 am »

@niandubay: try running the infobanshee script from a terminal to see if it works.
Logged
niandubay
Newbie

Offline Offline

Posts: 3


View Profile
« Reply #10 on: August 03, 2008, 05:43:50 pm »

...
 
juanch0@juanch0-laptop:~$ banshee-1 --query-title
title: Angel
juanch0@juanch0-laptop:~$

...i think that is ok...

and if run the script...

juanch0@juanch0-laptop:~/.amsn/plugins/music$ sh ./infobanshee
playing
Angel
Aerosmith
file:///home/juanch0/M%C3%BAsica/MP3/Aerosmith%20-%20Angel.mp3
juanch0@juanch0-laptop:~/.amsn/plugins/music$

....its ok?...

i don`t understand... if everithing is ok, why don`t work?...

if you need other information...
thanks, for all.

can you create a script only for banshee-1? (separeted vesions)
Logged
MarcoP
Newbie

Offline Offline

Posts: 2


View Profile
« Reply #11 on: August 04, 2008, 11:13:45 am »

Code:
[nano@fedora ~]$ .amsn/plugins/music/infobanshee
playing
Corazon Espinado
Santana
file:///media/disk-2/Media/Song/Compilations/Supernatural/09%20Corazon%20Espinado.mp3


Reproduce by unloading and reloading the plugin:
Code:
list element in quotes followed by ":" instead of space
    while executing
"lindex $info 0"
    (procedure "::music::newname" line 12)
    invoked from within
"::music::newname 0 0"
    (procedure "::music::load_newname" line 21)
    invoked from within
"::music::load_newname 0 0"
    ("after" script)


Anything to do with the file name? ... nope!
Code:
[nano@fedora ~]$ cp /media/disk-2/Media/Song/Compilations/Supernatural/09%20Corazon%20Espinado.mp3 09_Corazon_Espinado.mp3

Code:
[nano@fedora ~]$ .amsn/plugins/music/infobanshee
playing
Corazon Espinado
Santana
file:///home/nano/09_Corazon_Espinado.mp3


Again reproduce by unloading and reloading the plugin:
Code:
list element in quotes followed by ":" instead of space
    while executing
"lindex $info 0"
    (procedure "::music::newname" line 12)
    invoked from within
"::music::newname 0 0"
    (procedure "::music::load_newname" line 21)
    invoked from within
"::music::load_newname 0 0"
    ("after" script)


edit
Code:
[nano@fedora ~]$ rpm -qa | egrep "(t(k|cl)-8\.5|amsn)"
amsn-0.97-4.fc9.i386
amsn-plugins-0.97-4.fc9.i386
tcl-8.5.2-2.fc9.i386
tk-8.5.2-1.fc9.i386
Logged
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #12 on: August 04, 2008, 05:44:41 pm »

Please, be sure to use the version from svn. ( http://www.amsn-project.net/wiki/SVN_Plugins )
Logged
MarcoP
Newbie

Offline Offline

Posts: 2


View Profile
« Reply #13 on: August 04, 2008, 10:56:51 pm »

Quote from: "billiob"
Please, be sure to use the version from svn. ( http://www.amsn-project.net/wiki/SVN_Plugins )

It works Smiley thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!