#1861
|
|||
|
|||
![]()
@mgpai
Helo script master! I need your skills. I inquired about if JD had a way of importing hoster accounts en mass and Jiaz said you may be able to help that. what I would like to do is have a bunch of accounts in a text document with a pattern like "username:password@domain" (as suggested by Jiaz) and then when those are copied to the clipboard, your scrip would use the JD API to import them. Bonus if you can make a simple script that automatically does a staggered refresh (does the login check) of accounts of a specific hoster in batches every X days |
#1862
|
|||
|
|||
![]() Quote:
Code:
/* Import accounts from text/csv file Login details should be in hoster\tusername\tpassword (tsv format), 1 per line Set path to text file and click 'test run' button to import the accounts */ var myfile = "c:/downloads/accounts.txt"; try { readFile(myfile).trim().split("\r\n").forEach(function(item) { callAPI("accounts", "addAccount", item.split("\t")); }); } catch (e) { alert(e.message); }; JD automatically refreshes the accounts at regular intervals. Also, it is possible to sort the accounts by name or status and easily select and refresh them manually. I am hence, declining this request. |
#1863
|
|||
|
|||
![]()
@mgpai
I'm trying to figure out how I could get jdownloader to peek inside archive then move the archive based on the contents file format without extracting content. say I have a archive named
Spoiler:
ASUS RADEON ROG MATRIX R9 290X PLATINUM (C671X) REV 1.00X 59YV05D1-VG0A01S
I'm sure this needs to be a script but I have no idea how, could you help? |
#1864
|
|||
|
|||
![]() Quote:
Some examples: Code:
7za l myarchive.zip unrar l myarchive.rar |
#1865
|
|||
|
|||
![]()
Hello, can i request a script that would save download link (in a txt file), next to downloaded content?
Example: c:/download/content1 c:/download/content1/content1_links.txt c:/download/content2 c:/download/content2/content2_links.txt Thank you in advance! |
#1866
|
|||
|
|||
![]() Quote:
Code:
/* Save links to text file Trigger : Package Finished */ var content = []; var file = package.downloadFolder + "/" + package.name + "_links.txt"; package.downloadLinks.forEach(function(link) { content.push(link.contentURL || link.pluginURL); }) content = content.join("\r\n") + "\r\n"; writeFile(file, content, true); |
#1867
|
||||
|
||||
![]()
@mgpai: maybe for download finished?
__________________
JD-Dev & Server-Admin |
#1868
|
|||
|
|||
![]()
Created based on original request. But sure, I can be modify it if the user wishes urls to be saved on per link basis.
|
#1869
|
|||
|
|||
![]()
yeah, for finished download, or while downloading
![]() |
#1870
|
|||
|
|||
![]()
I had created the script based on your original request. If you state your request clearly, it will save me time/effort.
Code:
/* Save finsihed link Trigger : A download stopped */ if (link.finished) { var package = link.package; var file = package.downloadFolder + "/" + package.name + "_links.txt"; var url = link.contentURL || link.pluginURL; writeFile(file, url + "\r\n", true); } |
#1871
|
|||
|
|||
![]()
sorry for asking question here, but event scripter doesent work at all for me, like, nothing happens, its installed, enabled, i added scripts, test compile is succesful, but test run does nothing and nothing happens after download :(
edit: fixed it script works but kinda not exactly how i wanted (my bad, should be more specific), right now it saves links for each file so when package has 1000 files, there will be 1000 links (actually one link but with '?' separating file links). The way i wish it would work is, like i do it manually: - Context menu on package -> Properties -> Show Download URLs - Select all -> copy (if one link shows multiple times, only one will be copied to clipboard, so theres no dupes) - make links.txt file in download/content directory, paste links and save Its mostly one link per package, thank you, been using JD for 7 years, never figured ES :C. Last edited by pivor; 16.09.2021 at 20:06. |
#1872
|
|||
|
|||
![]()
Find me in JD Chat. I make the necessary modifications based on your live feedback.
Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader |
#1873
|
|||
|
|||
![]() Quote:
Then if you could write in this format: "file name (without extension), file extension, download link" |
#1874
|
|||
|
|||
![]() Quote:
Only data available at the time of adding the links can be saved, which may not be accurate if the link available status in 'unknown'. |
#1875
|
|||
|
|||
![]() Quote:
So you can save the data to add the link? If you are okay, if the connection is unknown so not working, will still be inserted? In this case if you can't jump it? or in any case report it as "unknown"? |
#1876
|
|||
|
|||
![]() Code:
/* Log crawledlink info to file Trigger : A new link has been added Important: Disable synchronous execution checkbox in top panel */ var myFile = "c:\\downloads\\crawledlinks.txt"; var link = crawledLink; var name = link.name; var ext = "none"; var status = link.availableState; var url = link.contentURL || link.pluginURL; var full, data; try { [full, name, ext] = link.name.match(/(.+)\.(.+)/); } catch (e) {}; data = [name, ext, url, status]; data = data.join(",") + "\r\n"; writeFile(myFile, data, true); If you need any modifications, find me in JD Chat. |
#1877
|
|||
|
|||
![]()
Ich schaffe es zZt. zeitlich nicht, ein EventScripter Script zu erstellen. Hat vielleicht jemand Zeit und Lust das zu machen? Ich möchte eine Textdatei (.txt) mit folgendem Inhalt (so ähnlich wie das JDownloader bei youtube bereits macht):
1. Zeile der Link: auf1. eu/videos/watch/413e81fe-10c8-45f5-b2fd-5bdd274da888?title=0&warningTitle=0&peertubeLink=0 Die nächsten Zeilen: Der Text aus der Video-Beschreibung (= als Kommentar gesetzt). Diesen "/videos/watch"-URL bekomme ich darüber, dass ich im Kontextmenü des Vids Video-URL kopieren auswähle, ausgehend von der Seite: auf1. tv/aufrecht-auf1/ernst-wolff-im-interview-welche-minderheit-uns-lenkt-und-was-sie-will/ Kann man so eine "/videos/watch"-URL auch über einen EventScripter-Script-Befehl, bekommen und weiterverarbeiten? PPS: Hier ist noch ein weiterer Thread zum Thema: https://board.jdownloader.org/showthread.php?t=70525 PPPS: @ mgpai: Danke, falls du irgendwann Zeit findest, mir dabei zu helfen ![]() Last edited by mirino; 29.09.2021 at 16:10. |
#1878
|
||||
|
||||
![]()
EventScripter Threads zusammengeführt.
@mirino Ich empfehle, einen Testlink zur Verfügung zu stellen mit dem unser Plugin auch umgehen kann (siehe meine Antwort im anderen Thread...). Grüße, psp
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:
A users' JD crashes and the first thing to ask is: That's true James Quote:
|
#1879
|
|||
|
|||
![]()
Ich habe gerade meinen Post editiert. Ich hoffe jetzt ist alles notwendige drin.
Danke fürs Zusammenführen ![]() |
#1880
|
||||
|
||||
![]()
Das wichtigste fehlt:
Du möchtest ein EventScripter Script, das die Beschreibung des Videos (= als Kommentar gesetzt) als .txt Datei speichert. Falls mgpai Zeit findet, wird er dir sicher helfen. Grüße, psp
__________________
JD Supporter, Plugin Dev. & Community Manager
JDownloader 2 Setup Download
Spoiler:
A users' JD crashes and the first thing to ask is: That's true James Quote:
|
![]() |
Thread Tools | |
Display Modes | |
|
|