Repository: pymedusa/Medusa

Issue:
[APP SUBMITTED]: TypeError: '<' not supported between instances of 'str' and 'int'

### INFO
**Python Version**: `3.6.7 (default, Oct 21 2018, 08:08:16) [GCC 8.2.0]`
**Operating System**: `Linux-4.9.35-v7+-armv7l-with-debian-buster-sid`
**Locale**: `UTF-8`
**Branch**: [feature/py3_2](../tree/feature/py3_2)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@903305d60f115a9ecc181276af31790616328925
**Link to Log**: https://gist.github.com/777264ee0650c2e07495625e568626b0
### ERROR
<pre>
2018-12-11 16:31:00 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [BTN] :: [903305d] DailySearchQueueItem Exception, error: '<' not supported between instances of 'str' and 'int'
Traceback (most recent call last):
  File "/home/pi/Medusa/<a href="../blob/903305d60f115a9ecc181276af31790616328925/medusa/search/queue.py#L262">medusa/search/queue.py</a>", line 262, in run
    found_results = search_for_needed_episodes(force=self.force)
  File "/home/pi/Medusa/<a href="../blob/903305d60f115a9ecc181276af31790616328925/medusa/search/core.py#L523">medusa/search/core.py</a>", line 523, in search_for_needed_episodes
    cur_provider.cache.update_cache()
  File "/home/pi/Medusa/<a href="../blob/903305d60f115a9ecc181276af31790616328925/medusa/tv/cache.py#L206">medusa/tv/cache.py</a>", line 206, in update_cache
    data = self._get_rss_data()
  File "/home/pi/Medusa/<a href="../blob/903305d60f115a9ecc181276af31790616328925/medusa/tv/cache.py#L189">medusa/tv/cache.py</a>", line 189, in _get_rss_data
    return {'entries': self.provider.search(self.search_params)}
  File "/home/pi/Medusa/<a href="../blob/903305d60f115a9ecc181276af31790616328925/medusa/providers/torrent/json/btn.py#L122">medusa/providers/torrent/json/btn.py</a>", line 122, in search
    results += self.parse(response.get('torrents', {}), mode)
  File "/home/pi/Medusa/<a href="../blob/903305d60f115a9ecc181276af31790616328925/medusa/providers/torrent/json/btn.py#L148">medusa/providers/torrent/json/btn.py</a>", line 148, in parse
    if seeders < min(self.minseed, 1):
TypeError: '<' not supported between instances of 'str' and 'int'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators



Discussion:
Fixed in the branch, please update.

### INFO
**Python Version**: `3.7.3 (default, Mar 27 2019, 09:23:15) [Clang 10.0.1 (clang-1001.0.46.3)]`
**Operating System**: `Darwin-18.5.0-x86_64-i386-64bit`
**Locale**: `unknown`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@9cdb57a32df1a8b1520b8a7dd732b6f01498483e
**Link to Log**: https://gist.github.com/3eb1113f84984b04fba4418786bab44c
### ERROR
<pre>
2019-04-07 13:01:57 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa-Pantsu] :: [9cdb57a] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/search/queue.py#L263">medusa/search/queue.py</a>", line 263, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/search/core.py#L524">medusa/search/core.py</a>", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/tv/cache.py#L234">medusa/tv/cache.py</a>", line 234, in update_cache
    result = self._parse_item(item)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/tv/cache.py#L313">medusa/tv/cache.py</a>", line 313, in _parse_item
    leechers, size, pubdate)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/tv/cache.py#L383">medusa/tv/cache.py</a>", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/name_parser/parser.py#L370">medusa/name_parser/parser.py</a>", line 370, in parse
    result = self._parse_string(name)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/name_parser/parser.py#L277">medusa/name_parser/parser.py</a>", line 277, in _parse_string
    result = self.to_parse_result(name, guess)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/name_parser/parser.py#L436">medusa/name_parser/parser.py</a>", line 436, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/helpers/__init__.py#L1655">medusa/helpers/__init__.py</a>", line 1655, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

So the guess returns a mix of int and strings? Where we would expect to only have ints there? Numbers of absolute episodes? Bug in guessit? 
Need debug log to see what it tries to parse? 

### INFO
**Python Version**: `3.7.4 (default, Aug 21 2019, 16:01:23) [GCC 8.3.0]`
**Operating System**: `Linux-4.9.35-v7+-armv7l-with-debian-bullseye-sid`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@28b1c7823e970a48ef71b7e5c224a105d095307e
**Link to Log**: https://gist.github.com/2bb58b0243edbb5c6d85a96d5db41d4e
### ERROR
<pre>
2019-09-22 14:16:37 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Drunkenslug] :: [28b1c78] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/search/queue.py#L266">medusa/search/queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/search/core.py#L524">medusa/search/core.py</a>", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/tv/cache.py#L234">medusa/tv/cache.py</a>", line 234, in update_cache
    result = self._parse_item(item)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/tv/cache.py#L313">medusa/tv/cache.py</a>", line 313, in _parse_item
    leechers, size, pubdate)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/tv/cache.py#L383">medusa/tv/cache.py</a>", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/name_parser/parser.py#L386">medusa/name_parser/parser.py</a>", line 386, in parse
    result = self._parse_string(name)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/name_parser/parser.py#L293">medusa/name_parser/parser.py</a>", line 293, in _parse_string
    result = self.to_parse_result(name, guess)
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/name_parser/parser.py#L452">medusa/name_parser/parser.py</a>", line 452, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "/home/pi/Medusa/<a href="../blob/28b1c7823e970a48ef71b7e5c224a105d095307e/medusa/helpers/__init__.py#L1690">medusa/helpers/__init__.py</a>", line 1690, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.18362-SP0`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@baad1e5af59d7f29606c1fed1c110af1424bb117
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-09-22 09:04:16 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [NZB.su] :: [baad1e5] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/queue.py#L266">medusa\search\queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/core.py#L524">medusa\search\core.py</a>", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L234">medusa\tv\cache.py</a>", line 234, in update_cache
    result = self._parse_item(item)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L313">medusa\tv\cache.py</a>", line 313, in _parse_item
    leechers, size, pubdate)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L383">medusa\tv\cache.py</a>", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L386">medusa\name_parser\parser.py</a>", line 386, in parse
    result = self._parse_string(name)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L293">medusa\name_parser\parser.py</a>", line 293, in _parse_string
    result = self.to_parse_result(name, guess)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L452">medusa\name_parser\parser.py</a>", line 452, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/helpers/__init__.py#L1690">medusa\helpers\__init__.py</a>", line 1690, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.18362-SP0`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@baad1e5af59d7f29606c1fed1c110af1424bb117
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-09-22 08:04:35 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Drunken Slug] :: [baad1e5] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/queue.py#L266">medusa\search\queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/core.py#L524">medusa\search\core.py</a>", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L234">medusa\tv\cache.py</a>", line 234, in update_cache
    result = self._parse_item(item)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L313">medusa\tv\cache.py</a>", line 313, in _parse_item
    leechers, size, pubdate)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L383">medusa\tv\cache.py</a>", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L386">medusa\name_parser\parser.py</a>", line 386, in parse
    result = self._parse_string(name)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L293">medusa\name_parser\parser.py</a>", line 293, in _parse_string
    result = self.to_parse_result(name, guess)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L452">medusa\name_parser\parser.py</a>", line 452, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/helpers/__init__.py#L1690">medusa\helpers\__init__.py</a>", line 1690, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Hmm a number of newznab providers. Coincidence? I'll check it out

### INFO
**Python Version**: `3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.18362-SP0`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@baad1e5af59d7f29606c1fed1c110af1424bb117
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-09-22 10:55:45 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [OZnzb] :: [baad1e5] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/queue.py#L266">medusa\search\queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/core.py#L524">medusa\search\core.py</a>", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L234">medusa\tv\cache.py</a>", line 234, in update_cache
    result = self._parse_item(item)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L313">medusa\tv\cache.py</a>", line 313, in _parse_item
    leechers, size, pubdate)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L383">medusa\tv\cache.py</a>", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L386">medusa\name_parser\parser.py</a>", line 386, in parse
    result = self._parse_string(name)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L293">medusa\name_parser\parser.py</a>", line 293, in _parse_string
    result = self.to_parse_result(name, guess)
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L452">medusa\name_parser\parser.py</a>", line 452, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "C:\Program Files\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/helpers/__init__.py#L1690">medusa\helpers\__init__.py</a>", line 1690, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]`
**Operating System**: `Windows-7-6.1.7601-SP1`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@baad1e5af59d7f29606c1fed1c110af1424bb117
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-09-22 16:10:00 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/queue.py#L266">medusa\search\queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/search/core.py#L524">medusa\search\core.py</a>", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L234">medusa\tv\cache.py</a>", line 234, in update_cache
    result = self._parse_item(item)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L313">medusa\tv\cache.py</a>", line 313, in _parse_item
    leechers, size, pubdate)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/tv/cache.py#L383">medusa\tv\cache.py</a>", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L386">medusa\name_parser\parser.py</a>", line 386, in parse
    result = self._parse_string(name)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L293">medusa\name_parser\parser.py</a>", line 293, in _parse_string
    result = self.to_parse_result(name, guess)
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/name_parser/parser.py#L452">medusa\name_parser\parser.py</a>", line 452, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "C:\Medusa\Medusa\<a href="../blob/baad1e5af59d7f29606c1fed1c110af1424bb117/medusa/helpers/__init__.py#L1690">medusa\helpers\__init__.py</a>", line 1690, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

It's a show release that is causing this. Would be great if someone could figure out which one.
Here's a few log entries just before this error (note that neither "_Hunter Street_," nor "_UFC Fight Night_" are on my show list!):
```
2019-09-22 12:39:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Hunter.Street.S03E03.1080p.AMZN.CBR.WEB-DL.DDP2.0.H.264-TBBT to a series in your database. Parser result: title: Hunter Street, season: 3, episode: [3], screen_size: 1080p, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 2.0, video_codec: H.264, release_group: TBBT, type: episode, parsing_time: 0.13000726699829102, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.13300752639770508
2019-09-22 12:39:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match 7d25de8fe8cf41dc8957da7720b4e7d6.part02 to a series in your database. Parser result: uuid: 7d25de8fe8cf41dc8957da7720b4e7d6, episode: [2], type: episode, parsing_time: 0.1280069351196289, season: None, absolute_episode: [], quality: Unknown, total_time: 0.1280069351196289
2019-09-22 12:39:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match 1a315e0c14414bf499de275118e59e24.part01 to a series in your database. Parser result: uuid: 1a315e0c14414bf499de275118e59e24, episode: [1], type: episode, parsing_time: 0.17100977897644043, season: None, absolute_episode: [], quality: Unknown, total_time: 0.17100977897644043
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match UFC.Fight.Night.158.720p.WEB-DL.H264.Fight-BB to a series in your database. Parser result: title: UFC Fight Night, season: 1, episode: [58], screen_size: 720p, source: Web, video_codec: H.264, release_group: Fight, type: episode, parsing_time: 0.09400534629821777, absolute_episode: [], quality: 720p WEB-DL, total_time: 0.09600567817687988
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.9 to a series in your database. Parser result: episode: [], absolute_episode: [9], type: episode, parsing_time: 0.0500025749206543, season: None, quality: Unknown, total_time: 0.0500025749206543
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.8 to a series in your database. Parser result: episode: [], absolute_episode: [8], type: episode, parsing_time: 0.05100297927856445, season: None, quality: Unknown, total_time: 0.05100297927856445
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.7 to a series in your database. Parser result: episode: [], absolute_episode: [7], type: episode, parsing_time: 0.05100297927856445, season: None, quality: Unknown, total_time: 0.05100297927856445
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.6 to a series in your database. Parser result: episode: [], absolute_episode: [6], type: episode, parsing_time: 0.05100274085998535, season: None, quality: Unknown, total_time: 0.05100274085998535
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.5 to a series in your database. Parser result: episode: [], absolute_episode: [5], type: episode, parsing_time: 0.04900312423706055, season: None, quality: Unknown, total_time: 0.04900312423706055
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.4 to a series in your database. Parser result: episode: [], absolute_episode: [4], type: episode, parsing_time: 0.0500030517578125, season: None, quality: Unknown, total_time: 0.0500030517578125
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.3 to a series in your database. Parser result: episode: [], absolute_episode: [3], type: episode, parsing_time: 0.049002647399902344, season: None, quality: Unknown, total_time: 0.049002647399902344
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.2 to a series in your database. Parser result: episode: [], absolute_episode: [2], type: episode, parsing_time: 0.054003238677978516, season: None, quality: Unknown, total_time: 0.05500316619873047
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.12 to a series in your database. Parser result: episode: [], absolute_episode: [12], type: episode, parsing_time: 0.05600309371948242, season: None, quality: Unknown, total_time: 0.05600309371948242
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.11 to a series in your database. Parser result: episode: [], absolute_episode: [11], type: episode, parsing_time: 0.054003238677978516, season: None, quality: Unknown, total_time: 0.054003238677978516
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.10 to a series in your database. Parser result: episode: [], absolute_episode: [10], type: episode, parsing_time: 0.05300307273864746, season: None, quality: Unknown, total_time: 0.05300307273864746
2019-09-22 12:39:36 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] Unable to match Ep.1 to a series in your database. Parser result: episode: [], absolute_episode: [1], type: episode, parsing_time: 0.051003217697143555, season: None, quality: Unknown, total_time: 0.051003217697143555
2019-09-22 12:39:36 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [ozNZB] :: [baad1e5] DailySearchQueueItem Exception, error: '<' not supported between instances of 'int' and 'str'
Traceback (most recent call last):
  File "C:\Medusa\Medusa\medusa\search\queue.py", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "C:\Medusa\Medusa\medusa\search\core.py", line 524, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "C:\Medusa\Medusa\medusa\tv\cache.py", line 234, in update_cache
    result = self._parse_item(item)
  File "C:\Medusa\Medusa\medusa\tv\cache.py", line 313, in _parse_item
    leechers, size, pubdate)
  File "C:\Medusa\Medusa\medusa\tv\cache.py", line 383, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "C:\Medusa\Medusa\medusa\name_parser\parser.py", line 386, in parse
    result = self._parse_string(name)
  File "C:\Medusa\Medusa\medusa\name_parser\parser.py", line 293, in _parse_string
    result = self.to_parse_result(name, guess)
  File "C:\Medusa\Medusa\medusa\name_parser\parser.py", line 452, in to_parse_result
    ab_episode_numbers=helpers.ensure_list(guess.get('absolute_episode')),
  File "C:\Medusa\Medusa\medusa\helpers\__init__.py", line 1690, in ensure_list
    return sorted(value) if isinstance(value, list) else [value] if value is not None else []
TypeError: '<' not supported between instances of 'int' and 'str'
```
Hope this helps...
@medariox it's parsing bogus titles. But it should still parse the absolute numbers as integers not strings. Is that a guessit bug?

This is really weird. I guess you could only get this error, when `guess.get('absolute_episode')` would return something like `['1', 1]`, which I don't see happening from the logs.

I also get the error myself, with the release name: `Unable to match Mobile.Suit.Gundam.The.Origin;.Advent.Of.The.Red.Comet.-.12.(720p.FUNI.WEB-DL.Dual.Audio.-KS-) to a series in your databas
e. Parser result: title: Mobile Suit Gundam The Origin; Advent Of The Red Comet, episode: [], absolute_episode: [12], screen_size: 720p, source: Web, other: Dual Audio, release_group: KS, type: episode, parsing_time:
 0.18333888053894043, total_time: 0.18710732460021973, season: None, quality: 720p WEB-DL
`
But i'm not sure this is the release name. So i'm going to add some debug logging.
Pretty strange. How can you get that with only one abs episode to sort? 
### INFO
**Python Version**: `3.7.6 (default, Dec 30 2019, 19:38:26) [Clang 11.0.0 (clang-1100.0.33.16)]`
**Operating System**: `Darwin-19.2.0-x86_64-i386-64bit`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@1d9be6339e8892bb07aed16082a9428cd9da5fba
**Link to Log**: https://gist.github.com/41fab6b28d7bc78e98d15abc350838ae
### ERROR
<pre>
2020-01-22 19:03:18 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa.si] :: [1d9be63] DailySearchQueueItem Exception, error: TypeError("'<' not supported between instances of 'NoneType' and 'int'")
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/search/queue.py#L266">medusa/search/queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/search/core.py#L526">medusa/search/core.py</a>", line 526, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/tv/cache.py#L244">medusa/tv/cache.py</a>", line 244, in update_cache
    parsed_result = NameParser().parse(item['title'])
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/name_parser/parser.py#L388">medusa/name_parser/parser.py</a>", line 388, in parse
    result = self._parse_string(name)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/name_parser/parser.py#L335">medusa/name_parser/parser.py</a>", line 335, in _parse_string
    new_absolute_numbers = sorted(set(new_absolute_numbers))
TypeError: '<' not supported between instances of 'NoneType' and 'int'
</pre>
---

I have nyaa provider going through Jackett

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.6 (default, Dec 30 2019, 19:38:26) [Clang 11.0.0 (clang-1100.0.33.16)]`
**Operating System**: `Darwin-19.2.0-x86_64-i386-64bit`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@1d9be6339e8892bb07aed16082a9428cd9da5fba
**Link to Log**: https://gist.github.com/0f17a270c509bd64d0c34ed2bd72d5cc
### ERROR
<pre>
2020-01-22 19:23:13 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa.si] :: [1d9be63] DailySearchQueueItem Exception, error: TypeError("'<' not supported between instances of 'NoneType' and 'int'")
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/search/queue.py#L266">medusa/search/queue.py</a>", line 266, in run
    found_results = search_for_needed_episodes(self.scheduler_start_time, force=self.force)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/search/core.py#L526">medusa/search/core.py</a>", line 526, in search_for_needed_episodes
    cur_provider.cache.update_cache(scheduler_start_time)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/tv/cache.py#L244">medusa/tv/cache.py</a>", line 244, in update_cache
    parsed_result = NameParser().parse(item['title'])
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/name_parser/parser.py#L388">medusa/name_parser/parser.py</a>", line 388, in parse
    result = self._parse_string(name)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/1d9be6339e8892bb07aed16082a9428cd9da5fba/medusa/name_parser/parser.py#L335">medusa/name_parser/parser.py</a>", line 335, in _parse_string
    new_absolute_numbers = sorted(set(new_absolute_numbers))
TypeError: '<' not supported between instances of 'NoneType' and 'int'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


Resolving patch:
diff --git a/medusa/scene_numbering.py b/medusa/scene_numbering.py
--- a/medusa/scene_numbering.py
+++ b/medusa/scene_numbering.py
@@ -152,9 +152,10 @@ def get_indexer_absolute_numbering(series_obj, scene_episode, fallback_to_xem=Tr
     """
     if scene_season is not None:
         # Get the real absolute number
-        scene_episode = get_absolute_number_from_season_and_episode(
+        real_episode = get_absolute_number_from_season_and_episode(
             series_obj, scene_season, scene_episode
         )
+        scene_episode = real_episode or scene_episode
 
     main_db_con = db.DBConnection()
     rows = main_db_con.select(


Test patch: