Skip to content

nzbnab_parameters#3795

Merged
gazpachoking merged 7 commits intodevelopfrom
nzbnab_parameters
Jun 16, 2023
Merged

nzbnab_parameters#3795
gazpachoking merged 7 commits intodevelopfrom
nzbnab_parameters

Conversation

@ianstalk
Copy link
Copy Markdown
Contributor

Motivation for changes:

Fix issue where newznab plugin loses the API key and category on successive searches.

Detailed changes:

  • Stopped mutating config in favor of returning URL and parameters

Comment on lines -37 to -38
'url': {'type': 'string', 'format': 'url'},
'website': {'type': 'string', 'format': 'url'},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think better to keep the old properties, then add the oneOf up a level like:

oneOf: [{'required': 'url'}, {'required': 'website'}]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Didn't know you could do that.

@gazpachoking
Copy link
Copy Markdown
Member

Looks good to me! Thanks! That error on python 3.11 isn't to do with your change, I think it's a python 3.11.4 difference that just started showing up. Should go away on merge.

@gazpachoking gazpachoking merged commit 6870665 into develop Jun 16, 2023
@gazpachoking gazpachoking deleted the nzbnab_parameters branch August 30, 2023 01:17
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