Question about two files, bug or ?

Suggestions and discussion of future versions
daerlnaxe
Member
Member
Posts: 12
Joined: Wed Nov 01, 2017 9:59 am
OS or Distro: ubuntu 16

Question about two files, bug or ?

Postby daerlnaxe » Mon Nov 13, 2017 6:48 pm

I will make a script for begining, it will pass from label to labelplus torrent if they have the same categorize name. But after have read the json files:
label.conf and labelplus.conf i found the same error, and i ask to myself if it come from me, if this normal and there is a different parser than the lib json to load it.

At the begin of the two files i found:

Code: Select all

{
  "file": 1,
  "format": 1
}{
  "labels": {


instead of

Code: Select all


{
  "file": 1,
  "format": 1,
  "labels": {




it's important to me to know because my script can't be exported if it's normal and i use the lib json to make the modifications.

Cas
Top Bloke
Top Bloke
Posts: 3466
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Question about two files, bug or ?

Postby Cas » Mon Nov 13, 2017 7:01 pm

The latter is incorrect. You should be using the deluge config parser.

daerlnaxe
Member
Member
Posts: 12
Joined: Wed Nov 01, 2017 9:59 am
OS or Distro: ubuntu 16

Re: Question about two files, bug or ?

Postby daerlnaxe » Mon Nov 13, 2017 7:56 pm

Thanks for your answer


Return to “Development”

Who is online

Users browsing this forum: No registered users and 6 guests