Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Optionally subscribe to sonarr notifications #13

Open
au5ton opened this issue Aug 3, 2018 · 1 comment
Open

Optionally subscribe to sonarr notifications #13

au5ton opened this issue Aug 3, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@au5ton
Copy link
Owner

au5ton commented Aug 3, 2018

No description provided.

@au5ton au5ton added the enhancement New feature or request label Aug 3, 2018
@au5ton au5ton added this to the v1.0.0 milestone Aug 3, 2018
@au5ton
Copy link
Owner Author

au5ton commented Aug 3, 2018

This is probably best approached using Sonarr webhooks to an HTTP server running within Hatsume.

An example of the webhook payload:

{
    "eventType": "Download",
    "series": {
        "id": 2,
        "title": "Gravity Falls",
        "path": "C:\\Temp\\sonarr\\Gravity Falls",
        "tvdbId": 259972
    },
    "episodes": [
        {
            "id": 67,
            "episodeNumber": 14,
            "seasonNumber": 2,
            "title": "The Stanchurian Candidate",
            "airDate": "2015-08-24",
            "airDateUtc": "2015-08-25T01:30:00Z",
            "quality": "HDTV-720p",
            "qualityVersion": 1
        }
    ],
    "episodeFile": {
        "id": 1181,
        "relativePath": "Season 02\\Gravity Falls - s02e14.mkv",
        "path": "C:\\path\\to\\file\\GravityFalls - s02e14.mkv",
        "quality": "HDTV-720p",
        "qualityVersion": 1
    },
    "isUpgrade": false
}

TVDb ids can be matched to Plex content, so a user can only request notifications for a specific show, if necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant