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
Addsource jsonrpc #5484
Addsource jsonrpc #5484
Conversation
f111901
to
7858a11
Compare
Me again :) Perhaps since adding this take : e99054a in account and handle allowsharing too to be complete ? |
@@ -227,6 +234,74 @@ JSONRPC_STATUS CFileOperations::Download(const std::string &method, ITransportLa | |||
return transport->Download(parameterObject["path"].asString().c_str(), result) ? OK : InvalidParams; | |||
} | |||
|
|||
CONTENT_TYPE contentTypeFromString(const std::string &content) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Do we want to allow multiple directories per source like it can be done in the user interface? The API could support either a single string or an array of strings for the Furthermore this is missing all the options that can be set per source (which are a bit ambiguous). We'll probably have to extend the result of |
Yeah agree on the multiple directory, will change |
7858a11
to
16d5a19
Compare
{ | ||
ADDON::AddonPtr scraperAddon; | ||
ADDON::CAddonMgr::Get().GetDefault(ADDON::ScraperTypeFromContent(contentTypeFromString(contents[1])), scraperAddon); | ||
ADDON::ScraperPtr scraper = boost::dynamic_pointer_cast<ADDON::CScraper>(scraperAddon); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Looks a lot nicer already. |
…o a better place probably
…ltiple directories to be allowed as parameter
d1cb323
to
90636ff
Compare
@Montellese Kindof unsure on how we should do the parameters here if we want to support allowshare? It feels like its a property on the source, so unrelated to the scraper settings. But feels a bit odd to have name, paths, content, source_options, scraper_options? |
@topfs2: allowshare is a porperty of the source and not the scraper. As long as we don't allow scraper selection I wouldn't allow setting them anyway. We can still add those later as Maybe we should try to find better naming for the source options? And we should also add descriptions as to which make sense for which media type and what they do. PS: You still have the |
Are you planning on getting this into shape for the next merge window? |
I could, not sure what was left to do on it though? |
From reading the previous comments I'd say
|
Hi All, |
Took out the addsource jsonrpc from the headless addition. @Montellese to review