Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Not submitting every track?, amip+curl+winamp
modul23
post May 26 2007, 11:38 AM
Post #1


Newbie
*

Group: Members
Posts: 9
Joined: 29-April 07
Member No.: 279



hi there,
first of all, sorry for the bad english wink.gif

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)&copyright=&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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 27 2007, 10:23 AM
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
modul23
post May 27 2007, 11:14 AM
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? wink.gif
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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 27 2007, 02:55 PM
Post #4


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Write log on server to see what's wrong and see SQL return codes, maybe there is some database problem. Or maybe curl times out if your connection with the server is not very stable.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
modul23
post May 27 2007, 05:51 PM
Post #5


Newbie
*

Group: Members
Posts: 9
Joined: 29-April 07
Member No.: 279



okay i've logged everything now.

when a track is submitted, i've got a message in the log file. but when a track was not submitted, there is nothing at all about this event. so.. huh.gif

logs: http://nopaste.php-q.net/296831

ehrm, how can i log curl's activity? -trace-ascii file.txt doesn't work if i add this in the conf.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 27 2007, 06:08 PM
Post #6


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



--trace-ascii should work, make sure you are using this option correctly (with double "--" and with full file path.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
modul23
post May 27 2007, 06:31 PM
Post #7


Newbie
*

Group: Members
Posts: 9
Joined: 29-April 07
Member No.: 279



QUOTE(Serge @ May 27 2007, 06:08 PM) *

with double "--"

d'oh!

track submitted:
http://onlyfree.de/php/pasteservice/show.php?id=2480
track not submitted:
http://onlyfree.de/php/pasteservice/show.php?id=2481

i look what i find about this error tomorrow.

good night and thanks!

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Serge
post May 27 2007, 07:20 PM
Post #8


AMIP Developer
***

Group: Root Admin
Posts: 935
Joined: 12-March 06
Member No.: 1



Something wrong with your DNS probably, try adding

CODE

sss.nfshost.com 208.48.143.113


line in your WINDOWS\SYSTEM32\drivers\etc\hosts file.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
modul23
post May 28 2007, 11:12 AM
Post #9


Newbie
*

Group: Members
Posts: 9
Joined: 29-April 07
Member No.: 279



oh yeah. now played 23 tracks and ALL where saved successfully!
hope this isn't just luck. i'll play again more tracks now. but it looks like it works this way. i'll post again a end-report when i played more than those 23 test tracks.

update:
saved 46 played tracks without problems now. thank you for your help! this problem should be fixed now.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: