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

Add Calendar methods: sonarr & readarr #71

Merged
merged 8 commits into from
Oct 11, 2022
Merged

Conversation

davidnewhall
Copy link
Contributor

@davidnewhall davidnewhall commented Oct 8, 2022

Closes half of #66. I'm only going to do Sonarr and Readarr in this 1 PR to keep it smaller. Will make another one for the other two apps.

  • Sonarr
  • Readarr

Cleans up Book, Author, and Episode types. Probably easier to look at without white-space changes: https://github.com/golift/starr/pull/71/files?w=1

}

// BookAuthor of a Book.
type BookAuthor struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed and replaced by Book.

Images []*starr.Image `json:"images"` // this is dumb too
ForeignEditionID string `json:"foreignEditionId"` // GRID ID
Monitored bool `json:"monitored"` // true
ManualAdd bool `json:"manualAdd"` // true
}

// AddBookOutput is returned when a book is added.
type AddBookOutput struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed and replaced by Book.

HasFile bool `json:"hasFile"`
Monitored bool `json:"monitored"`
Images []*starr.Image `json:"images"`
Series *Series `json:"series"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how this was ever missed... maybe it was added later?

@davidnewhall davidnewhall marked this pull request as ready for review October 8, 2022 07:08
@davidnewhall davidnewhall requested a review from Fuochi October 8, 2022 07:08
@davidnewhall davidnewhall changed the title Add Calendar methods Add Calendar methods: sonarr & readarr Oct 8, 2022
@davidnewhall
Copy link
Contributor Author

Tested this more and found that the pointers were pointless. Removed them. Merged master. Caught a mistake in the last PR and fixed that. Good to go now.

@davidnewhall davidnewhall merged commit d22b22c into master Oct 11, 2022
@davidnewhall davidnewhall deleted the dn2_calendars branch October 11, 2022 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants