Author Topic: Sync Links  (Read 1296 times)

boroda74

  • Hero Member
  • *****
  • Posts: 2438
Is a well known issue that you can't get file access to unrooted Android devices via WiFi and hence can't sync MusicBee with Android devices via WiFi. One possible solution is to setup a local PC folder as virtual device in MusicBee, sync MusicBee with that 'device', then you can use 3d party apps (e.g. 'Cheetah Sync') to sync PC folder with Android folder via WiFi. But this has one disadvantage: all synced files will be duplicated on PC. This plugin may help in this situation. It will create own virtual device 'Sync Links' in MusicBee and will create hard links or symbolic links to original library media files in some folder on syncing. Hard links/symbolic links occupy very little space on HDD (though Windows Explorer will show the sizes of original files, not the actual sizes of links).

SOME NOTES:
  • Hard links can be created only on the same volume as original files, only on NTFS volume.
  • Hard links are definitely supported by any soft used for syncing files with Android.
  • Symbolic links can be created only on NTFS volume, but may point to original files on another volume (with any file system).
  • Symbolic links may or may not be supported by syncing software.
VISIT PLUGIN WIKI PAGE FOR FULL DESCRIPTION AND DOWNLOAD LINKS

Provide feedback on this topic.
Last Edit: July 01, 2016, 04:48:11 PM by boroda74

/lasse

  • Newbie
  • *
  • Posts: 4
I will try it. Had just set up the virtual device stuff and installed Cheetah Sync.
I was forced to use wifi when the USB port on my LG G2 got faulty and only charged.
Cheetah Sync (made by those who make iSyncr) seems to work well, and no need to root.

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6267
I personally recommend BitTorrent sync over cheetah sync.  You just have to pay attention and make sure you're setting it to sync over LAN only.  But it's much faster and seems to run better on both systems.
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.1)
(Unzip and overwrite existing program files)

/lasse

  • Newbie
  • *
  • Posts: 4
Well I have to try the BitTorrent sync to.
Does it sync one-way, two-way and delete and so on?

Didn’t manage to make the mb_SyncLinks work, did install but  when try to sync an “aborted” window came up. And then couldn’t change mb_SyncLinks settings, kind of links to create.
MusicBee 3.0.5995

Is it supposed to make conversions (flac to mp3) on the fly? Or is the only alternative to save converted files?

boroda74

  • Hero Member
  • *****
  • Posts: 2438
Didn’t manage to make the mb_SyncLinks work, did install but  when try to sync an “aborted” window came up. And then couldn’t change mb_SyncLinks settings, kind of links to create.
MusicBee 3.0.5995

3.0.5995 is not supported. try *latest* mb patch.

Is it supposed to make conversions (flac to mp3) on the fly? Or is the only alternative to save converted files?
yes.

musicbee2016

  • Newbie
  • *
  • Posts: 2
Hello,

Thanks for this plugin, it is exactly what I was hoping would exist, unfortunately I'm having issues similar to the user above.

I am able to select "Create hard links" and "Create symbolic links" but neither setting will save. Only "Create links to original files..." or "Copy temp..." will save.

I've tried everything I could think of including directly editing with settings .xml file, but when send a file to the Sync Links device in MusicBee, it will copy the file to the destination, not create a link. The copy is on the same NTFS volume as the source file.
 
I've also tried running MusicBee as admin. I'd love to use this plugin, any help appreciated.

I'm running:

Windows 10 x64
MusicBee 3.0.6132 (also tried 6032)
SyncLink 4.1.6025


musicbee2016

  • Newbie
  • *
  • Posts: 2
You're a champion. Thanks!

New version verified working, I did need to run MusicBee with admin in order for the plugin to be able to create links.

Windows 10 x64
MusicBee 3.0.6132


boroda74

  • Hero Member
  • *****
  • Posts: 2438
I did need to run MusicBee with admin in order for the plugin to be able to create links.
yes, i haven't thought about it.

gaberad

  • Newbie
  • *
  • Posts: 2
I was trying this out and ran into an error (unless there's some setting or something I've missed):

When you sync 'all playlists' or 'selected playlists only' the .mpb playlist file is included in the list of files to be synced, but the part in the code where it tries to set the syncedTrackFilename is trying to use a value that is null, causing it to throw an 'object not set to an instance of an object' exception.






What I did was just filtered out any item that had a null Value[2] (had to add "using System.Linq;").





For the admin/symbolic link issue, you can try to add your user account permission to create symbolic links:
http://superuser.com/questions/124679/how-do-i-create-a-link-in-windows-7-home-premium-as-a-regular-user

It doesn't work for me though, because it looks like if your account is part of the administratos group (which mine is) then it won't work:
http://stackoverflow.com/questions/29063916/win32api-symlink-creation-issue-with-uac-enabled
http://superuser.com/questions/104845/permission-to-make-symbolic-links-in-windows-7

"Note that this setting has no effect on user accounts that belong to the Administrators group. Those users will always have to run mklink in an elevated environment (as Administrator)."


So I did some testing and made it so the plugin creates are list of mklink commands, then runs the list in an elevated command process (which will invoke a UAC prompt). It works for me. I supposed you could also write out the commands to a batch file and run the batch file too.
http://stackoverflow.com/questions/13807429/running-cmd-commands-with-administrator-rights