Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDHttpAPI #1

Open
prince911 opened this issue Feb 14, 2018 · 6 comments
Open

JDHttpAPI #1

prince911 opened this issue Feb 14, 2018 · 6 comments

Comments

@prince911
Copy link

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
Copy link
Owner

nemec commented Feb 14, 2018

 "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
Copy link
Author

same problem

JDownloader2 does not want to add JDHttpAPI

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

@nemec
Copy link
Owner

nemec commented Feb 14, 2018

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
Copy link
Author

yes JDHttpApi in extensions

how i can get log for HttpApi

@kaonstantine
Copy link

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
Copy link
Owner

nemec commented Feb 15, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants