#1841
|
|||
|
|||
Quote:
|
#1842
|
||||
|
||||
@Tomrich: It's always good to reference what script you are talking about! You can find update logs in logs/updatehistory subfolder. You can also check MyJDownloader webinterface, settings tab, it will show the uptime of current JDownloader session
__________________
JD-Dev & Server-Admin |
#1843
|
|||
|
|||
The first scipt (convert to mp3) works like a charm. But I would like to change the output bitrate for the mp3 to 256 variabel. How?
|
#1844
|
|||
|
|||
i mean this script https://support.jdownloader.org/Know...ate-jd-in-idle
|
#1846
|
|||
|
|||
The script, at regular intervals (default 600000ms) will check if update is available and apply it, if either JD is idle or 'x' hours have elapsed since the last update (disabled by default, when hours = 0).
Quote:
Quote:
So, if the script from that link is used without any modification, it will run every 10 mins. to check if update is available and restart and apply it, only if JD is idle. |
#1847
|
|||
|
|||
Quote:
Does anybody has a suggestion which mp3 bitrate is equal to the 128kbit m4a from youtube? |
#1848
|
||||
|
||||
@stw500: you will always loose quality when converting again to mp3. why convert? nearly any player/device can play m4a or even ogg?
__________________
JD-Dev & Server-Admin |
#1849
|
|||
|
|||
Yes, I realize that basically there will always be some loss of quality when converting within or to lossy formats. However, there are various players, e.g. also built-in car radios, which can only process MP3. Furthermore, even a lossy M4A file with 128kbit is qualitatively far superior to a 128kbit MP3 file. So a conversion to e.g. 192, 256 or 320 kbit MP3 should result in only a very small loss of quality, which I would gladly accept because of the better compatibility. The only question is, how many kbit MP3 do I need for a roughly equivalent quality of 128kbit M4A.
|
#1850
|
||||
|
||||
@stw500: maybe this helps, tritondigitalcommunity.force.com/s/article/Choosing-Audio-Bitrate-Settings?language=en_US
__________________
JD-Dev & Server-Admin |
#1851
|
|||
|
|||
Thank you very much, I had already searched myself but unfortunately couldn't find a specific comparison. The link also contains more of a general comparison. The claim there, 128kbit MP3 is suitable for high-quality music playback, but I consider it daring.
|
#1852
|
||||
|
||||
@stw500: In doubt I would go with vbr 320 if you have to rely on mp3 and still want the best of the best
__________________
JD-Dev & Server-Admin |
#1853
|
|||
|
|||
Hi,
I run jdownloader2 and filebot-node with docker in 2 differents containers. I would like to set up an Automated Media Center by calling the filebot-node task when a package is finished. According to filebot help, there is 3 differents way to do this : - called the task '/opt/filebot-node/task 0' in the filebot container. - go to the link '**External links are only visible to Support Staff** - make a 'curl "**External links are only visible to Support Staff** I was thinking of creating a task with a PackageFinished trigger but, as far I'm a noob in js, I didn't find a way to call the filebot task (in the other container) in the event script.. Thank you in advance for your help Last edited by drikazz; 05.09.2021 at 12:57. |
#1854
|
||||
|
||||
@drikazz: so you just have to trigger an URL and the other container will process a folder? right?
see (just example) how to create a browser instance and do a get request https://board.jdownloader.org/showpo...postcount=1827 I'm sure if you need more help, mgpai will be able to help you
__________________
JD-Dev & Server-Admin |
#1855
|
|||
|
|||
BeautifyFileName.js
Code:
// Makes file names of added links more readable, especally videos // If you grab a file like: // This.Is.A,Naming.Scheme.S02E03.German.Subbed.720p.WEB.h264-ZZZ // it gets converted to: // This Is A Naming Scheme S02E03 // Trigger Required: A new link has been added // Change to your language var yourLanguage = "German"; try { var linkName = link.getName(); if (linkName !== null) { // extract extension var extension = (linkName.match(/\.([^.]*?)(?=\?|#|$)/) || [])[1]; // Replace dots with spaces linkName = linkName.split('.').join(' '); // remove extension linkName = linkName.substring(0, linkName.length - extension.length); linkName = linkName.split(yourLanguage.toLowerCase())[0]; linkName = linkName.split(yourLanguage)[0]; linkName = linkName.split(yourLanguage.toUpperCase())[0]; // Remove space at end if present if (linkName.slice(-1) == " ") { linkName = linkName.substring(0, linkName.length - 1); } link.setName(linkName + "." + extension); } } catch(error) { // Quiet crash } Code:
github.com/bitbotzgames/jdownloader-eventscripter/blob/main/BeautifyFileName.js Last edited by bitbotzgames; 09.09.2021 at 20:42. Reason: Github link added |
#1856
|
||||
|
||||
@bitbotzgames: thanks for sharing the script! can you please repost your github link?
__________________
JD-Dev & Server-Admin |
#1857
|
|||
|
|||
Quote:
I tried this script but it doesn't work. I have the feeling that it is more complicated than replacing the 1.1.1.1 with my URL. Quote:
I would prefer to use filebot anyway because it's not just simple renaming but I'll keep your script as an alternative solution. |
#1858
|
|||
|
|||
Quote:
If you need help implementing either of those solutions, you can find me in JD Chat. Code:
kiwiirc.com/nextclient/irc.libera.chat/#jdownloader |
#1859
|
|||
|
|||
Quote:
Code:
github.com/bitbotzgames/jdownloader-eventscripter/blob/main/BeautifyFileName.js |
#1860
|
||||
|
||||
@bitbotzgames: Thanks!
__________________
JD-Dev & Server-Admin |
#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, thank you
|
#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 21: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
|
|||
|
|||
Hat jemand Zeit ein EventScripter Script zu erstellen?
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 17: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
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#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
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|