Skip to content

[FEAT] Support Transmission 5 format #322

@asardaes

Description

@asardaes

Is this a new feature request?

  • I have searched the existing issues

Wanted change

The code assumes rpc-port will be present in the settings JSON:

PORT=$(jq '.["rpc-port"]' /config/settings.json)

But that will change in v5, and users can already opt in by setting TR_SAVE_VERSION_FORMAT=5

Reason for change

As seen in transmission/transmission#7108, they want to align on snake case.

Proposed code change

I think using this would support both versions:

PORT=$(jq '.["rpc-port"] // .["rpc_port"]' /config/settings.json)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions