![]() |
![]() |
modul23 |
![]()
Post
#1
|
Newbie ![]() Group: Members Posts: 9 Joined: 29-April 07 Member No.: 279 ![]() |
hi there,
first of all, sorry for the bad english ![]() i never had this problem before, so i'm a bit confused. i use amip+curl+winamp to submit tracks to a sql database. all worked well until today. sometimes it doesn't submit tracks with curl. i've tried to fix this with entering a value of 2000ms in the Parse Delay. but it seems not to fix this. then i've closed the firewall, just to be sure that's not it. i've also checked what tracks are not submitted. it's random. for example, i've thinked it can be a problem with special chars, but thats not. it seems that amip works very well, but somewhere must be something. with the forum search i've found only this thread wich is something like "related" to my question: http://amip.tools-for.net/board/index.php?showtopic=228 i use: Windows 2000 Pro (+latest updates/sp's) AMIP 2.61 + latest configurator Winamp 5.35 cURL 7.16.2 i use this preset in AMIP (added breaks to not blow the forum display): CODE /exec:(c:\curl.exe) -G -d "uname=XXX&upass=XXX&playedat=&func_ue(%ystamp~-~%monstamp~-~%dstamp%hstamp~:~%mstamp~:~%sstamp) &track_num=&func_ue(%3)&title=&func_ue(%2)&artist=&func_ue(%1)&album=&func_ue(%4) &year=&func_ue(%5)&genre=&func_ue(%7)&comment=&func_ue(%6)&album_artist=&func_ue() &composer=&func_ue(%TCOM)&original_artist=&func_ue(%TOPE)©right=&func_ue(%TCOP) &url=&func_ue(%WXXX)&encoded=&func_ue(%TENC)&disc_num=&func_ue(%MCDI)&file_name=&func_ue(%fn) &file_size=&func_ue(%FSZ)&file_length=&func_ue(%sl)&file_type=&func_ue(%ext) &file_kbit=&func_ue(%br)&file_vbr=&func_ue(%VBR)&file_hz=&func_ue(%FRQ)&file_channels=&func_ue(%typ) &action=save" http://example.com/saver.php maybe someone had the same problem before. thanks in advance for reading! modul23 |
![]() ![]() |
Serge |
![]()
Post
#2
|
![]() AMIP Developer ![]() ![]() ![]() Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 ![]() |
Make some script that will log commands before calling curl and execute this script from AMIP instead of directly calling curl. See if all songs are logged.
If all songs are logged, but not all are submitted, then there is something with escaping or other problem on the server side. If not all songs are logged, then there is something wrong with AMIP itself. |
modul23 |
![]()
Post
#3
|
Newbie ![]() Group: Members Posts: 9 Joined: 29-April 07 Member No.: 279 ![]() |
hi and thanks for the tips. i'll do that right now and post the results.
here are some notes i've wrote while i was testing here what it could be: http://nopaste.php-q.net/296838 update1: played again all 23 tracks without manual skips. and hell, 2 tracks missing in the sql db. but i've logged successfully to out.html ALL tracks+tags. that's good, isn't it? ![]() so i rewrite my output script to test it this way. thanks for directing me in this way. i think it will work fine because the vars ARE there. i'll post the result again. update2: okay now i'm using this config CODE # URL of the np script url = http://sss.nfshost.com/saver.php # use HTTP GET -G # list of parameters to pass: -d "uname=XXX" -d "upass=XXX" -d "playedat=&func_ue(%ystamp~-~%monstamp~-~%dstamp %hstamp~:~%mstamp~:~%sstamp)" -d "track_num=&func_ue(%3)" -d "title=&func_ue(%2)" -d "artist=&func_ue(%1)" -d "album=&func_ue(%4)" -d "year=&func_ue(%5)" -d "genre=&func_ue(%7)" -d "comment=&func_ue(%6)" -d "album_artist=&func_ue()" -d "composer=&func_ue(%TCOM)" -d "original_artist=&func_ue(%TOPE)" -d "copyright=&func_ue(%TCOP)" -d "url=&func_ue(%WXXX)" -d "encoded=&func_ue(%TENC)" -d "disc_num=&func_ue(%MCDI)" -d "file_name=&func_ue(%fn)" -d "file_size=&func_ue(%FSZ)" -d "file_length=&func_ue(%sl)" -d "file_type=&func_ue(%ext)" -d "file_kbit=&func_ue(%br)" -d "file_vbr=&func_ue(%VBR)" -d "file_hz=&func_ue(%FRQ)" -d "file_channels=&func_ue(%typ)" -d "action=save" with this preset CODE /template:(c:\rpt\rpt.conf) c:\rpt\rpt.out /exec:(c:\rpt\curl.exe) -K rpt.out but there are still tracks missing later in the database. what is really confusing me is, that not always the same tracks are not submitted. if there would only track xy not submitted because it has some strange chars inside it would make more sense for me. maybe i should now post to my hosters forum, right? i have no more ideas. |
![]() ![]() |