Closed BTopbas closed 4 years ago
Please note that the settings id must match the provider json name in lowercase with spaces replaced by dots. I will add that to the documentation later. Also, default needs to be either true or false.
Please note that the settings id must match the provider json name in lowercase with spaces replaced by dots. I will add that to the documentário later. Also, default needs to be either true or false.
So settings sections will be like this? :
<setting id="testex" type="bool" label="testex" default="true"/>
Exactly
Exactly
Worked! I am very close!! Now I can't parse JSON values. I have returned JSON like this:
{
"torrent_results":[
{
"title":"item_title",
"size":"item_size",
"download":"download_magnet"
},
{
"title":"item_title",
"category":"item_category",
"download":"download_magnet"
}
]
}
And my provider parse section like this:
"type": "json",
"rows": "./torrent_results",
"data": {
"title": "./title/text()",
"size": "./size/text()",
"magnet": "./download/text()"
}
But its return this error Failed running scraper testex: 'NoneType' object has no attribute 'text'
I tried different combinations but always fail.
Okey. Now works like a charm!
"type": "json",
"rows": ".//torrent_results/",
"data": {
"title": ".title/text()",
"size": ".size/text()",
"magnet": ".download/text()"
}
Here is problem: My settings.xml:
My providers.json:
DEBUG: found key /userdata/addon_data/script.flix.magneto/settings.xml
2020-07-19 19:40:46.931 T:1541736 DEBUG <CAddonSettings[script.flix.magneto]>: loading setting values
2020-07-19 19:40:46.931 T:1541736 DEBUG : requested setting () was not found.
2020-07-19 19:40:46.931 T:1541736 DEBUG <CAddonSettings[script.flix.magneto]>: failed to find definition for setting . Creating a setting on-the-fly...
2020-07-19 19:40:46.931 T:1541736 DEBUG : requested setting (testex) was not found.