nemec / JDHttpAPI

JDownloader2 plugin with a local HTTP API to add new files for download
GNU General Public License v3.0
28 stars 10 forks source link

JDHttpAPI #1

Open prince911 opened 6 years ago

prince911 commented 6 years ago

https://imgur.com/a/DXPLN

JDownloader2 does not want to add JDHttpAPI

what should I do extensions.installed.json

["chat","folderwatch","eventscripter","jdhttpapi","scheduler","infobar","translator"]

extensionInfos.json

[ { "settings" : true, "configInterface" : "org.jdownloader.extensions.antistandby.AntiStandbyConfig", "quickToggle" : true, "headlessRunnable" : true, "description" : "Simply prevents your computer from going into standby or sleep mode to keep downloads active.", "lng" : "en_US", "iconPath" : "settings", "linuxRunnable" : false, "macRunnable" : true, "name" : "Bye-bye, Standby!", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.antistandby.AntiStandbyExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\AntiShutdown.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.eventscripter.EventScripterConfig", "quickToggle" : true, "headlessRunnable" : true, "description" : "Listens to internal JDownloader event, and allows to execute relevant scripts (Javascript)", "lng" : "en_US", "iconPath" : "event", "linuxRunnable" : true, "macRunnable" : true, "name" : "Event Scripter", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.eventscripter.EventScripterExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\EventScripter.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.extraction.ExtractionConfig", "quickToggle" : false, "headlessRunnable" : true, "description" : "Extracts all usual types of archives (zip,rar,7zip,...)", "lng" : "en_US", "iconPath" : "extract", "linuxRunnable" : true, "macRunnable" : true, "name" : "Archive Extractor", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.extraction.ExtractionExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\Extraction.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.folderwatchV2.FolderWatchConfig", "quickToggle" : true, "headlessRunnable" : true, "description" : "Add Links to JDownloader just by putting Linklist files (*.crawljob) in a special folder on your harddisk.", "lng" : "en_US", "iconPath" : "folder_add", "linuxRunnable" : true, "macRunnable" : true, "name" : "Folder Watch", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.folderwatchV2.FolderWatchExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\FolderWatch.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.chat.ChatConfig", "quickToggle" : true, "headlessRunnable" : false, "description" : "Contact JDownloader Developers and Supporters", "lng" : "en_US", "iconPath" : "chat", "linuxRunnable" : true, "macRunnable" : true, "name" : "Chat", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.chat.ChatExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\JDChat.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.shutdown.ShutdownConfig", "quickToggle" : false, "headlessRunnable" : true, "description" : "Automatically shut down, suspend, hibernate your PC or close JDownloader when downloads are finished.", "lng" : "en_US", "iconPath" : "logout", "linuxRunnable" : true, "macRunnable" : true, "name" : "JD Shutdown", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.shutdown.ShutdownExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\JDShutdown.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.schedulerV2.SchedulerConfig", "quickToggle" : true, "headlessRunnable" : true, "description" : "Define time schedules to execute actions, start downloads,...", "lng" : "en_US", "iconPath" : "wait", "linuxRunnable" : true, "macRunnable" : true, "name" : "Scheduler", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.schedulerV2.SchedulerExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\Scheduler.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.infobar.InfoBarConfig", "quickToggle" : false, "headlessRunnable" : false, "description" : "Small floating panel with information on Downloads in realtime, and Drag'N'Drop Zone where you can add links, URLs or DLC files.", "lng" : "en_US", "iconPath" : "info", "linuxRunnable" : true, "macRunnable" : true, "name" : "Info Bar", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.infobar.InfoBarExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\infobar.jar" }, { "settings" : false, "configInterface" : "org.jdownloader.extensions.translator.TranslatorConfig", "quickToggle" : false, "headlessRunnable" : false, "description" : "This Extension can be used to edit JDownloader translations. You need a developer account to use this extension", "lng" : "en_US", "iconPath" : "language", "linuxRunnable" : true, "macRunnable" : true, "name" : "Translator", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.translator.TranslatorExtension", "jarPath" : "D:\Download\JDownloader 2\extensions\translator.jar" }, { "settings" : true, "configInterface" : "org.jdownloader.extensions.httpAPI.HttpAPIConfig", "quickToggle" : false, "headlessRunnable" : true, "description" : "Http API.", "lng" : "en_US", "iconPath" : "folder_add", "linuxRunnable" : true, "macRunnable" : true, "name" : "HTTP API", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.httpAPI.HttpAPIExtension", "jarPath" : "/absolute/path/to/jd2/extensions/JDHttpApi.jar" } ] Is the text true ??

nemec commented 6 years ago
 "jarPath" : "/absolute/path/to/jd2/extensions/JDHttpApi.jar"

You need to change this value (second to last line) to wherever you installed the file. Based on your other settings, maybe:

"jarPath" : "D:\Download\JDownloader 2\extensions\JDHttpApi.jar"
prince911 commented 6 years ago

same problem

JDownloader2 does not want to add JDHttpAPI

"jarPath" : "D:\Download\JDownloader 2\extensions\JDHttpApi.jar" } ]

nemec commented 6 years ago

I assume you put the jar file in that folder, too - everything you posted looks fine. All I can say is maybe you can look in the logs for the text HttpApi in case there is an error message. Maybe JDownloader broke the install instructions or something.

prince911 commented 6 years ago

yes JDHttpApi in extensions

how i can get log for HttpApi

kaonstantine commented 6 years ago

Hi. I have similar issue, can't add JDHttpAPI to JDownloader2.

I edited extensionInfos.json and added the new element:. { "settings" : true, "configInterface" : "org.jdownloader.extensions.httpAPI.HttpAPIConfig", "quickToggle" : false, "headlessRunnable" : true, "description" : "Http API.", "lng" : "en_US", "iconPath" : "folder_add", "linuxRunnable" : true, "macRunnable" : true, "name" : "HTTP API", "version" : -1, "windowsRunnable" : true, "classname" : "org.jdownloader.extensions.httpAPI.HttpAPIExtension", "jarPath" : "D:\Users\Max\AppData\Local\JDownloader 2.0\extensions\JDHttpApi.jar" }

When i start JDownloader2, the file extensionInfos.json is automatically overwrited by JDownloader2, so the changes i introduced in step 4 are lost, and the file extensionInfos.json is reverted to its original state. I tried editing the file, and then setting it as "read only", but jdownloader2 keeps overwriting it on every startup.

Please, help. :(

Thank you.

nemec commented 6 years ago

The logs can be found in the "logs" folder inside your JD install directory (you can search for it).

I'll see if I can still use the extension when I get home, but like I said - it's absolutely an 'unofficial' install and it's possible that the JD dev team have broken this somehow.