In data domenica 29 maggio 2011 08:18:08, Radek Polak ha scritto: > Delian wrote: > > 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). > > Hi, > i have rebuild the package, you can find it here: > > http://qtmoko.sourceforge.net/apps/qtmoko-melodiq_32-1_armel.deb > > Thanks for the patch! > > Radek > > _______________________________________________ > Openmoko community mailing list > [email protected] > http://lists.openmoko.org/mailman/listinfo/community
Thanks a lot for the rebuild but, I've managed to run it on my laptop and I've
found a problem with the patch. It's not working due to PHPESSID and
extractVal.
Now, Instead of extractVal function, I'm using QRegExp to extract PHPSESSID.
This's the WORKING ( for real :) ) patch ( diff between original melodiq.cpp )
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");
356c356
<
---
> QRegExp sessid("^.*PHPSESSID\\s+([^\\s]*)");
366,367c366,370
< case StageUploading:
< sid = extractVal("name=\"PHPSESSID\" value=\"", "\"");
---
> case StageUploading:;
> if (sessid.indexIn(outbuf) != -1)
> sid = sessid.cap(1);
> else
> sid = "";
Could you rebuild the pkg?
Thanks again and sorry for the previous wrong patch :)
--
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"
---------------------------------------------------------------------------------------------------------------------
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Openmoko community mailing list [email protected] http://lists.openmoko.org/mailman/listinfo/community

