Repository: pymedusa/Medusa

Issue:
[APP SUBMITTED]: InterfaceError: Error binding parameter 8 - probably unsupported type.

### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/5d28a55797df57d1147e21c5c7bd4565
### ERROR
<pre>
2018-10-16 07:55:00 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [4614efc] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

[APP SUBMITTED]: TypeError: int() argument must be a string or a number, not 'NoneType'
### INFO
**Python Version**: `2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2]`
**Operating System**: `Linux-4.9.29-10-osmc-armv7l-with-debian-8.9`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.8`
**Commit**: pymedusa/Medusa@1a8dc66c7ec9231be0d3444710e476437c9ae1c8
**Link to Log**: https://gist.github.com/965957a628ee04b1d9c8ae8564ad3daf
### ERROR
<pre>
2017-12-11 21:30:50 ERROR    Thread-19 :: [1a8dc66] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/home/**********/medusa/medusa/server/web/core/base.py", line 263, in async_call
    result = function(**kwargs)
  File "/home/**********/medusa/medusa/server/web/home/post_process.py", line 50, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 146, in process
    ignore_subs=ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 335, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/home/**********/medusa/medusa/process_tv.py", line 536, in process_media
    self.result = processor.process()
  File "/home/**********/medusa/medusa/post_processor.py", line 1068, in process
    if int(ep_obj.season) > int(max_season[0][0]):
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators
        


Discussion:

### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/70b48dc69c9cce71e5d499129edb1d47
### ERROR
<pre>
2018-10-20 07:38:39 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [4614efc] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/cc4afcb7cc4b781a8c001494be3733e7
### ERROR
<pre>
2018-10-21 22:42:12 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [4614efc] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/202ea4f20fd8618d3694134aff6ec824
### ERROR
<pre>
2018-10-23 08:24:39 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [4614efc] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/0f6dca5830d3c90facd3483358d4717c
### ERROR
<pre>
2018-10-23 21:36:26 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [4614efc] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]`
**Operating System**: `Linux-4.9.0-4-amd64-x86_64-with-debian-9.2`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa
**Link to Log**: https://gist.github.com/d5d2d6e3d734f35f0b28c0a39b1b41ee
### ERROR
<pre>
2018-11-12 03:03:56 ERROR    SHOWQUEUE-REFRESH :: [49c0e6c] DB error: InterfaceError('Error binding parameter 0 - probably unsupported type.',)
Traceback (most recent call last):
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/db.py#L115">medusa/db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 0 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]`
**Operating System**: `Linux-4.9.0-4-amd64-x86_64-with-debian-9.2`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa
**Link to Log**: https://gist.github.com/653d4d6f23b44e04363d38151b1868fb
### ERROR
<pre>
2018-11-12 03:03:56 ERROR    SHOWQUEUE-REFRESH :: [49c0e6c] 262954: Error while refreshing show JoJo's Bizarre Adventure (2012). Error: Error binding parameter 0 - probably unsupported type.
Traceback (most recent call last):
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/show_queue.py#L688">medusa/show_queue.py</a>", line 688, in run
    self.show.refresh_dir()
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/tv/series.py#L1741">medusa/tv/series.py</a>", line 1741, in refresh_dir
    self.load_episodes_from_dir()
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/tv/series.py#L1006">medusa/tv/series.py</a>", line 1006, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/tv/series.py#L1309">medusa/tv/series.py</a>", line 1309, in make_ep_from_file
    'normal', 'anime')[self.is_anime]).parse(filepath)
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/name_parser/parser.py#L367">medusa/name_parser/parser.py</a>", line 367, in parse
    result = self._parse_string(name)
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/name_parser/parser.py#L298">medusa/name_parser/parser.py</a>", line 298, in _parse_string
    new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_anime(result)
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/name_parser/parser.py#L189">medusa/name_parser/parser.py</a>", line 189, in _parse_anime
    result.series_name or result.series.name)[0][1]
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/scene_exceptions.py#L154">medusa/scene_exceptions.py</a>", line 154, in get_scene_exceptions_by_name
    [show_name])
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/db.py#L315">medusa/db.py</a>", line 315, in select
    sql_results = self.action(query, args, fetchall=True)
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/db.py#L285">medusa/db.py</a>", line 285, in action
    sql_results = self._execute(query, args, fetchall=fetchall, fetchone=fetchone)
  File "/opt/medusa/<a href="../blob/49c0e6c775c7cd2759f707c6f27126c6fd9ac1aa/medusa/db.py#L115">medusa/db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 0 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]`
**Operating System**: `Linux-4.9.0-4-amd64-x86_64-with-debian-9.6`
**Locale**: `UTF-8`
**Branch**: [feature/py3_2](../tree/feature/py3_2)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@0e2429e2dd405ccc379981bc07e66d53105824ec
**Link to Log**: https://gist.github.com/7a0e5c6aa869368a0c884c8f502aac96
### ERROR
<pre>
2018-12-09 03:12:33 ERROR    SHOWQUEUE-REFRESH :: [0e2429e] 262954: Error while refreshing show JoJo's Bizarre Adventure (2012). Error: Error binding parameter 0 - probably unsupported type.
Traceback (most recent call last):
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/show_queue.py#L688">medusa/show_queue.py</a>", line 688, in run
    self.show.refresh_dir()
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/tv/series.py#L1741">medusa/tv/series.py</a>", line 1741, in refresh_dir
    self.load_episodes_from_dir()
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/tv/series.py#L1006">medusa/tv/series.py</a>", line 1006, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/tv/series.py#L1309">medusa/tv/series.py</a>", line 1309, in make_ep_from_file
    'normal', 'anime')[self.is_anime]).parse(filepath)
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/name_parser/parser.py#L370">medusa/name_parser/parser.py</a>", line 370, in parse
    result = self._parse_string(name)
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/name_parser/parser.py#L299">medusa/name_parser/parser.py</a>", line 299, in _parse_string
    new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_anime(result)
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/name_parser/parser.py#L189">medusa/name_parser/parser.py</a>", line 189, in _parse_anime
    result.series_name or result.series.name)[0][1]
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/scene_exceptions.py#L154">medusa/scene_exceptions.py</a>", line 154, in get_scene_exceptions_by_name
    [show_name])
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/db.py#L315">medusa/db.py</a>", line 315, in select
    sql_results = self.action(query, args, fetchall=True)
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/db.py#L285">medusa/db.py</a>", line 285, in action
    sql_results = self._execute(query, args, fetchall=fetchall, fetchone=fetchone)
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/db.py#L115">medusa/db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]`
**Operating System**: `Linux-4.9.0-4-amd64-x86_64-with-debian-9.6`
**Locale**: `UTF-8`
**Branch**: [feature/py3_2](../tree/feature/py3_2)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@0e2429e2dd405ccc379981bc07e66d53105824ec
**Link to Log**: https://gist.github.com/781feb40565569a9ace9dd5f3873b87d
### ERROR
<pre>
2018-12-09 03:12:33 ERROR    SHOWQUEUE-REFRESH :: [0e2429e] DB error: InterfaceError('Error binding parameter 0 - probably unsupported type.',)
Traceback (most recent call last):
  File "/opt/medusa/<a href="../blob/0e2429e2dd405ccc379981bc07e66d53105824ec/medusa/db.py#L115">medusa/db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17763`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76
**Link to Log**: https://gist.github.com/ac951ffc593a48111568b0b867b74b61
### ERROR
<pre>
2019-01-28 18:45:18 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [918cfe7] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17763`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76
**Link to Log**: https://gist.github.com/e2de6bae805e6a951f6b1c5ea5c5ee87
### ERROR
<pre>
2019-02-19 07:52:57 ERROR    SEARCHQUEUE-BACKLOG-78881 :: [Torrentz2] :: [918cfe7] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.',)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/db.py#L115">medusa\db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)]`
**Operating System**: `Darwin-18.2.0-x86_64-i386-64bit`
**Locale**: `unknown`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205
**Link to Log**: https://gist.github.com/65105786cf3ee289b622f49b3dec8dfb
### ERROR
<pre>
2019-03-03 05:32:21 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [World Wide Torrents] :: [4ce436e] DB error: InterfaceError('Error binding parameter 8 - probably unsupported type.')
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205/medusa/db.py#L115">medusa/db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
sqlite3.InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)]`
**Operating System**: `Darwin-18.2.0-x86_64-i386-64bit`
**Locale**: `unknown`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205
**Link to Log**: https://gist.github.com/5ba4477898dcaa279b00195e1daac695
### ERROR
<pre>
2019-03-03 05:32:21 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [World Wide Torrents] :: [4ce436e] DailySearchQueueItem Exception, error: Error binding parameter 8 - probably unsupported type.
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205/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/4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205/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/4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205/medusa/tv/cache.py#L244">medusa/tv/cache.py</a>", line 244, in update_cache
    cache_db_con.mass_action(results)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205/medusa/db.py#L222">medusa/db.py</a>", line 222, in mass_action
    sql_results.append(self._execute(qu[0], qu[1], fetchall=fetchall))
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/4ce436e11c97e4bb8d5bb4ebbfe122c54d1e0205/medusa/db.py#L115">medusa/db.py</a>", line 115, in _execute
    sql_results = cursor.execute(query, args)
sqlite3.InterfaceError: Error binding parameter 8 - probably unsupported type.
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Something is wrong with the database entry of the show you are trying to process. Try to force update that show.
It works after the force update. Thanks a lot !

### INFO
**Python Version**: `2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]`
**Operating System**: `Linux-4.13.0-26-generic-x86_64-with-LinuxMint-18.3-sylvia`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.9`
**Commit**: pymedusa/Medusa@52a946339926c31010f794da5f5858fecc5f5b1d
**Link to Log**: https://gist.github.com/92f519661696852e42669455b0298e5b
### ERROR
<pre>
2018-01-18 07:34:12 ERROR    SHOWQUEUE-REFRESH :: [52a9463] 21656: Error while refreshing show Dynasty. Error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/show_queue.py#L628">medusa/show_queue.py</a>", line 628, in run
    self.show.refresh_dir()
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/tv/series.py#L1749">medusa/tv/series.py</a>", line 1749, in refresh_dir
    self.load_episodes_from_dir()
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/tv/series.py#L927">medusa/tv/series.py</a>", line 927, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/tv/series.py#L1277">medusa/tv/series.py</a>", line 1277, in make_ep_from_file
    'normal', 'anime')[self.is_anime]).parse(filepath)
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/name_parser/parser.py#L293">medusa/name_parser/parser.py</a>", line 293, in parse
    result = self._parse_string(name)
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/name_parser/parser.py#L64">medusa/name_parser/parser.py</a>", line 64, in _parse_string
    search_series = helpers.get_show(result.series_name, self.try_indexers) if not self.naming_pattern else None
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/helpers/__init__.py#L1032">medusa/helpers/__init__.py</a>", line 1032, in get_show
    series_from_name = scene_exceptions.get_scene_exceptions_by_name(series_name)[0]
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/scene_exceptions.py#L142">medusa/scene_exceptions.py</a>", line 142, in get_scene_exceptions_by_name
    indexer = int(exception[b'indexer'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]`
**Operating System**: `Linux-4.13.0-26-generic-x86_64-with-LinuxMint-18.3-sylvia`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.9`
**Commit**: pymedusa/Medusa@52a946339926c31010f794da5f5858fecc5f5b1d
**Link to Log**: https://gist.github.com/56a843a91d0998eb0f1130680e83b4ad
### ERROR
<pre>
2018-01-18 07:39:02 ERROR    SHOWQUEUE-REFRESH :: [52a9463] 337907: Error while refreshing show 9-1-1. Error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/show_queue.py#L628">medusa/show_queue.py</a>", line 628, in run
    self.show.refresh_dir()
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/tv/series.py#L1749">medusa/tv/series.py</a>", line 1749, in refresh_dir
    self.load_episodes_from_dir()
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/tv/series.py#L927">medusa/tv/series.py</a>", line 927, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/tv/series.py#L1277">medusa/tv/series.py</a>", line 1277, in make_ep_from_file
    'normal', 'anime')[self.is_anime]).parse(filepath)
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/name_parser/parser.py#L293">medusa/name_parser/parser.py</a>", line 293, in parse
    result = self._parse_string(name)
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/name_parser/parser.py#L64">medusa/name_parser/parser.py</a>", line 64, in _parse_string
    search_series = helpers.get_show(result.series_name, self.try_indexers) if not self.naming_pattern else None
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/helpers/__init__.py#L1032">medusa/helpers/__init__.py</a>", line 1032, in get_show
    series_from_name = scene_exceptions.get_scene_exceptions_by_name(series_name)[0]
  File "/opt/Medusa/<a href="../blob/52a946339926c31010f794da5f5858fecc5f5b1d/medusa/scene_exceptions.py#L142">medusa/scene_exceptions.py</a>", line 142, in get_scene_exceptions_by_name
    indexer = int(exception[b'indexer'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Pretty sure this is fixed, please ping if not.

### INFO
**Python Version**: `2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]`
**Operating System**: `Linux-4.15.0-32-generic-x86_64-with-LinuxMint-18.3-sylvia`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce
**Link to Log**: https://gist.github.com/1b699062ba26834feb1729c8fd590b1a
### ERROR
<pre>
2018-08-22 22:46:15 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [3965eb1] DailySearchQueueItem Exception, error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/search/queue.py#L263">medusa/search/queue.py</a>", line 263, in run
    found_results = search_for_needed_episodes(force=self.force)
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/search/core.py#L509">medusa/search/core.py</a>", line 509, in search_for_needed_episodes
    episodes.extend(wanted_episodes(cur_show, from_date))
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/search/core.py#L479">medusa/search/core.py</a>", line 479, in wanted_episodes
    ep_obj = series_obj.get_episode(episode[b'season'], episode[b'episode'])
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/tv/series.py#L795">medusa/tv/series.py</a>", line 795, in get_episode
    ep = Episode(self, season, episode)
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/tv/episode.py#L270">medusa/tv/episode.py</a>", line 270, in __init__
    self._specify_episode(self.season, self.episode)
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/tv/episode.py#L554">medusa/tv/episode.py</a>", line 554, in _specify_episode
    sql_results = self.load_from_db(season, episode)
  File "/opt/Medusa/<a href="../blob/3965eb16e1dba9c498a80d9c3e956b6aa4ba92ce/medusa/tv/episode.py#L635">medusa/tv/episode.py</a>", line 635, in load_from_db
    self.watched = int(sql_results[0][b'watched'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.14 (default, May 28 2018, 14:47:18) [GCC 4.7.3 20130102 (prerelease)]`
**Operating System**: `Linux-3.10.105-x86_64-with-glibc2.2.5`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.11`
**Commit**: pymedusa/Medusa@f5973b28465246e67465d7d86bdc8aa74d13e659
**Link to Log**: https://gist.github.com/8e3bbcb5a5a856c28560c0480df67312
### ERROR
<pre>
2018-08-23 19:25:31 ERROR    POSTPROCESSOR :: [f5973b2] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/scheduler.py#L93">medusa/scheduler.py</a>", line 93, in run
    self.action.run(self.force)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/auto_post_processor.py#L58">medusa/auto_post_processor.py</a>", line 58, in run
    process_tv.ProcessResult(app.TV_DOWNLOAD_DIR, app.PROCESS_METHOD).process(force=force)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/process_tv.py#L145">medusa/process_tv.py</a>", line 145, in process
    ignore_subs=ignore_subs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/process_tv.py#L333">medusa/process_tv.py</a>", line 333, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/process_tv.py#L554">medusa/process_tv.py</a>", line 554, in process_media
    self.result = processor.process()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/post_processor.py#L1106">medusa/post_processor.py</a>", line 1106, in process
    if int(ep_obj.season) > int(max_season[0][0]):
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@f5973b28465246e67465d7d86bdc8aa74d13e659
**Link to Log**: https://gist.github.com/51636d6471263e0be5825eeb87269984
### ERROR
<pre>
2018-08-30 03:59:35 ERROR    BACKLOG :: [f5973b2] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/scheduler.py#L93">medusa\scheduler.py</a>", line 93, in run
    self.action.run(self.force)
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/search/backlog.py#L215">medusa\search\backlog.py</a>", line 215, in run
    self.search_backlog()
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/search/backlog.py#L110">medusa\search\backlog.py</a>", line 110, in search_backlog
    segments = self._get_segments(series_obj, from_date)
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/search/backlog.py#L185">medusa\search\backlog.py</a>", line 185, in _get_segments
    ep_obj = series_obj.get_episode(episode[b'season'], episode[b'episode'])
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/tv/series.py#L795">medusa\tv\series.py</a>", line 795, in get_episode
    ep = Episode(self, season, episode)
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/tv/episode.py#L270">medusa\tv\episode.py</a>", line 270, in __init__
    self._specify_episode(self.season, self.episode)
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/tv/episode.py#L554">medusa\tv\episode.py</a>", line 554, in _specify_episode
    sql_results = self.load_from_db(season, episode)
  File "C:\Medusa\Medusa\<a href="../blob/f5973b28465246e67465d7d86bdc8aa74d13e659/medusa/tv/episode.py#L635">medusa\tv\episode.py</a>", line 635, in load_from_db
    self.watched = int(sql_results[0][b'watched'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17134`
**Locale**: `cp1252`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@db3d9d767bbf3fe7c365df20d92099b0cbbd91b4
**Link to Log**: **No Log available**
### ERROR
<pre>
2018-09-07 12:46:50 ERROR    DAILYSEARCHER :: [db3d9d7] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "C:\Medusa\Medusa\<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/scheduler.py#L93">medusa\scheduler.py</a>", line 93, in run
    self.action.run(self.force)
  File "C:\Medusa\Medusa\<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/search/daily.py#L97">medusa\search\daily.py</a>", line 97, in run
    cur_ep = series_obj.get_episode(db_episode[b'season'], db_episode[b'episode'])
  File "C:\Medusa\Medusa\<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/series.py#L796">medusa\tv\series.py</a>", line 796, in get_episode
    ep = Episode(self, season, episode)
  File "C:\Medusa\Medusa\<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/episode.py#L270">medusa\tv\episode.py</a>", line 270, in __init__
    self._specify_episode(self.season, self.episode)
  File "C:\Medusa\Medusa\<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/episode.py#L554">medusa\tv\episode.py</a>", line 554, in _specify_episode
    sql_results = self.load_from_db(season, episode)
  File "C:\Medusa\Medusa\<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/episode.py#L635">medusa\tv\episode.py</a>", line 635, in load_from_db
    self.watched = int(sql_results[0][b'watched'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@PlaceboPRS 
Did you change to develop branch and then back to master at some point since version 0.2.8?
I did yeah because whilst one problem was fixed with develop (the unknown folder issue) it introduced a new more critical problem whereby certain TV shows simply wouldn't load. Is there a way to remedy my fubar please? Thanks in advance :)
@PlaceboPRS 
Open `cmd`
```
cd "C:\Medusa\Data"
C:\Medusa\Python\python.exe -c "import sqlite3; db = sqlite3.connect('main.db'); db.cursor().execute('UPDATE tv_episodes SET watched = 0 WHERE watched IS NULL;'); db.commit(); db.close()"
```
Should fix it.
The "minified" script is:
```py
import sqlite3
db = sqlite3.connect('main.db')
db.cursor().execute('UPDATE tv_episodes SET watched = 0 WHERE watched IS NULL;')
db.commit()
db.close()
```
Thanks I ran that with no errors or anything reported (shut Medusa down first), so I'll give it a try, appreciate you taking the time to reply to my report :)

### INFO
**Python Version**: `2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]`
**Operating System**: `Linux-3.10.0-862.11.6.el7.x86_64-x86_64-with-centos-7.5.1804-Core`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@db3d9d767bbf3fe7c365df20d92099b0cbbd91b4
**Link to Log**: https://gist.github.com/2ffffb9accc4b385ad67f3667aae92b2
### ERROR
<pre>
2018-09-08 20:46:56 ERROR    DAILYSEARCHER :: [db3d9d7] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/var/lib/**********mediaserver/medusa/medusa/scheduler.py", line 93, in run
    self.action.run(self.force)
  File "/var/lib/**********mediaserver/medusa/medusa/search/daily.py", line 97, in run
    cur_ep = series_obj.get_episode(db_episode[b'season'], db_episode[b'episode'])
  File "/var/lib/**********mediaserver/medusa/medusa/tv/series.py", line 796, in get_episode
    ep = Episode(self, season, episode)
  File "/var/lib/**********mediaserver/medusa/medusa/tv/episode.py", line 270, in __init__
    self._specify_episode(self.season, self.episode)
  File "/var/lib/**********mediaserver/medusa/medusa/tv/episode.py", line 554, in _specify_episode
    sql_results = self.load_from_db(season, episode)
  File "/var/lib/**********mediaserver/medusa/medusa/tv/episode.py", line 635, in load_from_db
    self.watched = int(sql_results[0][b'watched'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (default, Apr 11 2017, 16:05:39) [GCC 4.8.4]`
**Operating System**: `Linux-4.2.8-x86_64-with-glibc2.2.5`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@db3d9d767bbf3fe7c365df20d92099b0cbbd91b4
**Link to Log**: https://gist.github.com/01d97e0b9c1f1dba0894124515e109d2
### ERROR
<pre>
2018-09-08 12:23:58 ERROR    Thread_12 :: [db3d9d7] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/server/web/core/base.py#L259">medusa/server/web/core/base.py</a>", line 259, in async_call
    result = function(**kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/server/web/manage/handler.py#L181">medusa/server/web/manage/handler.py</a>", line 181, in changeEpisodeStatuses
    direct=True
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/server/web/home/handler.py#L1913">medusa/server/web/home/handler.py</a>", line 1913, in setStatus
    ep_obj = series_obj.get_episode(season_no, episode_no)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/series.py#L796">medusa/tv/series.py</a>", line 796, in get_episode
    ep = Episode(self, season, episode)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/episode.py#L270">medusa/tv/episode.py</a>", line 270, in __init__
    self._specify_episode(self.season, self.episode)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/episode.py#L554">medusa/tv/episode.py</a>", line 554, in _specify_episode
    sql_results = self.load_from_db(season, episode)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/db3d9d767bbf3fe7c365df20d92099b0cbbd91b4/medusa/tv/episode.py#L635">medusa/tv/episode.py</a>", line 635, in load_from_db
    self.watched = int(sql_results[0][b'watched'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15 (default, Aug 16 2018, 14:17:09) [GCC 6.4.0]`
**Operating System**: `Linux-4.14.35-unRAID-x86_64-with`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/a103acf88ec2d2fbf89c296acfd03ac0
### ERROR
<pre>
2018-10-16 18:10:51 ERROR    SHOWQUEUE-ADD :: [4614efc] None: Error while loading information from indexer TMDB. Error: TypeError("int() argument must be a string or a number, not 'NoneType'",)
Traceback (most recent call last):
  File "/app/medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/show_queue.py#L395">medusa/show_queue.py</a>", line 395, in run
    show_name = get_showname_from_indexer(self.indexer, self.indexer_id, self.lang)
  File "/app/medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L1522">medusa/helpers/__init__.py</a>", line 1522, in get_showname_from_indexer
    s = indexer_api[int(indexer_id)]
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.13 (default, Apr 11 2017, 16:05:39) [GCC 4.8.4]`
**Operating System**: `Linux-4.2.8-x86_64-with-glibc2.2.5`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/cfc5167ca75bc36c19f6474ec82709c7
### ERROR
<pre>
2018-10-23 19:30:50 ERROR    POSTPROCESSOR :: [4614efc] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/scheduler.py#L93">medusa/scheduler.py</a>", line 93, in run
    self.action.run(self.force)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/auto_post_processor.py#L58">medusa/auto_post_processor.py</a>", line 58, in run
    process_tv.ProcessResult(app.TV_DOWNLOAD_DIR, app.PROCESS_METHOD).process(force=force)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/process_tv.py#L145">medusa/process_tv.py</a>", line 145, in process
    ignore_subs=ignore_subs)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/process_tv.py#L333">medusa/process_tv.py</a>", line 333, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/process_tv.py#L554">medusa/process_tv.py</a>", line 554, in process_media
    self.result = processor.process()
  File "/share/CACHEDEV1_DATA/.qpkg/Medusa/Medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/post_processor.py#L1106">medusa/post_processor.py</a>", line 1106, in process
    if int(ep_obj.season) > int(max_season[0][0]):
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15 (default, Aug 16 2018, 14:17:09) [GCC 6.4.0]`
**Operating System**: `Linux-4.14.35-unRAID-x86_64-with`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/da839cee96e32d35ca392e47a5cab2dd
### ERROR
<pre>
2018-10-28 20:22:36 ERROR    SHOWQUEUE-ADD :: [4614efc] None: Error while loading information from indexer TMDB. Error: TypeError("int() argument must be a string or a number, not 'NoneType'",)
Traceback (most recent call last):
  File "/app/medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/show_queue.py#L395">medusa/show_queue.py</a>", line 395, in run
    show_name = get_showname_from_indexer(self.indexer, self.indexer_id, self.lang)
  File "/app/medusa/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L1522">medusa/helpers/__init__.py</a>", line 1522, in get_showname_from_indexer
    s = indexer_api[int(indexer_id)]
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15 (default, Oct  2 2018, 01:21:44) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]`
**Operating System**: `FreeBSD-11.2-STABLE-amd64-64bit-ELF`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@54da0c77d705a23f1ce67945ba4af3e1b978dcfc
**Link to Log**: https://gist.github.com/ef8e522e70a18d9e486c815445db86fb
### ERROR
<pre>
2018-11-24 15:16:50 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [54da0c7] DailySearchQueueItem Exception, error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/queue.py#L262">medusa/search/queue.py</a>", line 262, in run
    found_results = search_for_needed_episodes(force=self.force)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/core.py#L523">medusa/search/core.py</a>", line 523, in search_for_needed_episodes
    cur_provider.cache.update_cache()
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L233">medusa/tv/cache.py</a>", line 233, in update_cache
    result = self._parse_item(item)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L312">medusa/tv/cache.py</a>", line 312, in _parse_item
    leechers, size, pubdate)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L381">medusa/tv/cache.py</a>", line 381, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L367">medusa/name_parser/parser.py</a>", line 367, in parse
    result = self._parse_string(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L278">medusa/name_parser/parser.py</a>", line 278, in _parse_string
    search_series = helpers.get_show(result.series_name, self.try_indexers) if not self.naming_pattern else None
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/helpers/__init__.py#L1018">medusa/helpers/__init__.py</a>", line 1018, in get_show
    series_from_name = scene_exceptions.get_scene_exceptions_by_name(series_name)[0]
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/scene_exceptions.py#L167">medusa/scene_exceptions.py</a>", line 167, in get_scene_exceptions_by_name
    indexer = int(exception['indexer'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15 (default, Oct  2 2018, 01:21:44) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]`
**Operating System**: `FreeBSD-11.2-STABLE-amd64-64bit-ELF`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@54da0c77d705a23f1ce67945ba4af3e1b978dcfc
**Link to Log**: https://gist.github.com/11c38891a3c3277045f905a67adca64e
### ERROR
<pre>
2018-11-24 19:56:57 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [54da0c7] DailySearchQueueItem Exception, error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/queue.py#L262">medusa/search/queue.py</a>", line 262, in run
    found_results = search_for_needed_episodes(force=self.force)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/core.py#L523">medusa/search/core.py</a>", line 523, in search_for_needed_episodes
    cur_provider.cache.update_cache()
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L233">medusa/tv/cache.py</a>", line 233, in update_cache
    result = self._parse_item(item)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L312">medusa/tv/cache.py</a>", line 312, in _parse_item
    leechers, size, pubdate)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L381">medusa/tv/cache.py</a>", line 381, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L367">medusa/name_parser/parser.py</a>", line 367, in parse
    result = self._parse_string(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L278">medusa/name_parser/parser.py</a>", line 278, in _parse_string
    search_series = helpers.get_show(result.series_name, self.try_indexers) if not self.naming_pattern else None
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/helpers/__init__.py#L1018">medusa/helpers/__init__.py</a>", line 1018, in get_show
    series_from_name = scene_exceptions.get_scene_exceptions_by_name(series_name)[0]
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/scene_exceptions.py#L167">medusa/scene_exceptions.py</a>", line 167, in get_scene_exceptions_by_name
    indexer = int(exception['indexer'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15 (default, Oct  2 2018, 01:21:44) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]`
**Operating System**: `FreeBSD-11.2-STABLE-amd64-64bit-ELF`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@54da0c77d705a23f1ce67945ba4af3e1b978dcfc
**Link to Log**: https://gist.github.com/c8e513506b3fb2e484503d692b7cb573
### ERROR
<pre>
2018-11-26 21:17:33 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [54da0c7] DailySearchQueueItem Exception, error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/queue.py#L262">medusa/search/queue.py</a>", line 262, in run
    found_results = search_for_needed_episodes(force=self.force)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/core.py#L523">medusa/search/core.py</a>", line 523, in search_for_needed_episodes
    cur_provider.cache.update_cache()
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L233">medusa/tv/cache.py</a>", line 233, in update_cache
    result = self._parse_item(item)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L312">medusa/tv/cache.py</a>", line 312, in _parse_item
    leechers, size, pubdate)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L381">medusa/tv/cache.py</a>", line 381, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L367">medusa/name_parser/parser.py</a>", line 367, in parse
    result = self._parse_string(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L278">medusa/name_parser/parser.py</a>", line 278, in _parse_string
    search_series = helpers.get_show(result.series_name, self.try_indexers) if not self.naming_pattern else None
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/helpers/__init__.py#L1018">medusa/helpers/__init__.py</a>", line 1018, in get_show
    series_from_name = scene_exceptions.get_scene_exceptions_by_name(series_name)[0]
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/scene_exceptions.py#L167">medusa/scene_exceptions.py</a>", line 167, in get_scene_exceptions_by_name
    indexer = int(exception['indexer'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

This one is definitely not fixed, if it's the same problem I'm experiencing. 
@scarygary can I have your cache.db file? I can also prepare a python file that exports the scene_exceptions table. As that's the one i'm interested in.

When you've made a backup of the cache.db file, you can remove it. That should also fix your issue. You will lose your previous cached search results, with that.

After removing your cache.db file. You could checkout this branch: `feature/fix-scene-exceptions-exception`. If the issue pops back up, we might get info on why.

### INFO
**Python Version**: `2.7.15 (default, Oct  2 2018, 01:21:44) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]`
**Operating System**: `FreeBSD-11.2-STABLE-amd64-64bit-ELF`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@54da0c77d705a23f1ce67945ba4af3e1b978dcfc
**Link to Log**: https://gist.github.com/4fc87297d94d907a57a10a4b01fd3263
### ERROR
<pre>
2018-11-27 20:38:05 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [Rarbg] :: [54da0c7] DailySearchQueueItem Exception, error: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/queue.py#L262">medusa/search/queue.py</a>", line 262, in run
    found_results = search_for_needed_episodes(force=self.force)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/search/core.py#L523">medusa/search/core.py</a>", line 523, in search_for_needed_episodes
    cur_provider.cache.update_cache()
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L233">medusa/tv/cache.py</a>", line 233, in update_cache
    result = self._parse_item(item)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L312">medusa/tv/cache.py</a>", line 312, in _parse_item
    leechers, size, pubdate)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/cache.py#L381">medusa/tv/cache.py</a>", line 381, in add_cache_entry
    parse_result = parsed_result or NameParser().parse(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L367">medusa/name_parser/parser.py</a>", line 367, in parse
    result = self._parse_string(name)
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/name_parser/parser.py#L278">medusa/name_parser/parser.py</a>", line 278, in _parse_string
    search_series = helpers.get_show(result.series_name, self.try_indexers) if not self.naming_pattern else None
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/helpers/__init__.py#L1018">medusa/helpers/__init__.py</a>", line 1018, in get_show
    series_from_name = scene_exceptions.get_scene_exceptions_by_name(series_name)[0]
  File "/usr/local/medusa/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/scene_exceptions.py#L167">medusa/scene_exceptions.py</a>", line 167, in get_scene_exceptions_by_name
    indexer = int(exception['indexer'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

After restarting Medusa everthing started working again. I can't believe I didn't try that before.
The cache was updated and no errors since. 

@scarygary nice that you have it fixed. But I'd like to fix it for the next user. Do you have the old cache.db table?

### INFO
**Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]`
**Operating System**: `Windows-10-10.0.17763`
**Locale**: `cp65001`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76
**Link to Log**: https://gist.github.com/697fadcae05689eed496b06c45a887a5
### ERROR
<pre>
2019-02-24 10:05:19 ERROR    Thread_3 :: [918cfe7] Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "C:\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/server/web/core/base.py#L258">medusa\server\web\core\base.py</a>", line 258, in async_call
    result = function(**kwargs)
  File "C:\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/server/web/home/post_process.py#L55">medusa\server\web\home\post_process.py</a>", line 55, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "C:\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/process_tv.py#L145">medusa\process_tv.py</a>", line 145, in process
    ignore_subs=ignore_subs)
  File "C:\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/process_tv.py#L335">medusa\process_tv.py</a>", line 335, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "C:\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/process_tv.py#L556">medusa\process_tv.py</a>", line 556, in process_media
    self.result = processor.process()
  File "C:\Medusa\<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/post_processor.py#L1106">medusa\post_processor.py</a>", line 1106, in process
    if int(ep_obj.season) > int(max_season[0]['max']):
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15 (default, Jan 24 2019, 16:32:39) [GCC 8.2.0]`
**Operating System**: `Linux-4.15.0-45-generic-x86_64-with`
**Locale**: `None`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@65c34d922f910303ad41740b0d4267e2eac478f4
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-02-27 22:15:23 ERROR    SHOWQUEUE-ADD :: [65c34d9] Error trying to add show: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/<a href="../blob/65c34d922f910303ad41740b0d4267e2eac478f4/medusa/show_queue.py#L517">medusa/show_queue.py</a>", line 517, in run
    newShow = Series(self.indexer, self.indexer_id, self.lang)
  File "/app/medusa/<a href="../blob/65c34d922f910303ad41740b0d4267e2eac478f4/medusa/tv/series.py#L245">medusa/tv/series.py</a>", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/<a href="../blob/65c34d922f910303ad41740b0d4267e2eac478f4/medusa/tv/series.py#L1499">medusa/tv/series.py</a>", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@Magnus010 
Which show are you trying to add (with indexer)?
I'm not sure, I just updated Medusa which looks like it wiped out my logs. I recently hooked up Trakt to Medusa, and it looks like that error occurs more frequently. I'll update when it happens again.
Just happened again, here's the logs for it:

```2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Doctor Horrible's Sing-Along Blog
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/Doctor Horrible's Sing-Along Blog: Exception generated: int() argument must be a string
or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 71326: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Red Dwarf
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 71326: Finding the episode which airs next
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 71326: No episode found... need to implement a show status
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 113901: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for The Super Hero Squad Show
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/The Super Hero Squad Show: Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 360348: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Alien: Isolation The Digital Series
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/Alien Isolation The Digital Series: Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 279468: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Star Trek: Osiris
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/Star Trek Osiris: Exception generated: int() argument must be a string or a number, not
'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 80275: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Starship Farragut
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/Starship Farragut: Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 358453: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Star Trek: Phoenix
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/Star Trek Phoenix: Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] 85949: Loading show info from database
2019-03-02 21:30:00 DEBUG    MAIN :: [e124b01] Building black and white list for Untitled Jean-Luc Picard Star Trek Series
2019-03-02 21:30:00 ERROR    MAIN :: [e124b01] There was an error creating the show in /tv/Untitled Jean-Luc Picard Star Trek Series: Exception generated: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/app/medusa/medusa/__main__.py", line 2117, in load_shows_from_db
    cur_show = Series(sql_show['indexer'], sql_show['indexer_id'])
  File "/app/medusa/medusa/tv/series.py", line 245, in __init__
    self._load_from_db()
  File "/app/medusa/medusa/tv/series.py", line 1499, in _load_from_db
    self.airdate_offset = int(sql_results[0]['airdate_offset'])
TypeError: int() argument must be a string or a number, not 'NoneType'```

Resolving patch:
diff --git a/medusa/name_parser/parser.py b/medusa/name_parser/parser.py
--- a/medusa/name_parser/parser.py
+++ b/medusa/name_parser/parser.py
@@ -198,8 +198,8 @@ def _parse_anime(result):
                 #
                 # Don't assume that scene_exceptions season is the same as indexer season.
                 # E.g.: [HorribleSubs] Cardcaptor Sakura Clear Card - 08 [720p].mkv thetvdb s04, thexem s02
-                if result.series.is_scene or (result.season_number is None and
-                                              scene_season is not None and scene_season > 0):
+                if result.series.is_scene or (result.season_number is None
+                                              and scene_season is not None and scene_season > 0):
                     a = scene_numbering.get_indexer_absolute_numbering(
                         result.series, absolute_episode, True, scene_season
                     )
@@ -416,9 +416,18 @@ def to_parse_result(self, name, guess):
         :return:
         :rtype: ParseResult
         """
-        season_numbers = helpers.ensure_list(guess.get('season'))
-        if len(season_numbers) > 1 and not self.allow_multi_season:
-            raise InvalidNameException("Discarding result. Multi-season detected for '{name}': {guess}".format(name=name, guess=guess))
+        if not self.allow_multi_season:
+            season_numbers = helpers.ensure_list(guess.get('season'))
+            if len(season_numbers) > 1:
+                raise InvalidNameException(
+                    "Discarding result. Multi-season detected for '{name}': {guess}"
+                    .format(name=name, guess=guess))
+
+            versions = helpers.ensure_list(guess.get('version'))
+            if len(versions) > 1:
+                raise InvalidNameException(
+                    "Discarding result. Multi-version detected for '{name}': {guess}"
+                    .format(name=name, guess=guess))
 
         return ParseResult(guess, original_name=name, series_name=guess.get('alias') or guess.get('title'),
                            season_number=helpers.single_or_list(season_numbers, self.allow_multi_season),
@@ -593,8 +602,12 @@ def remove(self, indexer, indexer_id):
         """Remove cache item given indexer and indexer_id."""
         if not indexer or not indexer_id:
             return
-        to_remove = [cached_name for cached_name, cached_parsed_result in iteritems(self.cache) if
-                     cached_parsed_result.series.indexer == indexer and cached_parsed_result.series.indexerid == indexer_id]
+        to_remove = [
+            cached_name
+            for cached_name, cached_parsed_result in iteritems(self.cache)
+            if cached_parsed_result.series.indexer == indexer
+            and cached_parsed_result.series.indexerid == indexer_id
+        ]
         for item in to_remove:
             del self.cache[item]
             log.debug('Removed parsed cached result for release: {release}'.format(release=item))
diff --git a/medusa/tv/cache.py b/medusa/tv/cache.py
--- a/medusa/tv/cache.py
+++ b/medusa/tv/cache.py
@@ -419,7 +419,7 @@ def add_cache_entry(self, name, url, seeders, leechers, size, pubdate, parsed_re
             proper_tags = '|'.join(parse_result.proper_tags)
 
             if not self.item_in_cache(url):
-                log.debug('Added item: {0} to cache: {1} with url {2}', name, self.provider_id, url)
+                log.debug('Added item: {0} to cache: {1} with url: {2}', name, self.provider_id, url)
                 return [
                     'INSERT INTO [{name}] '
                     '   (name, season, episodes, indexerid, url, time, quality, '
diff --git a/medusa/tv/series.py b/medusa/tv/series.py
--- a/medusa/tv/series.py
+++ b/medusa/tv/series.py
@@ -1489,15 +1489,14 @@ def _load_from_db(self):
             if not self.imdb_id:
                 self.imdb_id = sql_results[0]['imdb_id']
 
-            self.release_groups = BlackAndWhiteList(self)
-
             self.plot = sql_results[0]['plot']
+            self.airdate_offset = int(sql_results[0]['airdate_offset'])
+
+            self.release_groups = BlackAndWhiteList(self)
 
             # Load external id's from indexer_mappings table.
             self.externals = load_externals_from_db(self.indexer, self.series_id)
 
-            self.airdate_offset = int(sql_results[0]['airdate_offset'])
-
         # Get IMDb_info from database
         main_db_con = db.DBConnection()
         sql_results = main_db_con.select(


Test patch: