Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - gaberad

Pages: 1
1
Ok, so not that I expected it to work, but this still isn't working for me on 3.2 RC1.

Steven, I've set you a couple of PM's already, but if by some miracle you actually see this post could you please take a look at this, since it's been about 6 months I've had this issue?

At the very least, like I asked previously, could you please explain how the 'preserve folders' part works? Since it appears that it's something outside of MusicBee that's the problem (but something MusicBee relies on?), it could help me track it down.

Also, could someone else out there just quickly test to see if they can reproduce this issue? Just to make sure it's not just me (even though I was able to reproduce this on multiple PC's earlier).

2
Ok, so I just tested this on 2.5, and it is also happening in that old version too, so it points to something outside of MusicBee being the culprit.

Given that it used to work fine, maybe it was a Windows update or update to some sort of dependency (.net dependency maybe?) sometime around early last December.

Steven, do you mind explaining how the 'preserve folders and filenames' option figures out the Target Filename? i.e. is it just pulled from the library database as/is, are there external dependencies involved (something like File/FileInfo in c#), do you do any processing of the filepath in anyway between retrieving it an getting it ready for syncing etc

It's just an oddly specific thing; cutting off anything above 2 parent folders.

3
Tried the latest 3.2 but this is still happening for me. Would it be possible to have someone confirm if this is reproducible for them?

4
FYI this is still happening for me on 3.1 update 3

5
I tried this with a 3rd PC today and still the same result.

@Steven, what does MusicBee use to preserve the folder/file paths underneath the hood? Is it dependant on some sort of dll/api?

6
I've recently found that when the 'preserve folders and filenames' device sync option is selected only 2 parent folders of the file are preserved.

It used to work fine, and looking back at some other sync/backup logs I have it appears to have changed earlier this December, maybe around the 9th/10th. I didn't apply any updates to MusicBee around that time and was still using 3.0.6262, so I have tried it on a fresh install of 3.1 update 1, on 2 separate computers, and the problem is still there.


So for example, if the full path to the file is D:\Music\Albert Collins\Album 1\musicfile.mp3 then the synced file will be E:\Sync\Music\Albert Collins\Album 1\musicfile.mp3 which is correct.

But if the file is D:\Music\Albert Collins\Album 2\Disc 1\music file.mp3 then the synced file will be E:\Sync\Music\Album 2\Disc 1\musicfile.mp3 which is incorrect.

So it looks like its only preserving the immediate 2 parent folders of the music file. It's the same thing no matter how deep the folders are.

Can anyone else reproduce this? There's nothing in the error logs.





7
Plugins / Re: Sync Links
« on: February 24, 2017, 04:03:03 AM »
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








8
MusicBee Wishlist / Sync Device via Command Line
« on: August 03, 2016, 05:44:24 AM »
Would it be possible to have a command line parameter to run sync a device?

e.g. /Sync xxxx
where xxxx is the name of the device

This way it would be possible to sync via a scheduled task.


The reason I'm interested in a command line sync is because I have a virtual device setup on a network drive that syncs a selection of files, and I have my phone sync from the virtual device. Now, since the music player on the phone doesn't read the rating tags, after I run a manual sync I have a process that I run that adds the rating to the title tag of the files in the virtual device.

But if a rating is added to a file that is included in the sync, the rating isn't synced until the manual sync is executed (obviously).

So being able to schedule the device sync via command line (and then have my custom rating>title process run afterwards) would automate the process.

Pages: 1