PDA

View Full Version : [SOLVED] Syncing Banshee with Google Music



db579
June 28th, 2012, 05:19 PM
Is there any way to sync Google music manager with banshee so that it only uploads specific playlists for example?

The official support page says this

http://support.google.com/googleplay/bin/answer.py?hl=en&answer=1311216

But the option doesn't appear to exist on the Linux client. Is there any way around this?

slosd
August 2nd, 2012, 09:36 AM
There is an extension "FolderSync" in the banshee-community-extensions package (it's in 12.04, if you don't have that you can run
sudo add-apt-repository ppa:banshee-team/ppa to add the banshee repository unless you already have it).

I never tried it but it says it "copies and synchronizes music files from playlists into user specified folders".
So you need to configure the extension to copy songs from, say, the "Google Music" playlist to a folder "X" and add this folder "X" to the folders the google music manager watches.
Unfortunately this will probably duplicate the files you add to this playlist on your system. It would be nice if the extension would allow the user to configure it to create symlinks instead of "real" files.

Hope this will work for you.

db579
August 2nd, 2012, 12:09 PM
Hi, thanks for the suggestion. Unfortunately my library is really quite large so duplicates wouldn't really be an ideal solution for me. If that could be done with symlinks that could work well though...

slosd
August 2nd, 2012, 01:04 PM
Hi, thanks for the suggestion. Unfortunately my library is really quite large so duplicates wouldn't really be an ideal solution for me. If that could be done with symlinks that could work well though...

I just added this quick and dirty implementation. I'm not the project owner so it's in my own copy https://gitorious.org/~slosd/banshee-community-extensions/slosds-banshee-community-extensions
If you know how to build this you can use it immediately. Works well on my system.

db579
August 2nd, 2012, 01:22 PM
Thanks a lot for your effort! I have to admit I'm not entirely sure what you've sent me though.

Do I just want to click source tree and download master as tar.gz and then extract and install from within Banshee or is there more to it?

slosd
August 2nd, 2012, 01:44 PM
This is from http://banshee.fm/download/development/

Install build tools and dependencies:

sudo apt-get install git-core autoconf automake libtool intltool gcc make libgconf2.0-cil-dev libgconf2-dev
sudo apt-get build-dep banshee

Get my changes (this will create a new folder in your current directory):

git clone git://gitorious.org/~slosd/banshee-community-extensions/slosds-banshee-community-extensions.git slosds-banshee-community-extensions
cd slosds-banshee-community-extensions

Make sure everything we need is executable:

chmod +x configure autogen.sh

Then build the extension (this creates the extensions in ./bin):

./autogen.sh
make

I don't know a way to have an extension somewhere in your home directory override an installed extension. This is how to replace it with backup ;)

sudo mv /usr/lib/banshee/Extensions/Banshee.FolderSync.dll /usr/lib/banshee/Extensions/Banshee.FolderSync.dll.bak
sudo cp bin/Banshee.FolderSync.dll /usr/lib/banshee/Extensions

db579
August 2nd, 2012, 01:49 PM
Amazing thank you! Just going to try it now.

db579
August 2nd, 2012, 02:17 PM
Got it installed (I think the third line should be:)



chmod +x configure.ac autogen.sh


But it doesn't sync any playlists. This seems to have been a bug at some point, do you have any idea how it works on your system? Thanks!

https://mail.gnome.org/archives/banshee-list/2012-April/msg00138.html

slosd
August 2nd, 2012, 02:27 PM
Got it installed (I think the third line should be:)



chmod +x configure.ac autogen.sh

I have a script called configure. You definately need this.
EDIT This was probably just neccessary because I had troubles with file permissions. Should be alright like you did it if autogen.sh ends with something like
RadioStationFetcher: yes
RandomByLastfm: yes
StreamRecorder: yes
Telepathy: yes
ZeitgeistDataprovider: no



But it doesn't sync any playlists. This seems to have been a bug at some point, do you have any idea how it works on your system? Thanks!

https://mail.gnome.org/archives/banshee-list/2012-April/msg00138.html


Is it enabled?
Go to Tools > Synchronize to Folder
Select a folder (there seems to be a bug I discovered while testing it: https://bugzilla.gnome.org/show_bug.cgi?id=681060)
Check "Create as symbolic link"
Press "Start sync"


If this doesn't help you try running banshee from the command line:

banshee --debug
and post the last few lines that are printed after you pressed "Start sync".

db579
August 2nd, 2012, 02:34 PM
This is the terminal output:




[1 Debug 14:32:51.800] Start of Sync triggered!
[1 Debug 14:32:51.802] Target folder is set to: file:///home/dan/test/
[14 Debug 14:32:51.804] Sync thread started!
[14 Debug 14:32:51.805] sync DONE, returning



Seems like it should have worked? Just returns instantly though and nothing is appears in the folder.

slosd
August 2nd, 2012, 02:43 PM
You need to select a playlist in the new list on the left (not the usual list that's always there)

The last disadvantage is that you need to trigger the syncing yourself.

db579
August 2nd, 2012, 02:47 PM
I don't think I have a new list to select from? Here is a screenshot so you can see what I mean

slosd
August 2nd, 2012, 02:56 PM
I don't think I have a new list to select from? Here is a screenshot so you can see what I mean

I have an additional list, hm...
Are you sure there is nothing you can drag to make this list wider/appear?

db579
August 2nd, 2012, 02:57 PM
Nothing obvious... dragging the standard list wider doesn't add anything to it. The folder sync pane doesn't allow me to resize or move anything as far as I can tell...

Bit stumped here...

db579
August 2nd, 2012, 03:13 PM
Ah sorry ignore that just found it! Bit fiddly but the folder sync pane was resizeable after all!

Weirdly though the lists are not quite the same? (there are duplicates, one or two missing and a couple of old deleted playlists back) Any idea why that is?

slosd
August 2nd, 2012, 03:18 PM
Nothing obvious... dragging the standard list wider doesn't add anything to it. The folder sync pane doesn't allow me to resize or move anything as far as I can tell...

Bit stumped here...

I don't think it's terribly important but do you have the latest banshee release 2.4.1?

And check again. I can resize the list so that it is barely visible:

slosd
August 2nd, 2012, 03:22 PM
Weirdly though the lists are not quite the same? (there are duplicates, one or two missing and a couple of old deleted playlists back) Any idea why that is?

Same for me, I guess you can just ignore that. Smart playlists are missing. The extension seems to be in an early development state.

db579
August 2nd, 2012, 03:23 PM
Okay well thanks a lot, really appreciate your time and help.

slosd
August 2nd, 2012, 03:26 PM
Okay well thanks a lot, really appreciate your time and help.

Does it work? And does google music manager react when the files get added?

db579
August 2nd, 2012, 03:37 PM
Bit of a shame the playlists seem a bit messed up but yes I think it works! Google Music manager is uploading (deathly slowly but I guess it always is) so this largely seems to solve what I wanted.

The only thing that's slightly bugging me about it is the numbers don't all match up. The banshee playlist has 4,314 songs in it, the folder with the symlinks 4,287 and google music manager finds 4,285...