Skip to content
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

Make torrent category optional #224

Closed
wants to merge 1 commit into from
Closed

Make torrent category optional #224

wants to merge 1 commit into from

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
Copy link
Member Author

Wrong issue number in the branch name. Moved to #225

@josecelano josecelano closed this 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.

1 participant