Skip to content

Conversation

josecelano
Copy link
Member

The JSON response can now contain a null value for the category:

{
    "data": {
        "torrent_id": 1,
        "uploader": "josecelano",
        "info_hash": "E8564469C258B1373BC2D5749FB83B1BF83D68A0",
        "title": "Ubuntu",
        "description": null,
        "category": null,
        "upload_date": "2023-06-27 11:35:09",
        "file_size": 1261707713,
        "seeders": 0,
        "leechers": 0,
        "files": [
            {
                "path": [
                    "NNN.url"
                ],
                "length": 114,
                "md5sum": null
            },
            {
                "path": [
                    "XXX.url"
                ],
                "length": 121,
                "md5sum": null
            },
            {
                "path": [
                    "XXX.avi"
                ],
                "length": 1261707478,
                "md5sum": null
            }
        ],
        "trackers": [
            "udp://tracker:6969",
        ],
        "magnet_link": "magnet:?xt=urn:btih:E8564469C258B1373BC2D5749FB83B1BF83D68A0&dn=Ubuntu&tr=udp%3A%2F%2Ftracker%3A6969e",
        "tags": []
    }
}

The JSON response can now contain a `null` value for the `category`:

```json
{
    "data": {
        "torrent_id": 1,
        "uploader": "josecelano",
        "info_hash": "E8564469C258B1373BC2D5749FB83B1BF83D68A0",
        "title": "Ubuntu",
        "description": null,
        "category": null,
        "upload_date": "2023-06-27 11:35:09",
        "file_size": 1261707713,
        "seeders": 0,
        "leechers": 0,
        "files": [
            {
                "path": [
                    "NNN.url"
                ],
                "length": 114,
                "md5sum": null
            },
            {
                "path": [
                    "XXX.url"
                ],
                "length": 121,
                "md5sum": null
            },
            {
                "path": [
                    "XXX.avi"
                ],
                "length": 1261707478,
                "md5sum": null
            }
        ],
        "trackers": [
            "udp://tracker:6969",
        ],
        "magnet_link": "magnet:?xt=urn:btih:E8564469C258B1373BC2D5749FB83B1BF83D68A0&dn=Ubuntu&tr=udp%3A%2F%2Ftracker%3A6969e",
        "tags": []
    }
}
```
@josecelano josecelano marked this pull request as ready for review June 27, 2023 13:02
@josecelano josecelano merged commit 9133910 into torrust:develop Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Do not remove torrents when their categories are removed and allow torrents without categories

1 participant