Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_onewaysync (Read 118731 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: foo_onewaysync

Reply #125
Thanks for reporting. This will work again with the latest version 0.5.9e.

Re: foo_onewaysync

Reply #126
Wow, that was quick. Thank you, works like a charm. :)

Re: foo_onewaysync

Reply #127
Does anybody have this running under Wine? I'm trying it under Wineskin (Mac) but it just makes foobar crash when I go to the 'Devices' section in the preferences.

Re: foo_onewaysync

Reply #128
The plugin crashes every time I run the command "Rated", but it works completely fine every time I use the command "Unrated". The only difference between both is the command name and the folder destination name (MusicaRated and MusicaUnrated). Everything else is exactly the same.
Any idea on how to fix this? :(

Re: foo_onewaysync

Reply #129
Does anybody have this running under Wine? I'm trying it under Wineskin (Mac) but it just makes foobar crash when I go to the 'Devices' section in the preferences.
Afaik Wineskin does not support the WPD API. Most likely that is the reason for the crash. With any luck, I might be able to come up with a workaround, if you send me the crash report and dump file.

Re: foo_onewaysync

Reply #130
The plugin crashes every time I run the command "Rated", but it works completely fine every time I use the command "Unrated". The only difference between both is the command name and the folder destination name (MusicaRated and MusicaUnrated). Everything else is exactly the same.
Any idea on how to fix this? :(
Would you please share the crash report and dump file, thanks.
Are you sure they are absolutely identical? Do they process the same set of files?

Re: foo_onewaysync

Reply #131
Does anybody have this running under Wine? I'm trying it under Wineskin (Mac) but it just makes foobar crash when I go to the 'Devices' section in the preferences.
Afaik Wineskin does not support the WPD API. Most likely that is the reason for the crash. With any luck, I might be able to come up with a workaround, if you send me the crash report and dump file.

Here is my crash report (somehow I can't get to upload here directly..):
http://www.mediafire.com/file/cin5k9mfx7z5qd6/crash_report.zip

Thank you for taking the time to check on this.

Re: foo_onewaysync

Reply #132
Hello! first post (prolly), hello to everyone else too in that case.

First off, I love your component, it's finally the one I was looking for to not have to manually maintain two separate databases with my mobile phone...
however, there is one weird quirk I noticed, tracks would just get replaced with another with no rhyme or reason. I'll be listening to Mungo Jerry at one moment, and the following track will be tagged as Mungo Jerry, with all correct fields, but will be some other song instead. Perhaps either sync or Foobar are mixing up temporary mp3 files and putting them in the wrong places? I wish I had more info regarding this, it's been 2-3 syncs over mass-storage and a final one over MTP. Somehow in between, it must have confused some files. Never more than one per album though!

Re: foo_onewaysync

Reply #133
That sounds funny. I'll need some more information to figure this out: Which version of ows are you using? Were all of the affected files reencoded? If so, how many conversion threads are you using? Is there anything these songs might have in common?

 

Re: foo_onewaysync

Reply #134
Hello,

this plugin doesn't work with my phone:

I am using Win10
My phone is an s5 mini: SM-G800f running still with Lollipop 5.1.1
I have foobar2000 v. 1.3.14 and the plugin version 0.5.9e.

When I try to send files to phone I get in the console the following message:
foo_onewaysync: Could not create directory structure; unknown path format 0d
 >:(

What Do I do wrong?


Re: foo_onewaysync

Reply #136
My phone is an s5 mini: SM-G800f running still with Lollipop 5.1.1
I have foobar2000 v. 1.3.14 and the plugin version 0.5.9e.

When I try to send files to phone I get in the console the following message:
foo_onewaysync: Could not create directory structure; unknown path format 0d
 >:(

What Do I do wrong?
Don't know. What else does the console say?

Re: foo_onewaysync

Reply #137
Thank you for taking the time to check on this.
Try with the latest version and let me know about the result.

It works great, thank you very much. Never thought I would be able to sync foobar playlists with my Android phone from OSX. :D
I used this app to mount the SD Card in my phone: https://forum.xda-developers.com/android/apps-games/app-universal-mass-storage-enabler-beta-t3240097

Re: foo_onewaysync

Reply #138
Don't know. What else does the console say?

I replaced the name of the mp3 file with XXXX.

When trying to send an mp3 to my phone there a window pops up with the following text:

One way sync failed: Error: Could not copy file to WPD device, problem reading the source file. Filename: XXXX.mp3
The console says: foo_ows: Error: Error: Could not copy file to WPD device, problem reading the source file. Filename: XXXX.mp3

When trying to send a flac file the console says:
foo_ows: Exporting selection to  wpd:\Spirit of the ocean (Galaxy S5 m\Phone\%artist%\%album%\[%discnumber%.]%title%.mp3
foo_ows: Conversion Complete
foo_onewaysync: Could not create directory structure; unknown path format 0do eo

For me it seems there is a problem with actually saving the files on the telephone. I think there was a version where this worked.

Re: foo_onewaysync

Reply #139
My phone is an s5 mini: SM-G800f running still with Lollipop 5.1.1
I have foobar2000 v. 1.3.14 and the plugin version 0.5.9e.

When I try to send files to phone I get in the console the following message:
foo_onewaysync: Could not create directory structure; unknown path format 0d
 >:(

What Do I do wrong?
Don't know. What else does the console say?
After looking into this a bit more, I'm convinced your titleformatting script is faulty or results in an invalid path!
With the current release it becomes easier to spot such issues and the component will try to workaround. However, the target filenames might differ from the desired filename!

Edit: Missed your reply when posting this. Try version 0.5.10c, and post the console output again. The path
Code: [Select]
wpd:\Spirit of the ocean (Galaxy S5 m\Phone...
looks suspicious, are you sure there is a '(' in the devicename? Also, the problem might be in the filename that you decided not to post.

Re: foo_onewaysync

Reply #140
Hello Zimjo,

with the new component it gave me all devices available in the popup window. I copied the text and wanted to post it but my PC gave me later a blue screen.

I remember that there stood:
Devicename: Spirit of the ocean     .mp3 (this wasn't the correct device)
It listed all availabe devices with wpd:\Spirit of the ocean (Galaxy S5 m\Phone...

After you said that the device name could be a problem I changed it do S5mini by renaming it.

Now it is working :)

But I have a question though:
Is it better to:
a)  put the destination folder under "Devices" for example: wpd:\S5mini\Card\Musik with the  titleformatting script under Tasks %artist%\%album%\[%discnumber%.]%tracknumber%.%title%.$ext(%_path%)
or
b) put alone the device with the sd card under "Devices" for example: wpd:\S5mini\Card\ with the  titleformatting script under Tasks Musik\%artist%\%album%\[%discnumber%.]%tracknumber%.%title%.$ext(%_path%)

I use the last option.

Re: foo_onewaysync

Reply #141
Great! It doesn't really matter if you choose (a) or (b). As long as the device string does not contain titleformatting you're good. Though, when the option create subfolder for each task is checked and you're using multiple tasks per device option (a) is probably what you want.

Re: foo_onewaysync

Reply #142
I want to say a big

Thank you :-*

Since they abandoned real massstorage mode and used instead media transfer protol in android this was the most annoying thing for me that I couldn't send the files directly from foobar to my phone.

I have a lot FLAC files but also some MP3. With your plugin I can create a playlist and then send it to my phone despite having FLAC and MP3 in my playlist because it recognizes if there are losless files and converts them into mp3 :)

Re: foo_onewaysync

Reply #143
Hi,
I'm trying to figure out how One Way Sync works.
So far, all my synced files have no file extension (no ".mp3", nothing at all).
That happens for all files, converted or not.
That also happens if I sync the files to a local hard drive instead of my smartphone.
What am I doing wrong ?
Thanks.

Here's a test done on a small number of files (only 9 audio files) for debugging purposes :

Code: [Select]
Exported files and playlists succesfully.
1 playlists exported.
3 files converted.
0 files updated.
----------------------
Could not load info (Object not found) from:"R:\TMP\OWSDB0A.tmp.mp3"
Could not load info (Object not found) from:"R:\TMP\OWSE46E.tmp.mp3"
Could not load info (Object not found) from:"R:\TMP\OWSEDF0.tmp.mp3"
----------------------
Could not update tags (Object not found) on:"R:\TMP\OWSDB0A.tmp.mp3"
Could not update tags (Object not found) on:"R:\TMP\OWSE46E.tmp.mp3"
Could not update tags (Object not found) on:"R:\TMP\OWSEDF0.tmp.mp3"

FYI, R: is a 1GB RAM drive with 200 MB free space.
All 9 resulting files are without any extension.
Also, if I try to view the resulting m3u playlist file with a text editor, its contents don't have any extensions either.

Re: foo_onewaysync

Reply #144
Most likely the titleformatting string does not contain the file extension. Unfortunately, your post does not show that part of the console log. Add
Code: [Select]
.$ext(%_path%)
to the end of the titleformatting string to append the file extension. If you set up a converter, make sure that the appropriate file extension is set in the converter dialog.

Re: foo_onewaysync

Reply #145
Is it possible to keep the original folder structure? Thank you

Re: foo_onewaysync

Reply #146
@zimjo : thanks. The titleformating string is the same I've been using for years for lots of other things (moving/copying files for instance), and the file extension has always been preserved, so why should I add it now specifically for your component ?
Here it is if you want to take a look :
Code: [Select]
[$if($and($strstr(%genre%,Comédie),$strcmp($left($meta(album artist),6),Troupe)),%genre%,$if($strstr(%sorting%,'[Coffret]'),$if($strstr(%sorting%,'=='),$left(%sorting%,$sub($strstr(%sorting%,'=='),1)),),$if($and($strstr(%album artist%,Compilation),$not($strstr($left(%sorting%,3),OST))),,[$replace(%sorting%,'==','\')])))\]$if($strstr($left(%sorting%,3),OST),$if($strstr(%sorting%,'=='),'('[$left(%original release date%,4)-]$left(%date%,4)') '$replace($if2('[Single] '$replace(%single%,'?','_'),$replace(%album%,'?','_')[' ['%edition%']'][' ('$if($strcmp($strchr(1234567890,$left(%discnumber%,1)),0),,'CD ')%discnumber%')']),'Remaster',RM,'MFSL Original Master Recording',MFSL),$puts(d,$if2('[Single] '$replace(%single%,'?','_'),$replace(%album%,'?','_')))$puts(e,1)$puts(f,$sub($strstr($get(d), OST),1))$puts(g,$substr($get(d),$get(e),$get(f)))$if($strcmp($left($get(d),2),L''),$ascii($upper($substr($get(d),3,3)))$substr($get(d),4,$get(f))' (L'''')',$if($and($strcmp($left($get(d),2),A ),$or($and($or($strstr(%language%,Anglais),$strstr(%language%,Allemand),$strstr(%language%,Instrumental)),$not($strstr(%genre%,Chanson))),$and($strstr(%language%,Espagnol),$strstr(%genre%,Pop)),$strstr(%genre%,Divers))),$ascii($upper($substr($get(d),3,3)))$substr($get(d),4,$get(f))' (A)',$put(c,$replace($put(b,$cut($get(g),$put(a,$strchr($get(d), )))),The ,,Le ,,Les ,,Des ,,La ,,Las ,,Lo ,,Los ,,An ,,At ,)$substr($get(d),$add($get(a),1),$get(f)))$iflonger($get(g),$len($get(c)),' ('$trim($get(b))')',)))$substr($get(d),$add($get(f),1),999)[' ['$replace(%edition%,Remaster,RM,MFSL Original Master Recording,MFSL)']'][' ('$if($strcmp($strchr(1234567890,$left(%discnumber%,1)),0),,'CD ')%discnumber%')']' ('[$left(%original release date%,4)-]$left(%date%,4)')'),$if($strstr(%album artist%,Compilation),Compilation\$if(%sorting%,$if($strstr(%sorting%,'[Coffret]'),$substr(%sorting%,$add($strstr(%sorting%,']'),2),$len(%sorting%))' ('%totaldiscs% CDs') ('%date%')'\['['%discnumber%'] ']$replace(%album%,'?','_')[' ['%edition%']'],%sorting%\'('[$left(%original release date%,4)-]$left(%date%,4)') '$replace($replace(%album%,'?','_')[' ['%edition%']'][' ('$if($strcmp($strchr(1234567890,$left(%discnumber%,1)),0),,'CD ')%discnumber%')'],'Remaster',RM,'MFSL Original Master Recording',MFSL)),$puts(d,$replace(%album%,'?','_'))$puts(e,1)$puts(f,999)$if($strcmp($left($get(d),2),L''),$ascii($upper($substr($get(d),3,3)))$substr($get(d),4,$get(f))' (L'''')',$if($and($strcmp($left($get(d),2),A ),$or($and($or($strstr(%language%,Anglais),$strstr(%language%,Allemand),$strstr(%language%,Instrumental)),$not($strstr(%genre%,Chanson))),$and($strstr(%language%,Espagnol),$strstr(%genre%,Pop)),$strstr(%genre%,Divers))),$ascii($upper($substr($get(d),3,3)))$substr($get(d),4,$get(f))' (A)',$put(c,$replace($put(b,$cut($get(d),$put(a,$strchr($get(d), )))),The ,,Le ,,Les ,,Des ,,La ,,Las ,,Lo ,,Los ,,An ,,At ,)$substr($get(d),$add($get(a),1),999))$iflonger($get(d),$len($get(c)),' ('$trim($get(b))')',)))[' ['$replace(%edition%,Remaster,RM,MFSL Original Master Recording,MFSL)']'][' ('$if($strcmp($strchr(1234567890,$left(%discnumber%,1)),0),,'CD ')%discnumber%')']' ('[$left(%original release date%,4)-]$left(%date%,4)')'),$if($and($strstr(%genre%,Comédie),$strcmp($left($meta(album artist),6),Troupe)),%subgenre%,$puts(d,$if2($meta_sep(album artist,', ',' & '),$if($strstr(%sorting%,Classique),$replace($meta_sep(composer,', ',' & '),Wolfgang Amadeus,W.A.,Johann Sebastian,J.S.,Ludwig Van,L.V.),$if2(%artist2%,$if2($meta_sep(artist,', ',' & '),$replace($meta_sep(composer,', ',' & '),Wolfgang Amadeus,W.A.,Johann Sebastian,J.S.,Ludwig Van,L.V.))))))$puts(e,1)$puts(f,$if($strstr($get(d),' ('),$sub($strstr($get(d),' ('),1),999))$puts(g,$substr($get(d),$get(e),$get(f)))$if($strcmp($left($get(d),2),L''),$ascii($upper($substr($get(d),3,3)))$substr($get(d),4,$get(f))' (L'''')',$if($and($strcmp($left($get(d),2),A ),$or($and($or($strstr(%language%,Anglais),$strstr(%language%,Allemand),$strstr(%language%,Instrumental)),$not($strstr(%genre%,Chanson))),$and($strstr(%language%,Espagnol),$strstr(%genre%,Pop)),$strstr(%genre%,Divers))),$ascii($upper($substr($get(d),3,3)))$substr($get(d),4,$get(f))' (A)',$put(c,$replace($put(b,$cut($get(g),$put(a,$strchr($get(d), )))),The ,,Le ,,Les ,,Des ,,La ,,Las ,,Lo ,,Los ,,An ,,At ,)$substr($get(d),$add($get(a),1),$get(f)))$iflonger($get(g),$len($get(c)),' ('$trim($get(b))')',))))\$if($strstr(%sorting%,'[Coffret]'),'('%date%') '$substr(%sorting%,$add($strstr(%sorting%,']'),2),$len(%sorting%))' ('%totaldiscs% CDs')'\['['%discnumber%'] ']$replace(%album%,'?','_')[' ['%edition%']'],'('[$left(%original release date%,4)-]$left(%date%,4)') '$replace($if2('[Single] '$replace(%single%,'?','_'),$replace(%album%,'?','_')[' ['%edition%']'][' ('$if($strcmp($strchr(1234567890,$left(%discnumber%,1)),0),,'CD ')%discnumber%')']),'Remaster',RM,'MFSL Original Master Recording',MFSL))))\$if($strcmp($len($meta(works)),0),,$if($strstr(%works%,'[]'),$puts(v,$replace(%works%,'[]',))$puts(w,$substr($get(v),$if($strstr(%works%,'=='),$add($strstr($get(v),'=='),2),0),999))$if($strstr(%works%,'[]'),['['$get(w)'] '],[$get(w)' - ']),))$replace(%title%,'?','_')$puts(a,$replace(%version%,'Alternate, ',,'Demo, ',,'Original, ',,'Remix, ',,'Reprise, ',,', Alternate',,', Demo',,', Original',,', Remix',,', Reprise',,Alternate,,Demo,,Original,,Remix,,Reprise,))$puts(b,%subversion%)$if($strcmp($get(a),'?'),$puts(a,))$if($strcmp($get(b),'?'),$puts(b,))$if($get(a),' ['$get(a)[', '$get(b)]']',[' ['$get(b)']'])[' - '%subtitle%]' ('$puts(n,$if($or($strstr(%sorting%,Classique),$strstr(%genre%,Classique)),$if($strcmp($meta(album artist),Compilation),,performer),artist))$puts(m,$if2(%artist2%,$meta($get(n),0)))$if($and($strchr($get(m),'('),$strcmp($strchr($get(m),')'),$len($get(m)))),$puts(a,$left($get(m),$sub($strchr($get(m),'('),2))),$puts(a,$get(m)))$puts(m,$if(%artist2%,,$meta($get(n),1)))$if($and($strchr($get(m),'('),$strcmp($strchr($get(m),')'),$len($get(m)))),$puts(b,$left($get(m),$sub($strchr($get(m),'('),2))),$puts(b,$get(m)))$puts(m,$if(%artist2%,,$meta($get(n),$sub($meta_num($get(n)),1))))$if($and($strchr($get(m),'('),$strcmp($strchr($get(m),')'),$len($get(m)))),$puts(c,$left($get(m),$sub($strchr($get(m),'('),2))),$puts(c,$get(m)))$if(%artist2%,$get(a),$ifgreater($meta_num($get(n)),3,$get(a)', [...] & '$get(c),$ifgreater($meta_num($get(n)),2,$get(a)', '$get(b)' & '$get(c),$ifgreater($meta_num($get(n)),1,$get(a)' & '$get(b),$get(a)))))')'

Attached is my converter dialog (some files need to be converted to mp3, some others don't).
The complete converter line is : "C:\Program Files\dBpoweramp\encoder\mp3 (Lame)\lame.exe" --cbr -q0 -b 320

Re: foo_onewaysync

Reply #147
Is it possible to keep the original folder structure? Thank you
Use
Code: [Select]
%path%
as titleformatting script for the task to preserve the folder structure. Or
Code: [Select]
$replace(%path%,stringToRemove,)
where stringToRemove is a prefix you want removed.

Re: foo_onewaysync

Reply #148
@zimjo : thanks. The titleformating string is the same I've been using for years for lots of other things (moving/copying files for instance), and the file extension has always been preserved, so why should I add it now specifically for your component ?
Two reasons: Your titleformatting string breaks the logic that determines whether there is already an extension present and if not adds it automatically, and I'm not going to extend that logic now just because you are to lazy to add a few characters to the string. It seems you want to use my component, not the other way round.

The converter dialog looks alright.

Re: foo_onewaysync

Reply #149
@zimjo : I didn't imply that I was lazy or anything. I just asked a mere question : "why should I add it now ?". I asked it because I like to understand. I wanted to understand why when I pass the same string to foobar, it just works. I wanted to know if there was a special reason why your component couldn't just act in the same way that foobar seems to do.

I just didn't know that I'd be running into "yet another developer with an ego bigger than the solar system just because he does some coding", that he would be condescending to me ("I'm not going to extend that logic now..."), and that he would dare call "lazy" somebody who was able to do a titleformatting script (dozens actually) bigger than those of 99% of foobar users. So big in fact, that I've had several foobar components modified by their developers, because the length of my scripts made them crash.

But yeah, aside from that, I must definitely be "lazy".

So hey, be nicer to the next guy who asks you something, OK ?
And thanks for nothing.