Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThread field for JDownloader Links?
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #1
XThread field for JDownloader Links?
Hi,

can be that you have a solution for me. i try to create a field where you can put in some links. for example:

http://www.rapidshare.com/files/407970280/...link1
http://www.rapidshare.com/files/407970280/...link2
http://www.rapidshare.com/files/407970280/...link3 etc. (only example, not working links!)

at first, please visit this site:
http://jdownloader.org/knowledge/wiki/glossary/cnl2
and scroll down to Plain CNL2

you can read there: "You can pass multiple urls and passwords by seperating them with \r\n"
And this is my problem ->  \r\n after every link.

i need a field, where you can post many links, and these links are automatically added to the jdownloader if you click on a button. the button is not the problem, but i have only the value-field in xthreads and i donĀ“t know how to add "\r\n" after each link. is it possiple to solve this problem with XTHreads or has somebody another solution for me?
06-09-2012 09:45 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: XThread field for JDownloader Links?
As expected of them to have crappy methods to do things...
\r\n is a newline - Windows newline to be specific.  If they knew what they were doing, they would accept both \n and \r\n as seperators...
You can do something like this in Display Format:

Code:
<?= str_replace("\n","\r\n", str_replace("\r",'', {VALUE})) ?>

Display Parsing needs to be set to Plaintext (without newlines).


My Blog
06-09-2012 10:15 AM
Find all posts by this user Quote this message in a reply
Jumper Offline
Member
***
Posts: 75
Joined: Aug 2010
Post: #3
RE: XThread field for JDownloader Links?
Thank you.
ZiNgA BuRgA Wrote:As expected of them to have crappy methods to do things...
Biggrin yes

this works, but need between every link a space:
Display Format
Quote:<FORM ACTION="http://127.0.0.1:9666/flash/add" target="hidden" METHOD="POST">
   <INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword">
   <INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese">    
   <INPUT TYPE="hidden" NAME="urls" VALUE="<?= str_replace("\n","\r\n", str_replace("\r",'', {VALUE})) ?>">
   <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader">
</FORM>

Link1(Space)Link2(Space)Link3(Space)Link4 etc.

is there any way that i can use multiline textbox? all links under each other? or otherwise using a MyCode with the code above? i test it as a MyCode, but not working. i am not so super professional with coding.
06-09-2012 12:15 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: XThread field for JDownloader Links?
No, it should be:
link1(newline)link2(newline ...
Unless I'm missing something in my code...

My Blog
06-09-2012 01:48 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: