Skip to content

Commit d4ffa66

Browse files
p0psiclesmedariox
andauthored
Release/release 0.5.18 (#9874)
* yarn dev * update changelog * Fix parsing specials. (season 0, ep x) (#9812) * Fix store negative value for search delay (#9822) * Improve explanation * Fix search delay negative value * Add basic exception handling (#9850) * Add basic exception handling * Add some more error handling * Add ability to clean cached (automatic added) scene exceptions. (#9859) * Add ability to clean cached (automatic added) scene exceptions. * added changelog * lint css * Add ability to add custom newznab or torznab catIds through UI. (#9857) * Add ability to add custom newznab or torznab catIds through UI. * Remove unused code. * Reduce log censoring * Only allow numbers * Only allow > 1. * update changelog * linting * Update version / changelog * yarn build * yarn build Co-authored-by: Dario <medariox@users.noreply.github.com>
1 parent fbd43ad commit d4ffa66

18 files changed

+300
-192
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.5.18 (14-09-2021)
2+
3+
#### Improvements
4+
- Add the options to manage/searches page to clean automatic added scene exceptions from cache. ([9859](https://github.com/pymedusa/Medusa/pull/9859))
5+
- Add custom newznab/torznab category id's through UI. ([9857](https://github.com/pymedusa/Medusa/pull/9857))
6+
7+
#### Fixes
8+
- Fix prowlarr provider id's being obfuscated in logs because of a bad log level. ([9857](https://github.com/pymedusa/Medusa/pull/9857))
9+
- Fix postprocessing specials. ([9812](https://github.com/pymedusa/Medusa/pull/9812))
10+
- Fix storing a negative value in the UI as a search delay value ([9822](https://github.com/pymedusa/Medusa/pull/9822))
11+
12+
-----
13+
114
## 0.5.17 (16-08-2021)
215

316
#### Fixes

medusa/__main__.py

+6-10
Original file line numberDiff line numberDiff line change
@@ -1092,9 +1092,6 @@ def initialize(self, console_logging=True):
10921092
app.TORZNAB_PROVIDERS = check_setting_list(app.CFG, 'Torznab', 'torznab_providers')
10931093
app.torznab_providers_list = TorznabProvider.get_providers_list(app.TORZNAB_PROVIDERS)
10941094

1095-
app.PROWLARR_PROVIDERS = check_setting_list(app.CFG, 'Prowlarr', 'providers')
1096-
# TODO implement ProwlarrProvider.get_providers_list(app.PROWLARR_PROVIDERS)
1097-
10981095
all_providers = providers.sorted_provider_list()
10991096

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

11421139
if isinstance(provider, TorznabProvider):
1143-
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='low')
1140+
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='normal')
11441141
load_provider_setting(app.CFG, provider, 'list', 'cat_ids', '', split_value=',')
11451142
load_provider_setting(app.CFG, provider, 'list', 'cap_tv_search', '', split_value=',')
1146-
load_provider_setting(app.CFG, provider, 'string', 'manager', '', censor_log='low')
1147-
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '', censor_log='low')
1143+
load_provider_setting(app.CFG, provider, 'string', 'manager', '')
1144+
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '')
11481145

11491146
if isinstance(provider, NewznabProvider):
11501147
# non configurable
11511148
if not provider.default:
1152-
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='low')
1149+
load_provider_setting(app.CFG, provider, 'string', 'url', '', censor_log='normal')
11531150
load_provider_setting(app.CFG, provider, 'bool', 'needs_auth', 1)
11541151
# configurable
11551152
load_provider_setting(app.CFG, provider, 'list', 'cat_ids', '', split_value=',')
1156-
load_provider_setting(app.CFG, provider, 'string', 'manager', '', censor_log='low')
1157-
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '', censor_log='low')
1153+
load_provider_setting(app.CFG, provider, 'string', 'manager', '')
1154+
load_provider_setting(app.CFG, provider, 'string', 'id_manager', '')
11581155

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

20492046
new_config['Prowlarr'] = {}
2050-
new_config['Prowlarr']['providers'] = app.PROWLARR_PROVIDERS
20512047
new_config['Prowlarr']['url'] = app.PROWLARR_URL
20522048
new_config['Prowlarr']['apikey'] = app.PROWLARR_APIKEY
20532049

medusa/app.py

-1
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,6 @@ def __init__(self):
675675
# Prowlarr section.
676676
self.PROWLARR_URL = ''
677677
self.PROWLARR_APIKEY = ''
678-
self.PROWLARR_PROVIDERS = []
679678

680679
self.TORRENTRSS_PROVIDERS = []
681680

medusa/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
log.logger.addHandler(logging.NullHandler())
4040

4141
INSTANCE_ID = text_type(uuid.uuid1())
42-
VERSION = '0.5.17'
42+
VERSION = '0.5.18'
4343
USER_AGENT = 'Medusa/{version} ({system}; {release}; {instance})'.format(
4444
version=VERSION, system=platform.system(), release=platform.release(),
4545
instance=INSTANCE_ID)

medusa/name_parser/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def _parse_string(self, name):
326326
elif result.series.is_anime or result.is_anime:
327327
new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_anime(result)
328328

329-
elif result.season_number:
329+
elif result.season_number is not None:
330330
new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_series(result)
331331

332332
else:

0 commit comments

Comments
 (0)