-
Notifications
You must be signed in to change notification settings - Fork 276
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 more fields to config including patch #4404
Conversation
medusa/server/api/v2/config.py
Outdated
'torrents.verifySSL': BooleanField(app, 'TORRENT_VERIFY_CERT'), | ||
'nzb.enabled': BooleanField(app, 'USE_NZBS'), | ||
'nzb.username': StringField(app, 'NZBGET_USERNAME'), | ||
'nzb.password': StringField(app, 'NZBGET_PASSWORD'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two should be removed (duplicates of 'nzb.nzbget.username'
and 'nzb.nzbget.password'
)
medusa/server/api/v2/config.py
Outdated
section_data['torrents']['seedTime'] = app.TORRENT_SEED_TIME | ||
section_data['torrents']['username'] = app.TORRENT_USERNAME | ||
section_data['torrents']['verifySSL'] = bool(app.TORRENT_VERIFY_CERT) | ||
|
||
section_data['nzb'] = NonEmptyDict() | ||
section_data['nzb']['enabled'] = bool(app.USE_NZBS) | ||
section_data['nzb']['username'] = app.NZBGET_USERNAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same, duplicate of: section_data['nzb']['nzbget']['username']
medusa/server/api/v2/config.py
Outdated
# app.NZBGET_CATEGORY_ANIME_BACKLOG | ||
section_data['nzb']['host'] = app.NZBGET_HOST | ||
section_data['nzb']['priority'] = app.NZBGET_PRIORITY | ||
# section_data['nzb']['password'] = app.NZBGET_PASSWORD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of section_data['nzb']['nzbget']['password']
method: null, | ||
paused: null, | ||
rpcurl: null, | ||
seedTime: null, | ||
verifySSL: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to be missing the username
property
categoryBacklog: null, | ||
categoryAnimeBacklog: null | ||
}, | ||
username: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this property
priority: null, | ||
useHttps: null, | ||
username: null | ||
}, | ||
password: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this property.
forced: null, | ||
categoryAnime: null, | ||
categoryBacklog: null, | ||
categoryAnimeBacklog: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be missing:
username
host
758d10d
to
46c2cff
Compare
46c2cff
to
3370ca5
Compare
This comment has been minimized.
This comment has been minimized.
dredd/api-description.yml
Outdated
@@ -1278,8 +1278,8 @@ definitions: | |||
type: string | |||
host: | |||
type: string | |||
password: | |||
type: string | |||
# password: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to keep these commented?
medusa/server/api/v2/config.py
Outdated
section_data['kodi']['update']['onlyFirst'] = bool(app.KODI_UPDATE_ONLYFIRST) | ||
section_data['kodi']['host'] = app.KODI_HOST | ||
section_data['kodi']['username'] = app.KODI_USERNAME | ||
# section_data['kodi']['password'] = app.KODI_PASSWORD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imo we can leave these out.
Can you remove it, in stead of commenting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't mind leaving out the passwords. But then please remove the commented lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left the comments I could find out if we needed them removed or not.
@sharkykh @p0psicles
From Slack: