Sync to Blackberry Problems

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Sync to Blackberry Problems

Re: Sync to Blackberry Problems

by Anon » Fri Apr 06, 2012 11:23 am

http://www.mediamonkey.com/forum/viewto ... 77#p335517
I posted my solution in another thread. I'll repost here for the people who arrive via search engine. Using MediaMonkey 4.

Just set your playlist directory to be the same as your music directory. Then set your playlists to "Force relative path". This solved my problem. Tested on blackberry curve 8530 and Torch 9800. Put all music and all playlist files in the same directory.

My settings are as follows:
File Destination: "\BlackBerry\music\<Album Artist> - <Album> - <Track#:2> <Title>"
Playlist Destination: "\BlackBerry\music\"
Under Playlists check "Force Relative Paths" and "Use Unicode"

Re: Sync to Blackberry Problems

by IG-88 » Sat Apr 16, 2011 11:53 am

Starlionblue wrote:
chrisjj wrote:
Starlionblue wrote:Exported iTunes playlists with iTunesExport. Imported into MediaMonkey. So far so good.
Which file format, please?
m3u.


Here are all the steps I perform now, and the Word macro I use to "convert" m3u playlists from what MediaMonkey thinks my BB can read into what my BB can actually read.

1. Use iTunesExport to export my iTunes playlists into m3u format.
2. Import the playlists into Mediamonkey
3. Use Mediamonkey to sync playlists and music with BB
4. Copy the synced playlists from the BB to a temporary directory
5. Use a Word macro (detailed below) to change the playlists into a format readable by the BB
6. Copy playlists back onto BB
7. Play music


Word macro:

Sub Macro1()
'
' Macro1 Macro
'
'
End Sub
Sub BBSync()
'
' BBSync Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "\Blackberry"
.Replacement.Text = "file:///SDCard/BlackBerry"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "\"
.Replacement.Text = "/"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "mp3"
.Replacement.Text = "MP3"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = " "
.Replacement.Text = "%20"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Thanks dude, realise this thread is pretty old but I needed some way to easily sort the playlist problem out, the synching is spot on in MediaMonkey, much quicker than blackberry's own software and I wont even mention WMP. And now I've stumbled across this code you made I've edited the directory part to suit my preference and the macro sorts it out in seconds. Good work

Re: Sync to Blackberry Problems

by jayshah » Mon Jan 18, 2010 8:53 am

Starlionblue,

I know you already went the iphone route but I figured I'd post this for anyone else that has the backberry sync issue. I use to have a bb curve, then went to a iphone, then went back to blackberry (for a bunch of reasons, but mainly the keyboard). Right now I have the black berry bold 2 (9700) and I'm really liking it. Even though the media player on it has come a long way, it still has the playlist sync issue (pathing, not saying its a blackberry thing, just a incompatibility with the way mm dumps out playlists to it). Not being able to have my playlists irritated me so much that I just sat down and leaned some vbscript to figure it out. I had a couple of requirements (as other people have posted about) like it should be simple, quick and one step to run, nothing complicated. I used vbscript because its native to all windows system, no need for special software or anything. Its quick and dirty but it does the job, pretty well. So now, I just sync my device and then run this .vbs from the command line (you can also just double click it), and all the playlists get fixed. I've also added some checks, so that it won't error out, like no playlists in the directory. It also won't touch any lists that are already "fixed" (something else someone posted somewhere else on the board). If anyone needs anything special in the script, let me know.

What I would love if the MM team would either code this into a dll or whatever, or just give an option to post execute a file after a sync (eliminating the need for me to run it form the command line).

All you have to do is copy this code into a file, change the "E:\" to whatever drive letter your blackberry sdmicro card shows up as (I use the cable and connect the bb directly to my laptop but it should be the same if you use a usb to sd readed) and then save the file as a .vbs Make sure you tell the sync to put the playlists in the root of the music folder (I believe this is the default), although if you want to change that you can just change the PlayListsLocation value to match. Sync your device, then just run the code. Tada...

Code: Select all

Const ForReading = 1
Const ForWriting = 2

PlayListsLocation = "E:\BlackBerry\music\"
OldPath           = "\BlackBerry\music\"
NewPath           = "\SDCard\BlackBerry\music\"

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set PLFolder = objFSO.GetFolder(PlayListsLocation)
set PLFiles = PLFolder.Files

for Each x in PLFiles 
  If InStr (LCase(x), ".m3u") And (x.size > 0) Then
    Set objFile = objFSO.OpenTextFile(x, ForReading)
    PlayList = objFile.ReadAll
    objFile.Close
    If Instr (PlayList, NewPath) < 1 Then
      PlayList = Replace(PlayList, OldPath, NewPath)
    End If  
    Set objFile = objFSO.OpenTextFile(x, ForWriting)
    objFile.Write PlayList
  End If 
Next

Re: Sync to Blackberry Problems

by Starlionblue » Sat Jan 16, 2010 12:03 am

Snap wrote:Here is another approach:
1- From MM, export your playlist as m3u.
2- From Windows or WMP, import the playlist into WMP.
3- Use the BB Media Sync that comes with BB Desktop Manager to sync to your BB (this will take care of any needed convesions). Note that the B Medi Sync supports iTunes as well.
I hope this helps.
Well, of course I can do that, but I want a one-stop solution.

It's all moot now anyway. I bought an iPhone. Spectacular device.

Re: Sync to Blackberry Problems

by Snap » Fri Jan 15, 2010 10:59 pm

Here is another approach:
1- From MM, export your playlist as m3u.
2- From Windows or WMP, import the playlist into WMP.
3- Use the BB Media Sync that comes with BB Desktop Manager to sync to your BB (this will take care of any needed convesions). Note that the B Medi Sync supports iTunes as well.
I hope this helps.

Re: Sync to Blackberry Problems

by Starlionblue » Mon Jan 19, 2009 9:12 pm

Ideally, an app to do the sync should just read the iTunes playlists. It's just an XML file, after all.

Re: Sync to Blackberry Problems

by chrisjj » Mon Jan 19, 2009 7:34 pm

> neither mac nor Windows versions of iTunes support exporting playlists to m3u files natively.

Thanks, both.

Re: Sync to Blackberry Problems

by Starlionblue » Mon Jan 19, 2009 6:50 pm

nohitter151 wrote:
chrisjj wrote:> m3u.

I am not an iTunes user but a Mac iTunes with whom i interwork tells me
iTunes provides only three options for "Export Song List:; text, Unicode text, or XML.

so... i guess your Tunes is the Windows version??
No, neither mac nor Windows versions of iTunes support exporting playlists to m3u files natively. I believe you have to use some sort of addon i.e.: http://www.ericdaugherty.com/dev/itunesexport/
Correct.

Re: Sync to Blackberry Problems

by nohitter151 » Mon Jan 19, 2009 3:38 pm

chrisjj wrote:> m3u.

I am not an iTunes user but a Mac iTunes with whom i interwork tells me
iTunes provides only three options for "Export Song List:; text, Unicode text, or XML.

so... i guess your Tunes is the Windows version??
No, neither mac nor Windows versions of iTunes support exporting playlists to m3u files natively. I believe you have to use some sort of addon i.e.: http://www.ericdaugherty.com/dev/itunesexport/

Re: Sync to Blackberry Problems

by chrisjj » Mon Jan 19, 2009 3:35 pm

> m3u.

I am not an iTunes user but a Mac iTunes with whom i interwork tells me
iTunes provides only three options for "Export Song List:; text, Unicode text, or XML.

so... i guess your Tunes is the Windows version??

Re: Sync to Blackberry Problems

by Starlionblue » Mon Jan 19, 2009 10:52 am

chrisjj wrote:
Starlionblue wrote:Exported iTunes playlists with iTunesExport. Imported into MediaMonkey. So far so good.
Which file format, please?
m3u.


Here are all the steps I perform now, and the Word macro I use to "convert" m3u playlists from what MediaMonkey thinks my BB can read into what my BB can actually read.

1. Use iTunesExport to export my iTunes playlists into m3u format.
2. Import the playlists into Mediamonkey
3. Use Mediamonkey to sync playlists and music with BB
4. Copy the synced playlists from the BB to a temporary directory
5. Use a Word macro (detailed below) to change the playlists into a format readable by the BB
6. Copy playlists back onto BB
7. Play music


Word macro:

Sub Macro1()
'
' Macro1 Macro
'
'
End Sub
Sub BBSync()
'
' BBSync Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "\Blackberry"
.Replacement.Text = "file:///SDCard/BlackBerry"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "\"
.Replacement.Text = "/"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "mp3"
.Replacement.Text = "MP3"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = " "
.Replacement.Text = "%20"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub

Re: Sync to Blackberry Problems

by chrisjj » Sun Jan 18, 2009 12:05 pm

Starlionblue wrote:Exported iTunes playlists with iTunesExport. Imported into MediaMonkey. So far so good.
Which file format, please?

Re: Sync to Blackberry Problems

by Starlionblue » Sun Jan 18, 2009 1:16 am

Found the solution!

I have had this exact same problem. Exported iTunes playlists with iTunesExport. Imported into MediaMonkey. So far so good. But when I put them on my BlackBerry 8320:
- Playlist thinks songs are in \Music\Artist\songname.mp3
- Song is in \Media Card\Music\Artist\songname.mp3

But it doesn't end there. When I created a test playlist on the BlackBerry, I noticed that it actually saved items thus:
file:///SDCard/BlackBerry/music/Mike%20Oldfield/Mike%20Oldfield%20-%20In%20the%20Beginning.MP3


The m3u list made by MediaMonkey looks like this:
\Blackberry\music\Mike Oldfield\Mike Oldfield - In the Beginning.mp3

I used Word (any text editor will do) to edit the m3u files created by MediaMonkey. I performed the following steps:
- Change all instances of "\Blackberry" to "file:///SDCard/BlackBerry". Note the capitalization of "Berry". If your files are under "\Music" you would change it to "file:///SDCard/Music".
- Change all instances of "mp3" to "MP3"
- Change all "\" to "/".
- Finally, change all spaces to "%20". Do this last.

Voila, working fine. I'll make a little Word macro to speed up the process.

Update: Word macro works fine. But if the MediaMonkey gang wants to spare me the work next time, I'd be happy to let them. ;) Both the conversion of iTunes playlists to m3u and the BlackBerry fix.

Re: Sync to Blackberry Problems

by Peke » Sun Oct 19, 2008 8:55 pm

I wonder if Script could be made so that script create Playlist for blackberry, due the fact that there is after Sync script Event. You could try to present that in Scripts forum.

Re: Sync to Blackberry Problems

by marc_unwired » Sun Oct 19, 2008 12:19 pm

Thanks for the suggestions ... I was the OP but for some reason my login was not working when I posted the question.

Syncing to the root would not be my prefered configuration, but I tried it anyway ... The .M3U file looked like this and did not work, same results as before

\Dane Cook - Creepy Guy @ Work_1.mp3
\Dane Cook - Dream House.mp3
\Patton Oswalt - The Dukes Of Hazzard.mp3
\Dane Cook - BAMF.mp3

Removing the backslash fixed it

I'll give the Blackberry community a shot ...

Marc

Top