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

Release/release 0.5.18 #9874

Merged
merged 11 commits into from
Sep 14, 2021
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 0.5.18 (14-09-2021)

#### Improvements
- Add the options to manage/searches page to clean automatic added scene exceptions from cache. ([9859](https://github.com/pymedusa/Medusa/pull/9859))
- Add custom newznab/torznab category id's through UI. ([9857](https://github.com/pymedusa/Medusa/pull/9857))

#### Fixes
- Fix prowlarr provider id's being obfuscated in logs because of a bad log level. ([9857](https://github.com/pymedusa/Medusa/pull/9857))
- Fix postprocessing specials. ([9812](https://github.com/pymedusa/Medusa/pull/9812))
- Fix storing a negative value in the UI as a search delay value ([9822](https://github.com/pymedusa/Medusa/pull/9822))

-----

## 0.5.17 (16-08-2021)

#### Fixes
Expand Down
16 changes: 6 additions & 10 deletions medusa/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,6 @@ def initialize(self, console_logging=True):
app.TORZNAB_PROVIDERS = check_setting_list(app.CFG, 'Torznab', 'torznab_providers')
app.torznab_providers_list = TorznabProvider.get_providers_list(app.TORZNAB_PROVIDERS)

app.PROWLARR_PROVIDERS = check_setting_list(app.CFG, 'Prowlarr', 'providers')
# TODO implement ProwlarrProvider.get_providers_list(app.PROWLARR_PROVIDERS)

all_providers = providers.sorted_provider_list()

# dynamically load provider settings
Expand Down Expand Up @@ -1140,21 +1137,21 @@ def initialize(self, console_logging=True):
load_provider_setting(app.CFG, provider, 'string', 'title_tag', '')

if isinstance(provider, TorznabProvider):
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='low')
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='normal')
load_provider_setting(app.CFG, provider, 'list', 'cat_ids', '', split_value=',')
load_provider_setting(app.CFG, provider, 'list', 'cap_tv_search', '', split_value=',')
load_provider_setting(app.CFG, provider, 'string', 'manager', '', censor_log='low')
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '', censor_log='low')
load_provider_setting(app.CFG, provider, 'string', 'manager', '')
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '')

if isinstance(provider, NewznabProvider):
# non configurable
if not provider.default:
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='low')
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='normal')
load_provider_setting(app.CFG, provider, 'bool', 'needs_auth', 1)
# configurable
load_provider_setting(app.CFG, provider, 'list', 'cat_ids', '', split_value=',')
load_provider_setting(app.CFG, provider, 'string', 'manager', '', censor_log='low')
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '', censor_log='low')
load_provider_setting(app.CFG, provider, 'string', 'manager', '')
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '')

if not os.path.isfile(app.CONFIG_FILE):
logger.debug(u'Unable to find {config!r}, all settings will be default!', config=app.CONFIG_FILE)
Expand Down Expand Up @@ -2047,7 +2044,6 @@ def save_config():
new_config['Torznab']['torznab_providers'] = app.TORZNAB_PROVIDERS

new_config['Prowlarr'] = {}
new_config['Prowlarr']['providers'] = app.PROWLARR_PROVIDERS
new_config['Prowlarr']['url'] = app.PROWLARR_URL
new_config['Prowlarr']['apikey'] = app.PROWLARR_APIKEY

Expand Down
1 change: 0 additions & 1 deletion medusa/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,6 @@ def __init__(self):
# Prowlarr section.
self.PROWLARR_URL = ''
self.PROWLARR_APIKEY = ''
self.PROWLARR_PROVIDERS = []

self.TORRENTRSS_PROVIDERS = []

Expand Down
2 changes: 1 addition & 1 deletion medusa/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
log.logger.addHandler(logging.NullHandler())

INSTANCE_ID = text_type(uuid.uuid1())
VERSION = '0.5.17'
VERSION = '0.5.18'
USER_AGENT = 'Medusa/{version} ({system}; {release}; {instance})'.format(
version=VERSION, system=platform.system(), release=platform.release(),
instance=INSTANCE_ID)
Expand Down
2 changes: 1 addition & 1 deletion medusa/name_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _parse_string(self, name):
elif result.series.is_anime or result.is_anime:
new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_anime(result)

elif result.season_number:
elif result.season_number is not None:
new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_series(result)

else:
Expand Down
Loading