[QtMoko] Melodiq patch proposal

Delian delian2 at gmail.com
Fri May 27 23:01:17 CEST 2011


Hi,
I'm wandering why melodiq doesn't working anymore, so I've checked the code.
Audiotag has changed a little the way it pass the PHPSESSID ( now through a 
cookie).

I've not tried this patch because I've not a working buildhost but it will 
work, I suppose ( or maybe with some little changes ).

232c232
<     runProc("curl -F uploadedfile=@" + SAMPLE2_FILE + " -F step=21 
http://audiotag.info/index.php");
---
>     runProc("curl -F uploadedfile=@" + SAMPLE2_FILE + " -F step=21 -c - 
http://audiotag.info/index.php");
367c367
<                 sid = extractVal("name=\"PHPSESSID\" value=\"", "\"");
---
>                 sid = extractVal("PHPSESSID       ", "\n");

Explaination:
add -c - to curl command: instruct curl to store cookie and send it to stdout.

Change extactVal strings to follow the cookie display format of curl. ( I'm 
not sure if this is ok)

It's a 5 min patch, you're warned :)

Bye!

-- 
Marco aka Delian

# On IRC freenode my nickname is: /marco

---------------------------------------------------------------------------------------------------------------------
"I would love to change the world, but they won't give me the source code"
---------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openmoko.org/pipermail/community/attachments/20110527/b7cda05f/attachment.pgp>


More information about the community mailing list