Repository: pymedusa/Medusa

Issue:
[APP SUBMITTED]: UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 26: invalid start byte

### 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.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/947b7d49694fec89492cbf1bfa870df8
### ERROR
<pre>
2018-10-20 09:12:08 ERROR    SHOWQUEUE-ADD :: [4614efc] Error searching dir for episodes: 'utf8' codec can't decode byte 0x92 in position 26: invalid start byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/show_queue.py#L617">medusa/show_queue.py</a>", line 617, in run
    self.show.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/tv/series.py#L985">medusa/tv/series.py</a>", line 985, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L262">medusa/helpers/__init__.py</a>", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L257">medusa/helpers/__init__.py</a>", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L113">medusa/init/filesystem.py</a>", line 113, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L50">medusa/init/filesystem.py</a>", line 50, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L47">medusa/init/filesystem.py</a>", line 47, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, 'utf-8' if os.name != 'nt' else fs_encoding)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 26: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators



Discussion:

### 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.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/a9ae77ca5109ebfe5842c4e8395383d2
### ERROR
<pre>
2018-10-20 09:49:37 ERROR    SHOWQUEUE-ADD :: [4614efc] Error searching dir for episodes: 'utf8' codec can't decode byte 0x92 in position 23: invalid start byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/show_queue.py#L617">medusa/show_queue.py</a>", line 617, in run
    self.show.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/tv/series.py#L985">medusa/tv/series.py</a>", line 985, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L262">medusa/helpers/__init__.py</a>", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L257">medusa/helpers/__init__.py</a>", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L113">medusa/init/filesystem.py</a>", line 113, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L50">medusa/init/filesystem.py</a>", line 50, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L47">medusa/init/filesystem.py</a>", line 47, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, 'utf-8' if os.name != 'nt' else fs_encoding)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 23: invalid start byte
</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.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/152b6ae3c5cb6b12c518d5842401adb2
### ERROR
<pre>
2018-10-20 09:44:26 ERROR    SHOWQUEUE-ADD :: [4614efc] Error searching dir for episodes: 'utf8' codec can't decode byte 0xe6 in position 20: invalid continuation byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/show_queue.py#L617">medusa/show_queue.py</a>", line 617, in run
    self.show.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/tv/series.py#L985">medusa/tv/series.py</a>", line 985, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L262">medusa/helpers/__init__.py</a>", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/helpers/__init__.py#L257">medusa/helpers/__init__.py</a>", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L113">medusa/init/filesystem.py</a>", line 113, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L50">medusa/init/filesystem.py</a>", line 50, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L47">medusa/init/filesystem.py</a>", line 47, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, 'utf-8' if os.name != 'nt' else fs_encoding)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 20: invalid continuation byte
</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.12`
**Commit**: pymedusa/Medusa@4614efc77151ded92ef458a09dec39f8bd5acfc6
**Link to Log**: https://gist.github.com/3158e0455ac1c3e5accd5bfef7b8cda3
### ERROR
<pre>
2018-10-21 09:07:25 ERROR    Thread_3 :: [4614efc] Exception generated: 'utf8' codec can't decode byte 0x92 in position 23: invalid start byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/server/web/core/base.py#L259">medusa/server/web/core/base.py</a>", line 259, in async_call
    result = function(**kwargs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/server/web/home/post_process.py#L49">medusa/server/web/home/post_process.py</a>", line 49, in processEpisode
    ignore_subs=argToBool(ignore_subs)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/process_tv.py#L126">medusa/process_tv.py</a>", line 126, in process
    if not self.should_process(path, failed):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/process_tv.py#L213">medusa/process_tv.py</a>", line 213, in should_process
    for root, dirs, files in os.walk(path):
  File "/volume1/@appstore/sickbeard-custom/env/lib/python2.7/os.py", line 278, in walk
    names = listdir(top)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L113">medusa/init/filesystem.py</a>", line 113, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L50">medusa/init/filesystem.py</a>", line 50, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L47">medusa/init/filesystem.py</a>", line 47, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/4614efc77151ded92ef458a09dec39f8bd5acfc6/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, 'utf-8' if os.name != 'nt' else fs_encoding)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 23: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Should be fixed with the new release. Let us know if it isn't.

### 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.12`
**Commit**: pymedusa/Medusa@54da0c77d705a23f1ce67945ba4af3e1b978dcfc
**Link to Log**: https://gist.github.com/ca40ec17434063e254f1b07a047c4806
### ERROR
<pre>
2018-11-26 09:45:19 ERROR    SHOWQUEUE-ADD :: [54da0c7] Error searching dir for episodes: 'utf8' codec can't decode byte 0x92 in position 26: invalid start byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/show_queue.py#L619">medusa/show_queue.py</a>", line 619, in run
    self.show.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/tv/series.py#L994">medusa/tv/series.py</a>", line 994, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/helpers/__init__.py#L262">medusa/helpers/__init__.py</a>", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/helpers/__init__.py#L257">medusa/helpers/__init__.py</a>", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/init/filesystem.py#L112">medusa/init/filesystem.py</a>", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/init/filesystem.py#L49">medusa/init/filesystem.py</a>", line 49, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/init/filesystem.py#L46">medusa/init/filesystem.py</a>", line 46, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/54da0c77d705a23f1ce67945ba4af3e1b978dcfc/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, fs_encoding if valid_encoding else 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 26: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@medariox hmm? 
Yes, I still have the same error even after the new release. Happens only for one of the shows.
This can only happen if you are using non-UTF-8 encodings (e.g. latin1) in your OS and don't have the locale set (or not the correct one). In that case Medusa defaults to UTF-8 for Unix. You might have noticed a warning message at the start of Medusa. The easiest solution is to just set the encoding you are using for your files and folders. This is a generic tutorial on how to do it: https://www.shellhacks.com/linux-define-locale-language-settings/ but a quick Google search should also yield OS specific tutorials.
This is my Locale:
admin@NAS:~$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

I have this error with show Bull (2016).

File /volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/init/filesystem.py:32, in decode:
return text_type(value, fs_encoding if valid_encoding else 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 26: invalid start byte

Nothing weird in the title, Sonarr works, but medusa keeps adding them to the download queue because it does not see the directory right. When clicking on the show icon:
Mako Error

A mako error has occured.
If this happened during an update a simple page refresh may be the solution.
Mako errors that happen during updates may be a one time error if there were significant ui changes.
@medariox My system is set to UTF-8.
```
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

```
It only happens for show Supernatural (2005), the rest is working. I have the Medusa installed on the OSMC Vero 4K, it is accessing the Synology NAS with the shows stored on it through NFS. I did the fresh installed of Medusa yesterday, using the latest Release. I got the warning about locales, so I did the `dpkg-reconfigure locales` and set it to UTF-8, rebooted, the message went away, but the problem is still there.
When does the error happen exactly? What do you do to trigger it?
@mcmikev
The problem is with one of the files contained in the show folder. Do you have any files with non-ASCII chars? Are you sure that these are UTF-8 encoded and not something else? Please post the name of the file that is causing the error.
Well the fun thing is that the files are already downloaded with sonar in the past. However Medusa does see the dir as a new show (when adding already show) but then cannot "see" in the directory
Example of file that keeps giving this error:
Bull (2016).S01E10.EJ WEBDL-1080p-Sonarr.mkv
There must be some non-ASCII char somewhere in the path... otherwise this error wouldn't happen. Probably hidden in the spaces or something.
@medariox for me it happened after I added existing show. And also I i rescan the show manually, unfortunatelly I cannot find on which file it fails, it just gives the error and trace. I went through the files and didn't see anything unusual. There are mostly just dots, dashes, brackets and square brackets in file names. Is there a way to find on which file it fails? I checked just the logs in the Web UI, is there some kind of debug mode?
@InToSSH 
Yes, you can enable debug logging in Gear > General > Advanced Settings
@medariox thank you, unfortunatelly debug didn't give me enough info aswell

```
2018-11-26 14:37:39 DEBUG    Thread_4 :: [54da0c7] 78901: Queueing show refresh for Supernatural
2018-11-26 14:37:40 INFO     SHOWQUEUE-REFRESH :: [54da0c7] 78901: Performing refresh on Supernatural
2018-11-26 14:37:40 DEBUG    SHOWQUEUE-REFRESH :: [54da0c7] 78901: Loading all episodes from the show directory: /mnt/nfs/htpc/Serialy/Supernatural
2018-11-26 14:37:46 ERROR    SHOWQUEUE-REFRESH :: [54da0c7] 78901: Error while refreshing show Supernatural. Error: 'utf8' codec can't decode byte 0x92 in position 46: invalid start byte
Traceback (most recent call last):
  File "/opt/medusa/medusa/show_queue.py", line 688, in run
    self.show.refresh_dir()
  File "/opt/medusa/medusa/tv/series.py", line 1741, in refresh_dir
    self.load_episodes_from_dir()
  File "/opt/medusa/medusa/tv/series.py", line 994, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/opt/medusa/medusa/helpers/__init__.py", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/opt/medusa/medusa/helpers/__init__.py", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/opt/medusa/medusa/init/filesystem.py", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/opt/medusa/medusa/init/filesystem.py", line 49, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/opt/medusa/medusa/init/filesystem.py", line 46, in _handle_output_u
    return decode(result)
  File "/opt/medusa/medusa/init/filesystem.py", line 32, in decode
    return text_type(value, fs_encoding if valid_encoding else 'utf-8')
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 46: invalid start byte

```

Does it look only for media files or the input to this function is all the files, because I haven't checked like .txt files.

EDIT: the 0x92 should be "smart quote (')", so at least I know what to look for.
Alright.. I have fixed it.
It was the weird `’` instead of `'` which is from windows-1252

So here is my solution, might help someone, I used this utility:
```
root@htpc-livingroom:/mnt/nfs/htpc/Serialy/Supernatural# convmv -r -f windows-1252 -t UTF-8 .
```
Which gave me list of files:

```
mv "./Season 12/Supernatural S12E05 (SDTV) [lol] - The One You▒ve Been Waiting For.mkv" "./Season 12/Supernatural S12E05 (SDTV) [lol] - The One You’ve Been Waiting For.mkv"
mv "./Season 04/Season_4/Supernatural S04E02 - Are You There, God. It▒s Me Dean Winches.avi"    "./Season 04/Season_4/Supernatural S04E02 - Are You There, God. It’s Me Dean Winches.avi"
mv "./Season 04/Season_4/Supernatural S04E02 - Are You There, God. It▒s Me Dean Winches.cs.srt" "./Season 04/Season_4/Supernatural S04E02 - Are You There, God. It’s Me Dean Winches.cs.srt"
mv "./Season 04/Season_4/Supernatural S04E02 - Are You There, God. It▒s Me Dean Winches.srt"    "./Season 04/Season_4/Supernatural S04E02 - Are You There, God. It’s Me Dean Winches.srt"
mv "./Season 11/Supernatural S11E12 (SDTV) [lol] - Don▒t You Forget about Me.mp4"       "./Season 11/Supernatural S11E12 (SDTV) [lol] - Don’t You Forget about Me.mp4"
mv "./Season 11/Supernatural S11E20 [lol] - Don▒t Call Me Shurley.mkv"  "./Season 11/Supernatural S11E20 [lol] - Don’t Call Me Shurley.mkv"
mv "./Season 11/Supernatural S11E12 [lol] - Don▒t You Forget about Me.mp4"      "./Season 11/Supernatural S11E12 [lol] - Don’t You Forget about Me.mp4"

```

Then after you make sure it would make the move to correct filename, you run the same command with `--notest` option, which makes the mv.
After that I ran the Rescan again and all went file.

@medariox maybe it would be nice to add some str_replace() before this function which fails for this particular \x92 character, which seems to be making most problems.

### INFO
**Python Version**: `2.7.14 (default, May 28 2018, 15:26:34) [GCC 4.3.2]`
**Operating System**: `Linux-2.6.32.12-ppc-with-glibc2.0`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76
**Link to Log**: https://gist.github.com/8c24a35127f1923e910f84f6d2ee8c34
### ERROR
<pre>
2019-01-03 04:18:11 ERROR    SHOWQUEUE-REFRESH :: [918cfe7] 274431: Error while refreshing show Gotham. Error: 'utf8' codec can't decode byte 0x85 in position 56: invalid start byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/show_queue.py#L688">medusa/show_queue.py</a>", line 688, in run
    self.show.refresh_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/tv/series.py#L1741">medusa/tv/series.py</a>", line 1741, in refresh_dir
    self.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/tv/series.py#L994">medusa/tv/series.py</a>", line 994, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/helpers/__init__.py#L262">medusa/helpers/__init__.py</a>", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/helpers/__init__.py#L257">medusa/helpers/__init__.py</a>", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L112">medusa/init/filesystem.py</a>", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L49">medusa/init/filesystem.py</a>", line 49, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L46">medusa/init/filesystem.py</a>", line 46, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, fs_encoding if valid_encoding else 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x85 in position 56: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.14 (default, May 28 2018, 15:26:34) [GCC 4.3.2]`
**Operating System**: `Linux-2.6.32.12-ppc-with-glibc2.0`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.12`
**Commit**: pymedusa/Medusa@918cfe7ce01808499585ffe6c1356fd5ed369f76
**Link to Log**: https://gist.github.com/91e81eadde658847d275c636316a80eb
### ERROR
<pre>
2019-01-12 04:07:53 ERROR    SHOWQUEUE-REFRESH :: [918cfe7] 274431: Error while refreshing show Gotham. Error: 'utf8' codec can't decode byte 0x85 in position 56: invalid start byte
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/show_queue.py#L688">medusa/show_queue.py</a>", line 688, in run
    self.show.refresh_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/tv/series.py#L1741">medusa/tv/series.py</a>", line 1741, in refresh_dir
    self.load_episodes_from_dir()
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/tv/series.py#L994">medusa/tv/series.py</a>", line 994, in load_episodes_from_dir
    media_files = helpers.list_media_files(self.location)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/helpers/__init__.py#L262">medusa/helpers/__init__.py</a>", line 262, in list_media_files
    files += list_media_files(full_cur_file)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/helpers/__init__.py#L257">medusa/helpers/__init__.py</a>", line 257, in list_media_files
    for cur_file in os.listdir(path):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L112">medusa/init/filesystem.py</a>", line 112, in patched_output
    return handle_output(f(*args, **kwargs))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L49">medusa/init/filesystem.py</a>", line 49, in _handle_output_u
    return list(map(_handle_output_u, result))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L46">medusa/init/filesystem.py</a>", line 46, in _handle_output_u
    return decode(result)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/<a href="../blob/918cfe7ce01808499585ffe6c1356fd5ed369f76/medusa/init/filesystem.py#L32">medusa/init/filesystem.py</a>", line 32, in decode
    return text_type(value, fs_encoding if valid_encoding else 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x85 in position 56: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

### INFO
**Python Version**: `2.7.15 (default, Feb 12 2019, 11:00:12) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]`
**Operating System**: `Darwin-18.2.0-x86_64-i386-64bit` (macOS 10.14.3)
**Locale**: `None`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@94650a9f5367521a974759323b846d6cdeaa7eb4
**Link to Log**: 
[All Logs.zip](https://github.com/pymedusa/Medusa/files/2921704/All.Logs.zip)


timestamps may not match as there was no log for the error listed below as i only keep a max of 20 logs. & when this happened the old log was auto deleted by then. logs included have same errors though at different timestamps.

### ERROR
<pre>
2019-03-02 05:01:31 ERROR    SNATCHQUEUE-SNATCH-354170 :: [94650a9] qbittorrent: Unknown exception raised when sending torrent to qbittorrent: 'utf8' codec can't decode byte 0xfe in position 1022: invalid start byte
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/clients/torrent/generic.py#L82">medusa/clients/torrent/generic.py</a>", line 82, in _request
    cookies=cookies, timeout=120, verify=False)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/core.py#L103">medusa/session/core.py</a>", line 103, in request
    timeout=timeout, verify=ssl_cert, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L533">ext/requests/sessions.py</a>", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L653">ext/requests/sessions.py</a>", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/hooks.py#L31">ext/requests/hooks.py</a>", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/hooks.py#L29">medusa/session/hooks.py</a>", line 29, in log_url
    text_body = ensure_text(request.body)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/six.py#L904">ext/six.py</a>", line 904, in ensure_text
    return s.decode(encoding, errors)
  File "/usr/local/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfe in position 1022: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@medariox

this is starting to get frustrating most of my torrent downloads are ending up Uncategorised because of these errors last one as under issue #6237 but now its a new one..
i have manually included logs. i believe this is a rare case error & only happening to some or torrents with extremely long names.

happens in both python2 & 3

also seems to be happening more on issue #5234 

edit i can reproduce this with any show.

EG: Magical Girl Spec-Ops Asuka
Scene Exception: Mahou Shoujo Tokushusen Asuka
Wanted Groups: HorribleSubs,Golumpa,Arukoru

did a manually search on EP 8.
chose provider nyaa.si (via Jackett) Horrible subs release. Torrent download & error occurs & doesnt send to Medusa Category on qbittorrent.

Running qBittorent 4.1.5 (64 bit)

refer to #5234 as error posts seem to be happing more there.

Screenshot: 
![screen shot 2019-03-02 at 3 09 02 pm](https://user-images.githubusercontent.com/2242880/53677005-ba35ef00-3cfd-11e9-9ab8-611d7add3ff1.jpg)

i feel like this is only happening via Jackett torrents not going into categories.

Seems to be only happening with any torrent snatched from Jackett.

Jackett is running on Mono: Mono JIT compiler version 5.18.0.240 (2018-08/5266e6a8f10 Tue Jan 15 21:54:10 EST 2019)

Parameters: --debug JackettConsole.exe --NoRestart

Release ver: Jackett Version 0.10.861.0

indexers setup:

```
1337x
anidex
animetosho
aniRena
btbit
btdb
btstornet
demonoid
digbt
ettv
extratorrent-ag
extratorrentclone
eztv
horriblesubs
idopeclone
ilcorsaronero
isohunt2
kickasstorrent
limetorrents
magnetdl
monova
nexttorrent
nyaa-pantsu
nyaasi
prostylex
rarbg
rutor
showrss
skytorrentsclone
solidtorrents
thepiratebay
tokyotosho
torlock
torrent9
torrentcouch
torrentdownloads
torrentfunk
torrentgalaxyorg
torrentproject2
torrentscsv
torrentz2
worldwidetorrents
yify
yts
zooqle
```

never had issues back on SC even on developer branch with Jackett surprised this is happening here...

also is this a Medusa only problem or should jackett dev look into this as well? - nothing found in jackett logs referencing these issues. seems medusa having phrasing issues from torrent data grabbed from jackett.

hope this is an easy fix as all my torrents from jackett aren't working atm due to wrong category being applied.

i'm using: nzbToMedia/TorrentToMedia.py "%D|%N|%L|%I" to process all my torrents & due to wrong category tag they won't process now.

### INFO
**Python Version**: `2.7.15 (default, Feb 12 2019, 11:00:12) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)]`
**Operating System**: `Darwin-18.2.0-x86_64-i386-64bit`
**Locale**: `None`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@94650a9f5367521a974759323b846d6cdeaa7eb4
**Link to Log**: https://gist.github.com/3e421d986c0671c8ce2b330c59c44023
### ERROR
<pre>
2019-03-02 15:26:50 ERROR    SNATCHQUEUE-SNATCH-349309 :: [94650a9] qbittorrent: Unknown exception raised when sending torrent to qbittorrent: 'utf8' codec can't decode byte 0x99 in position 1488: invalid start byte
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/clients/torrent/generic.py#L82">medusa/clients/torrent/generic.py</a>", line 82, in _request
    cookies=cookies, timeout=120, verify=False)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/core.py#L103">medusa/session/core.py</a>", line 103, in request
    timeout=timeout, verify=ssl_cert, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L533">ext/requests/sessions.py</a>", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L653">ext/requests/sessions.py</a>", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/hooks.py#L31">ext/requests/hooks.py</a>", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/hooks.py#L29">medusa/session/hooks.py</a>", line 29, in log_url
    text_body = ensure_text(request.body)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/six.py#L904">ext/six.py</a>", line 904, in ensure_text
    return s.decode(encoding, errors)
  File "/usr/local/Cellar/python@2/2.7.15_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x99 in position 1488: invalid start byte
</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@94650a9f5367521a974759323b846d6cdeaa7eb4
**Link to Log**: https://gist.github.com/8920e00906045523997a4ad2623d0b77
### ERROR
<pre>
2019-03-02 15:33:25 ERROR    SNATCHQUEUE-SNATCH-349309 :: [94650a9] qbittorrent: Unknown exception raised when sending torrent to qbittorrent: 'utf-8' codec can't decode byte 0x99 in position 1488: invalid start byte
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/clients/torrent/generic.py#L82">medusa/clients/torrent/generic.py</a>", line 82, in _request
    cookies=cookies, timeout=120, verify=False)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/core.py#L103">medusa/session/core.py</a>", line 103, in request
    timeout=timeout, verify=ssl_cert, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L533">ext/requests/sessions.py</a>", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L653">ext/requests/sessions.py</a>", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/hooks.py#L31">ext/requests/hooks.py</a>", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/hooks.py#L29">medusa/session/hooks.py</a>", line 29, in log_url
    text_body = ensure_text(request.body)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/six.py#L904">ext/six.py</a>", line 904, in ensure_text
    return s.decode(encoding, errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 1488: invalid start byte
</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@94650a9f5367521a974759323b846d6cdeaa7eb4
**Link to Log**: https://gist.github.com/77faf033156ec8c00fe8d9fb3202c47e
### ERROR
<pre>
2019-03-02 16:18:14 ERROR    SNATCHQUEUE-SNATCH-354171 :: [94650a9] qbittorrent: Unknown exception raised when sending torrent to qbittorrent: 'utf-8' codec can't decode byte 0x81 in position 858: invalid start byte
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/clients/torrent/generic.py#L82">medusa/clients/torrent/generic.py</a>", line 82, in _request
    cookies=cookies, timeout=120, verify=False)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/core.py#L103">medusa/session/core.py</a>", line 103, in request
    timeout=timeout, verify=ssl_cert, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L533">ext/requests/sessions.py</a>", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/sessions.py#L653">ext/requests/sessions.py</a>", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/requests/hooks.py#L31">ext/requests/hooks.py</a>", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/medusa/session/hooks.py#L29">medusa/session/hooks.py</a>", line 29, in log_url
    text_body = ensure_text(request.body)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/94650a9f5367521a974759323b846d6cdeaa7eb4/ext/six.py#L904">ext/six.py</a>", line 904, in ensure_text
    return s.decode(encoding, errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 858: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]`
**Operating System**: `Linux-4.18.0-16-generic-x86_64-with-Ubuntu-18.04-bionic`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@b34f1df336e52cf0a690acbc393440ac9f8b3581
**Link to Log**: https://gist.github.com/ddda5a1f6a0b6d545f42b132df57a7f9
### ERROR
<pre>
2019-04-01 09:30:01 ERROR    Thread_0 :: [b34f1df] Exception generated: 'utf-8' codec can't decode byte 0x95 in position 0: invalid start byte
Traceback (most recent call last):
  File "/opt/**********/**********/server/web/core/base.py", line 262, in async_call
    result = function(**kwargs)
  File "/opt/**********/**********/server/web/core/error_logs.py", line 149, in viewlog
    return t.render(log_lines='\n'.join(data),
  File "/opt/**********/**********/server/web/core/error_logs.py", line 143, in <genexpr>
    data = (html_escape(line) for line in read_loglines(modification_time=modification_time, formatter=text_type, max_lines=max_lines,
  File "/opt/**********/**********/logger/__init__.py", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "/opt/**********/**********/logger/__init__.py", line 278, in reverse_readlines
    lines = block.decode(encoding).split(newline)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `3.7.3rc1 (default, Mar 13 2019, 11:01:15) [GCC 8.2.0]`
**Operating System**: `Linux-4.9.35-v7+-armv7l-with-debian-buster-sid`
**Locale**: `UTF-8`
**Branch**: [develop](../tree/develop)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@9cdb57a32df1a8b1520b8a7dd732b6f01498483e
**Link to Log**: https://gist.github.com/a7677bafd09bb008e5a020ee29b2b878
### ERROR
<pre>
2019-04-11 23:13:09 ERROR    Thread_11 :: [9cdb57a] Exception generated: 'utf-8' codec can't decode byte 0x9b in position 0: invalid start byte
Traceback (most recent call last):
  File "/home/pi/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/server/web/core/base.py#L262">medusa/server/web/core/base.py</a>", line 262, in async_call
    result = function(**kwargs)
  File "/home/pi/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/server/web/core/error_logs.py#L149">medusa/server/web/core/error_logs.py</a>", line 149, in viewlog
    return t.render(log_lines='\n'.join(data),
  File "/home/pi/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/server/web/core/error_logs.py#L143">medusa/server/web/core/error_logs.py</a>", line 143, in <genexpr>
    data = (html_escape(line) for line in read_loglines(modification_time=modification_time, formatter=text_type, max_lines=max_lines,
  File "/home/pi/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/logger/__init__.py#L166">medusa/logger/__init__.py</a>", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "/home/pi/Medusa/<a href="../blob/9cdb57a32df1a8b1520b8a7dd732b6f01498483e/medusa/logger/__init__.py#L278">medusa/logger/__init__.py</a>", line 278, in reverse_readlines
    lines = block.decode(encoding).split(newline)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9b in position 0: invalid start byte
</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.14`
**Commit**: pymedusa/Medusa@f46bfacf8763204fbde4f26a5916095371d494d1
**Link to Log**: https://gist.github.com/a957f2c3ba91a4eea04d8527854da7cd
### ERROR
<pre>
2019-04-18 18:31:21 ERROR    Thread_16 :: [f46bfac] Exception generated: 'utf8' codec can't decode byte 0xb5 in position 0: invalid start byte
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/server/web/core/base.py#L262">medusa\server\web\core\base.py</a>", line 262, in async_call
    result = function(**kwargs)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/server/web/core/error_logs.py#L149">medusa\server\web\core\error_logs.py</a>", line 149, in viewlog
    return t.render(log_lines='\n'.join(data),
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/server/web/core/error_logs.py#L143">medusa\server\web\core\error_logs.py</a>", line 143, in <genexpr>
    data = (html_escape(line) for line in read_loglines(modification_time=modification_time, formatter=text_type, max_lines=max_lines,
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/logger/__init__.py#L166">medusa\logger\__init__.py</a>", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/logger/__init__.py#L278">medusa\logger\__init__.py</a>", line 278, in reverse_readlines
    lines = block.decode(encoding).split(newline)
  File "C:\Program Files\Medusa\Python\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb5 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@medariox you have a clue? Else I ask user to zip his Logs folder.

Probably similar to what this 
user reported  https://github.com/pymedusa/Medusa/issues/5463#issuecomment-441648118.

But then in ligs
There are a few strange things about this issue:
1. It occurs extremely rarely
2. It shouldn't happen as we log everything as UTF-8

I need a reliable way to reproduce this, otherwise it's going to be really hard to get to the root of it.
@pct00 pls zip your Logs?
@p0psicles attached as requested

[application.log.zip](https://github.com/pymedusa/Medusa/files/3098868/application.log.zip)



### 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.14`
**Commit**: pymedusa/Medusa@f46bfacf8763204fbde4f26a5916095371d494d1
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-04-27 17:07:58 ERROR    Thread_13 :: [f46bfac] Exception generated: 'utf8' codec can't decode byte 0x94 in position 0: invalid start byte
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/server/web/core/base.py#L262">medusa\server\web\core\base.py</a>", line 262, in async_call
    result = function(**kwargs)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/server/web/core/error_logs.py#L149">medusa\server\web\core\error_logs.py</a>", line 149, in viewlog
    return t.render(log_lines='\n'.join(data),
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/server/web/core/error_logs.py#L143">medusa\server\web\core\error_logs.py</a>", line 143, in <genexpr>
    data = (html_escape(line) for line in read_loglines(modification_time=modification_time, formatter=text_type, max_lines=max_lines,
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/logger/__init__.py#L166">medusa\logger\__init__.py</a>", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/f46bfacf8763204fbde4f26a5916095371d494d1/medusa/logger/__init__.py#L278">medusa\logger\__init__.py</a>", line 278, in reverse_readlines
    lines = block.decode(encoding).split(newline)
  File "C:\Program Files\Medusa\Python\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x94 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@pct00 you have a folder/file for the gifted like this: `Одарённые./.The.Gifted.[02x01-11.из.15].(2018).WEBRip.|.Profix.Media`
@medariox we shouldn't have any issues with utf8 decoding the logs right?
@pct00 
Please try this branch and report back: https://github.com/pymedusa/Medusa/pull/6643

### INFO
**Python Version**: `2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]`
**Operating System**: `Linux-4.19.0-0.bpo.4-amd64-x86_64-with-debian-9.9`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@f46bfacf8763204fbde4f26a5916095371d494d1
**Link to Log**: https://gist.github.com/e621422606bc42549e5da183ce6dd577
### ERROR
<pre>
2019-06-02 03:16:18 ERROR    Thread_55 :: [f46bfac] Exception generated: 'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
Traceback (most recent call last):
  File "/home37/**********/.apps/medusa/medusa/medusa/server/web/core/base.py", line 262, in async_call
    result = function(**kwargs)
  File "/home37/**********/.apps/medusa/medusa/medusa/server/web/core/error_logs.py", line 149, in viewlog
    return t.render(log_lines='\n'.join(data),
  File "/home37/**********/.apps/medusa/medusa/medusa/server/web/core/error_logs.py", line 143, in <genexpr>
    data = (html_escape(line) for line in read_loglines(modification_time=modification_time, formatter=text_type, max_lines=max_lines,
  File "/home37/**********/.apps/medusa/medusa/medusa/logger/__init__.py", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "/home37/**********/.apps/medusa/medusa/medusa/logger/__init__.py", line 278, in reverse_readlines
    lines = block.decode(encoding).split(newline)
  File "/home37/**********/.apps/medusa/venv/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Already fixed in develop

### 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.6.0-x86_64-i386-64bit`
**Locale**: `unknown`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@6a21a6001b10827d14d450135bae61729b01edf1
**Link to Log**: https://gist.github.com/359dc0c927f2754fdc001ce07f11af6b
### ERROR
<pre>
2019-06-07 16:16:21 ERROR    Thread_39 :: [6a21a60] Exception generated: 'utf-8' codec can't decode byte 0x94 in position 0: invalid start byte
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/server/web/core/base.py#L261">medusa/server/web/core/base.py</a>", line 261, in async_call
    result = function(**kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/server/web/core/error_logs.py#L62">medusa/server/web/core/error_logs.py</a>", line 62, in submit_errors
    results = self.issue_submitter.submit_github_issue(CheckVersion())
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/issue_submitter.py#L199">medusa/issue_submitter.py</a>", line 199, in submit_github_issue
    return self.submit_issues(github, github_repo, loglines, similar_issues)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/issue_submitter.py#L216">medusa/issue_submitter.py</a>", line 216, in submit_issues
    gist = cls.create_gist(github, line)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/issue_submitter.py#L75">medusa/issue_submitter.py</a>", line 75, in create_gist
    context_loglines = logline.get_context_loglines()
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L448">medusa/logger/__init__.py</a>", line 448, in get_context_loglines
    for logline in read_loglines(modification_time=start_timestamp):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L166">medusa/logger/__init__.py</a>", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L281">medusa/logger/__init__.py</a>", line 281, in reverse_readlines
    for block in block_generator(filename, **block_generator_kws):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L243">medusa/logger/__init__.py</a>", line 243, in blocks_r
    block = file_obj.read(min(remaining_size, size))
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x94 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### 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.6.0-x86_64-i386-64bit`
**Locale**: `unknown`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@6a21a6001b10827d14d450135bae61729b01edf1
**Link to Log**: https://gist.github.com/65b1da77d62388bdf1db1a28f0905994
### ERROR
<pre>
2019-06-07 16:17:00 ERROR    Thread_0 :: [6a21a60] Exception generated: 'utf-8' codec can't decode byte 0x94 in position 0: invalid start byte
Traceback (most recent call last):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/server/web/core/base.py#L261">medusa/server/web/core/base.py</a>", line 261, in async_call
    result = function(**kwargs)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/server/web/core/error_logs.py#L62">medusa/server/web/core/error_logs.py</a>", line 62, in submit_errors
    results = self.issue_submitter.submit_github_issue(CheckVersion())
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/issue_submitter.py#L199">medusa/issue_submitter.py</a>", line 199, in submit_github_issue
    return self.submit_issues(github, github_repo, loglines, similar_issues)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/issue_submitter.py#L216">medusa/issue_submitter.py</a>", line 216, in submit_issues
    gist = cls.create_gist(github, line)
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/issue_submitter.py#L75">medusa/issue_submitter.py</a>", line 75, in create_gist
    context_loglines = logline.get_context_loglines()
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L448">medusa/logger/__init__.py</a>", line 448, in get_context_loglines
    for logline in read_loglines(modification_time=start_timestamp):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L166">medusa/logger/__init__.py</a>", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L281">medusa/logger/__init__.py</a>", line 281, in reverse_readlines
    for block in block_generator(filename, **block_generator_kws):
  File "/Users/ovidijus/Apps/Medusa/<a href="../blob/6a21a6001b10827d14d450135bae61729b01edf1/medusa/logger/__init__.py#L243">medusa/logger/__init__.py</a>", line 243, in blocks_r
    block = file_obj.read(min(remaining_size, size))
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x94 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


### INFO
**Python Version**: `2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]`
**Operating System**: `Linux-4.15.0-50-generic-x86_64-with-Ubuntu-18.04-bionic`
**Locale**: `UTF-8`
**Branch**: [master](../tree/master)
**Database**: `44.14`
**Commit**: pymedusa/Medusa@6a21a6001b10827d14d450135bae61729b01edf1
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-06-10 15:19:44 ERROR    TORNADO :: [6a21a60] Uncaught exception in APIv2: UnicodeDecodeError('utf8', "\x9chello, world\xe2\x80\x9d).mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Analyzing name: TV/Valley of the Boom/Season 01/[METCON] Valley of the Boom - S01E01 - print (\xe2\x80\x9chello, world\xe2\x80\x9d).mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Using cached parse result for TV/Valley of the Boom/Season 01/[METCON] Valley of the Boom - S01E01 - print (\xe2\x80\x9chello, world\xe2\x80\x9d).mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Retrieving episode object for Valley of the Boom S01E01\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Quality of the episode we are processing: 1080p HDTV\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Snatch in history: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Manually snatched: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Info hash: None\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] NZB: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Current quality: 1080p HDTV\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] New quality: 1080p HDTV\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Proper: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] This episode is a priority download: False\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] Old file: /home/badmin/Media/Shows/TV/Valley of the Boom/Season 01/[METCON] Valley of the Boom - S01E01 - print (\xe2\x80\x9chello, world\xe2\x80\x9d).mkv\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] New file: /home/badmin/Media/Shows/TV/Valley of the Boom/Season 01/[METCON] Valley of the Boom - S01E01 - print (\xe2\x80\x9chello, world\xe2\x80\x9d).mkv\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] Old size: 1.71 GB\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] New size: 1.71 GB\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] New file is the same size.\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] File exists and the new file has the same size, aborting post-processing\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] Processing succeeded for /home/badmin/Media/Shows/TV/Valley of the Boom/Season 01/[METCON] Valley of the Boom - S01E01 - print (\xe2\x80\x9chello, world\xe2\x80\x9d).mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] You're trying to post-process an automatically searched file that has already been processed, skipping: [EDHD] Valley of the Boom - S01E05 - segfault.mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Skipping already processed file: [EDHD] Valley of the Boom - S01E05 - segfault.mkv\n2019-06-10 15:12:11 INFO     POSTPROCESSOR :: [6a21a60] Processing /home/badmin/Media/Shows/TV/Valley of the Boom/Season 01/[EDHD] Valley of the Boom - S01E06 - fatal error.mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Analyzing name: [EDHD] Valley of the Boom - S01E06 - fatal error.mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Using cached parse result for [EDHD] Valley of the Boom - S01E06 - fatal error.mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Analyzing name: TV/Valley of the Boom/Season 01/[EDHD] Valley of the Boom - S01E06 - fatal error.mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Using cached parse result for TV/Valley of the Boom/Season 01/[EDHD] Valley of the Boom - S01E06 - fatal error.mkv\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Retrieving episode object for Valley of the Boom S01E06\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Quality of the episode we are processing: 720p WEB-DL\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Snatch in history: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Manually snatched: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Info hash: None\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] NZB: False\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Current quality: 720p WEB-DL\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] New quality: 720p WEB-DL\n2019-06-10 15:12:11 DEBUG    POSTPROCESSOR :: [6a21a60] Proper: False\n2019-06-10 15:12:11 DEBUG ", 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (192.168.2.230)
Traceback (most recent call last):
  File "/opt/**********/ext/tornado/web.py", line 1592, in _execute
    result = yield result
  File "/opt/**********/ext/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/opt/**********/ext/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "/opt/**********/ext/tornado/gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "/opt/**********/**********/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/opt/**********/ext/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/opt/**********/ext/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c in position 0: invalid start byte
</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.14`
**Commit**: pymedusa/Medusa@4d4a63c850b583017e3cce56c819ac49d0ce5e35
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-06-12 20:30:55 ERROR    TORNADO :: [4d4a63c] Uncaught exception in APIv2: UnicodeDecodeError('utf8', "\xa9: Happily Ever After?' S04E03 with unwanted quality '720p WEB-DL'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.720p.WEBRip.x264-KOMPOST[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.480p.x264-mSD[eztv]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.480p.x264-mSD[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.WEBRip.x264-KOMPOST[eztv]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.WEBRip.x264-KOMPOST[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.HDTV.WebRip.allone\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.HDTV.WebRip.allone because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.480p.x264-mSD[eztv]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.480p.x264-mSD[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.WEBRip.x264-KOMPOST[eztv]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.WEBRip.x264-KOMPOST[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.HDTV.WebRip.allone\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.HDTV.WebRip.allone because one or more episodes are unwanted\n2019-06-12 19:00:40 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.720p.WEBRip.x264-KOMPOST[eztv]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ 720p WEB-DL ]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality '720p WEB-DL'\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.720p.WEBRip.x264-KOMPOST[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.720p.WEBRip.x264-KOMPOST[eztv]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ 720p WEB-DL ]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality '720p WEB-DL'\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.720p.WEBRip.x264-KOMPOST[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.480p.x264-mSD[eztv]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.480p.x264-mSD[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.WEBRip.x264-KOMPOST[eztv]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Found = [ SDTV ]\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Ignoring found result for '90 Day Fianc\xc3\xa9: Happily Ever After?' S04E03 with unwanted quality 'SDTV'\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Ignoring 90.Day.Fiance.Happily.Ever.After.S04E03.WEBRip.x264-KOMPOST[eztv] because one or more episodes are unwanted\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] Using cached parse result for 90.Day.Fiance.Happily.Ever.After.S04E03.HDTV.WebRip.allone\n2019-06-12 19:00:41 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [LimeTorrents] :: [4d4a63c] 316934: Allowed, Preferred = [ 1080p HDTV, 1080p WEB-DL, 1080p BluRay ] [ None ] Foun", 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (98.11.208.122)
Traceback (most recent call last):
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/ext/tornado/web.py#L1592">ext\tornado\web.py</a>", line 1592, in _execute
    result = yield result
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/ext/tornado/gen.py#L1141">ext\tornado\gen.py</a>", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/medusa/server/api/v2/base.py#L64">medusa\server\api\v2\base.py</a>", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Medusa\Medusa\<a href="../blob/4d4a63c850b583017e3cce56c819ac49d0ce5e35/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@VexingHex @MotleyC 
We need to know exactly when this happens (best if it is reproducible), otherwise we can't help.
@LaChocola 
Thanks. Are you post-processing the files from a remote location?
@medariox Sorry, logged into a different account on my laptop. My setup has the main OS on an SSD which is where Medusa is stored, and a Hard Drive I use for all the media and files. This is the first time I have seen a show that got snatched with quotations in it, so I believe that is the issue. Especially since I havent see that error pop up since renaming it.
@VexingHex 
I've been trying to reproduce your issue without luck. Are you sure it didn't happen while snatching the episode?
@medariox Yes, it was when it was post processing. The episode was already snatched. I know for a fact because it was when I was adding my TV show directory to the same folder my Anime goes to, since they were separate at first, and I wanted to have post processing run on the TV shows as well, which is when I moved the directory, updated Medusa to show the TV directory had moved, and then started post processing.
Strange. Please let us know if it happens again.
Will do

### 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.14`
**Commit**: pymedusa/Medusa@74c3f124fb599ad923e23f46fc320778b8b4217c
**Link to Log**: https://gist.github.com/cfe3951285d395c230349a1b18c45e6f
### ERROR
<pre>
2019-06-15 01:21:31 ERROR    TORNADO :: [74c3f12] Uncaught exception in APIv2: UnicodeDecodeError('utf8', '\x82\xd0\xbd\xd0\xb0\xd1\x8f.\xd1\x82\xd0\xb2\xd0\xb0\xd1\x80\xd1\x8c./.Swamp.Thing.[01x01-03.\xd0\xb8\xd0\xb7.10].(2019).WEB-DLRip.|.Kerob to a series in your database. Parser result: title: Swamp Thing, season: 1, episode: [1, 2, 3], year: 2019, source: Web, other: Rip, release_group: Kerob, type: episode, parsing_time: 0.0540001392365, total_time: 0.055999994278, absolute_episode: [], quality: SDTV\n2019-06-14 23:15:12 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match The.Gadget.Show.S31E11.480p.x264-mSD.[eztv] to a series in your database. Parser result: title: The Gadget Show, season: 31, episode: [11], screen_size: 480p, video_codec: H.264, video_encoder: x264, release_group: mSD, type: episode, parsing_time: 0.0339999198914, total_time: 0.0349998474121, absolute_episode: [], quality: SDTV\n2019-06-14 23:15:12 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Hit old cached items, not parsing any more for: zooqle\n2019-06-14 23:15:12 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ThePirateBay] :: [74c3f12] Updating providers cache\n2019-06-14 23:15:12 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [ThePirateBay] :: [74c3f12] Search mode: RSS\n2019-06-14 23:15:12 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] GET URL: https://www.shanaproject.com/search/1/?sort=date&dir=Descending&title=Tate+no+Yuusha+no+Nariagari [Status: 200]\n2019-06-14 23:15:12 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] User-Agent: Medusa/0.3.4 (Windows; 10; 47985c5e-8ed0-11e9-83c0-001a7dda7113)\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 23 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 23 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 23 [1080p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 23 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 23 [720p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 22 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 22 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 22 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 22 [1080p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 21 [720p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 21 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 21 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 21 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 20 [1080p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 20 [720p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 20 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 20 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 20 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 19 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 19 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 19 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 18 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 18 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 18 [720p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 18 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 17 [720p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 17 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 17 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 17 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate no Yuusha no Nariagari - 16 [1080p][Multiple Subtitle].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 16 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 16 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 16 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [BakedFish] Tate no Yuusha no Nariagari - 15 [720p][AAC].mp4 with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 15 [1080p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 15 [720p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [HorribleSubs] Tate no Yuusha no Nariagari - 15 [480p].mkv with 1 seeders and 0 leechers\n2019-06-14 23:15:13 DEBUG    FINDPROPERS :: [ShanaProject] :: [74c3f12] Found result: [Erai-raws] Tate', 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (127.0.0.1)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/web.py#L1592">ext\tornado\web.py</a>", line 1592, in _execute
    result = yield result
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1141">ext\tornado\gen.py</a>", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/medusa/server/api/v2/base.py#L64">medusa\server\api\v2\base.py</a>", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 0: invalid start byte
</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.14`
**Commit**: pymedusa/Medusa@74c3f124fb599ad923e23f46fc320778b8b4217c
**Link to Log**: https://gist.github.com/000633d0671087bed47e8f52437ec577
### ERROR
<pre>
2019-06-14 23:18:52 ERROR    TORNADO :: [74c3f12] Uncaught exception in APIv2: UnicodeDecodeError('utf8', "\x83\xe3\x82\xaf).[\xe4\xbc\x8a\xe9\xa7\x92\xe4\xb8\x80\xe5\xb9\xb3].\xe6\x9c\x9d\xe8\xb5\xb7\xe3\x81\x8d\xe3\x81\x9f\xe3\x82\x89\xe3\x83\x8f\xe3\x83\x80\xe3\x82\xab\xe3\x81\xae\xe4\xb8\x96\xe7\x95\x8c.zip to a series in your database. Parser result: title: \xe6\x9c\x9d\xe8\xb5\xb7\xe3\x81\x8d\xe3\x81\x9f\xe3\x82\x89\xe3\x83\x8f\xe3\x83\x80\xe3\x82\xab\xe3\x81\xae\xe4\xb8\x96\xe7\x95\x8c zip, mimetype: application/x-zip-compressed, type: episode, parsing_time: 0.0200002193451, total_time: 0.0210001468658, absolute_episode: [], quality: Unknown, episode: [], season: None\n2019-06-14 19:55:29 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TokyoToshokan] :: [74c3f12] Unable to match (\xe6\x88\x90\xe5\xb9\xb4\xe3\x82\xb3\xe3\x83\x9f\xe3\x83\x83\xe3\x82\xaf).[SMAC].\xe9\x9c\xb2\xe5\x87\xba\xe3\x82\xaa\xe3\x83\x88\xe3\x83\xa1more.\xef\xbd\x9e\xe3\x81\x82\xe3\x81\x9f\xe3\x81\x97\xe3\x81\xae\xe5\x85\xa8\xe8\xa3\xb8\xe2\x80\xa6\xe3\x82\x82\xe3\x81\xa3\xe3\x81\xa8\xe8\xa6\x8b\xe3\x81\xa6\xe3\x81\xa3!\xef\xbd\x9e.[DL\xe7\x89\x88].zip to a series in your database. Parser result: title: \xe9\x9c\xb2\xe5\x87\xba\xe3\x82\xaa\xe3\x83\x88\xe3\x83\xa1more \xef\xbd\x9e\xe3\x81\x82\xe3\x81\x9f\xe3\x81\x97\xe3\x81\xae\xe5\x85\xa8\xe8\xa3\xb8\xe2\x80\xa6\xe3\x82\x82\xe3\x81\xa3\xe3\x81\xa8\xe8\xa6\x8b\xe3\x81\xa6\xe3\x81\xa3!\xef\xbd\x9e, episode_title: zip, mimetype: application/x-zip-compressed, type: episode, parsing_time: 0.0210001468658, total_time: 0.0220000743866, absolute_episode: [], quality: Unknown, episode: [], season: None\n2019-06-14 19:55:29 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TokyoToshokan] :: [74c3f12] Unable to match (\xe5\x90\x8c\xe4\xba\xbaCG\xe9\x9b\x86).[\xe8\x8b\xba\xe3\x83\x89\xe3\x83\xac\xe3\x83\x83\xe3\x82\xb7\xe3\x83\xb3\xe3\x82\xb0.(\xe8\x82\x89\xe3\x81\x9d\xe3\x81\x86\xe3\x81\x8d\xe3\x82\x85\xe3\x83\xbc\xe3\x80\x82)].\xe5\xa4\x8f\xe4\xbc\x91\xe3\x81\xbf\xe7\x9b\xa3\xe7\xa6\x81\xe6\x80\xa7\xe6\xb4\xbb.\xef\xbd\x9e\xe5\x84\xaa\xe7\xad\x89\xe7\x94\x9f\xe3\x82\x92\xe9\x9b\x8c\xe5\xa5\xb4\xe9\x9a\xb7\xe3\x81\xab\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xbe\xe3\x81\xa7\xe5\xbe\xb9\xe5\xba\x95\xe7\x9a\x84\xe3\x81\xab\xe8\xaa\xbf\xe6\x95\x99\xe3\x81\x99\xe3\x82\x8b\xe4\xba\x8c\xe9\x80\xb1\xe9\x96\x93\xef\xbd\x9e.zip to a series in your database. Parser result: release_group: CG, title: \xe5\xa4\x8f\xe4\xbc\x91\xe3\x81\xbf\xe7\x9b\xa3\xe7\xa6\x81\xe6\x80\xa7\xe6\xb4\xbb \xef\xbd\x9e\xe5\x84\xaa\xe7\xad\x89\xe7\x94\x9f\xe3\x82\x92\xe9\x9b\x8c\xe5\xa5\xb4\xe9\x9a\xb7\xe3\x81\xab\xe3\x81\xaa\xe3\x82\x8b\xe3\x81\xbe\xe3\x81\xa7\xe5\xbe\xb9\xe5\xba\x95\xe7\x9a\x84\xe3\x81\xab\xe8\xaa\xbf\xe6\x95\x99\xe3\x81\x99\xe3\x82\x8b\xe4\xba\x8c\xe9\x80\xb1\xe9\x96\x93\xef\xbd\x9e zip, mimetype: application/x-zip-compressed, type: episode, parsing_time: 0.0220000743866, total_time: 0.0230000019073, absolute_episode: [], quality: Unknown, episode: [], season: None\n2019-06-14 19:55:29 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Updating providers cache\n2019-06-14 19:55:29 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Search mode: RSS\n2019-06-14 19:55:29 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Searching only confirmed torrents\n2019-06-14 19:55:32 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] GET URL: https://nyaa.si/?q=&c=1_0&page=rss&f=2 [Status: 200]\n2019-06-14 19:55:32 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] User-Agent: Medusa/0.3.4 (Windows; 10; 47985c5e-8ed0-11e9-83c0-001a7dda7113)\n2019-06-14 19:55:34 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Midara.na.Ao-chan.wa.Benkyou.ga.Dekinai.-.11.[1080p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Midara na Ao-chan wa Benkyou ga Dekinai, episode: [], absolute_episode: [11], screen_size: 1080p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0269999504089, total_time: 0.0280001163483, quality: 1080p HDTV, season: None\n2019-06-14 19:55:34 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Midara.na.Ao-chan.wa.Benkyou.ga.Dekinai.-.11.[720p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Midara na Ao-chan wa Benkyou ga Dekinai, episode: [], absolute_episode: [11], screen_size: 720p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0510001182556, total_time: 0.0529999732971, quality: 720p HDTV, season: None\n2019-06-14 19:55:34 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Midara.na.Ao-chan.wa.Benkyou.ga.Dekinai.-.11.[480p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Midara na Ao-chan wa Benkyou ga Dekinai, episode: [], absolute_episode: [11], screen_size: 480p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.119999885559, total_time: 0.12299990654, quality: SDTV, season: None\n2019-06-14 19:55:34 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Senryuu.Shoujo.-.11.[1080p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Senryuu Shoujo, episode: [], absolute_episode: [11], screen_size: 1080p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.115999937057, total_time: 0.118999958038, quality: 1080p HDTV, season: None\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Senryuu.Shoujo.-.11.[480p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Senryuu Shoujo, episode: [], absolute_episode: [11], screen_size: 480p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0600001811981, total_time: 0.0610001087189, quality: SDTV, season: None\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Senryuu.Shoujo.-.11.[720p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Senryuu Shoujo, episode: [], absolute_episode: [11], screen_size: 720p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0230000019073, total_time: 0.0249998569489, quality: 720p HDTV, season: None\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].JoJo's.Bizarre.Adventure.-.Golden.Wind.-.34.[720p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: JoJo's Bizarre Adventure, alias: JoJo's Bizarre Adventure - Golden Wind, alternative_title: Golden Wind, episode: [], absolute_episode: [34], screen_size: 720p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0250000953674, total_time: 0.0260000228882, quality: 720p HDTV, season: None\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Fruits.Basket.(2019).-.11.[1080p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Fruits Basket, year: 2019, season: 2019, episode: [], absolute_episode: [11], screen_size: 1080p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0329999923706, total_time: 0.0339999198914, quality: 1080p HDTV\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Fruits.Basket.(2019).-.11.[480p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Fruits Basket, year: 2019, season: 2019, episode: [], absolute_episode: [11], screen_size: 480p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0299999713898, total_time: 0.0310001373291, quality: SDTV\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].JoJo's.Bizarre.Adventure.-.Golden.Wind.-.34.[1080p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: JoJo's Bizarre Adventure, alias: JoJo's Bizarre Adventure - Golden Wind, alternative_title: Golden Wind, episode: [], absolute_episode: [34], screen_size: 1080p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0269999504089, total_time: 0.0280001163483, quality: 1080p HDTV, season: None\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].Fruits.Basket.(2019).-.11.[720p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: Fruits Basket, year: 2019, season: 2019, episode: [], absolute_episode: [11], screen_size: 720p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0309998989105, total_time: 0.0320000648499, quality: 720p HDTV\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [HorribleSubs].JoJo's.Bizarre.Adventure.-.Golden.Wind.-.34.[480p].mkv to a series in your database. Parser result: release_group: HorribleSubs, title: JoJo's Bizarre Adventure, alias: JoJo's Bizarre Adventure - Golden Wind, alternative_title: Golden Wind, episode: [], absolute_episode: [34], screen_size: 480p, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.0260000228882, total_time: 0.0269999504089, quality: SDTV, season: None\n2019-06-14 19:55:35 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [PuyaSubs!].Bungou.Stray.Dogs.3.-.35.[720p][65BD3FC4].mkv to a series in your database. Parser result: release_group: PuyaSubs, title: Bungou Stray Dogs 3, episod", 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (127.0.0.1)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/web.py#L1592">ext\tornado\web.py</a>", line 1592, in _execute
    result = yield result
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1141">ext\tornado\gen.py</a>", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/medusa/server/api/v2/base.py#L64">medusa\server\api\v2\base.py</a>", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0x83 in position 0: invalid start byte
</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.14`
**Commit**: pymedusa/Medusa@74c3f124fb599ad923e23f46fc320778b8b4217c
**Link to Log**: https://gist.github.com/636165aac92ecebbe813c45b4d710e0f
### ERROR
<pre>
2019-06-14 23:18:11 ERROR    TORNADO :: [74c3f12] Uncaught exception in APIv2: UnicodeDecodeError('utf8', "\xbe\xd0\xb4\xd1\x8b: \xd0\x91\xd0\xb8\xd1\x82\xd0\xb2\xd0\xb0 \xd1\x86\xd0\xb8\xd0\xb2\xd0\xb8\xd0\xbb\xd0\xb8\xd0\xb7\xd0\xb0\xd1\x86\xd0\xb8\xd0\xb9, year: 2019, source: Satellite, other: Rip, type: episode, parsing_time: 0.0250000953674, total_time: 0.0260000228882, absolute_episode: [], quality: SDTV, episode: [], season: None\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Deadliest.Catch.S15E10.Curse.of.the.Russian.Line.720p.AMZN.WEB-DL.DDP2.0.H....[eztv] to a series in your database. Parser result: title: Deadliest Catch, season: 15, episode: [10], episode_title: Curse of the, language: ru, other: Line Audio, screen_size: 720p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 2.0, release_group: H, type: episode, parsing_time: 0.0379998683929, total_time: 0.0389997959137, absolute_episode: [], quality: 720p WEB-DL\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match House.Hunters.S170E12.Out.of.Time.in.Montana.WEB.x264-CAFFEiNE.[eztv] to a series in your database. Parser result: title: House Hunters, season: 170, episode: [12], episode_title: Out of Time in Montana, source: Web, video_codec: H.264, video_encoder: x264, release_group: CAFFEiNE, type: episode, parsing_time: 0.0319998264313, total_time: 0.0339999198914, absolute_episode: [], quality: SDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match My.Lottery.Dream.Home.S07E08.Make.Me.a.Millionaire.WEB.x264-CAFFEiNE.[eztv] to a series in your database. Parser result: title: My Lottery Dream Home, season: 7, episode: [8], episode_title: Make Me a Millionaire, source: Web, video_codec: H.264, video_encoder: x264, release_group: CAFFEiNE, type: episode, parsing_time: 0.0320000648499, total_time: 0.0329999923706, absolute_episode: [], quality: SDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match My.Lottery.Dream.Home.S07E08.Make.Me.a.Millionaire.720p.WEB.x264-CAFFEiNE.[eztv] to a series in your database. Parser result: title: My Lottery Dream Home, season: 7, episode: [8], episode_title: Make Me a Millionaire, screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: CAFFEiNE, type: episode, parsing_time: 0.0349998474121, total_time: 0.0360000133514, absolute_episode: [], quality: 720p WEB-DL\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match House.Hunters.S165E02.First.Move.for.First.Generation.WEB.x264-CAFFEiNE.[eztv] to a series in your database. Parser result: title: House Hunters, season: 165, episode: [2], episode_title: First Move for First Generation, source: Web, video_codec: H.264, video_encoder: x264, release_group: CAFFEiNE, type: episode, parsing_time: 0.0309998989105, total_time: 0.0329999923706, absolute_episode: [], quality: SDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Texas.Flip.N.Move.S12E10.The.Snow.Sisters.Coastal.Farmhouse.720p.WEB....[eztv] to a series in your database. Parser result: title: Texas Flip N Move, season: 12, episode: [10], episode_title: The Snow Sisters Coastal Farmhouse, screen_size: 720p, source: Web, release_group: eztv, type: episode, parsing_time: 0.0320000648499, total_time: 0.0329999923706, absolute_episode: [], quality: 720p WEB-DL\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Texas.Flip.N.Move.S12E10.The.Snow.Sisters.Coastal.Farmhouse.WEB.x264-CAFFEiNE.[eztv] to a series in your database. Parser result: title: Texas Flip N Move, season: 12, episode: [10], episode_title: The Snow Sisters Coastal Farmhouse, source: Web, video_codec: H.264, video_encoder: x264, release_group: CAFFEiNE, type: episode, parsing_time: 0.0319998264313, total_time: 0.0329999923706, absolute_episode: [], quality: SDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match House.Hunters.International.S141E12.Poppin.Bottles.Bahamas-Style.WEBRip....[eztv] to a series in your database. Parser result: title: House Hunters International, season: 141, episode: [12], episode_title: Poppin Bottles Bahamas-Style, source: Web, other: Rip, release_group: eztv, type: episode, parsing_time: 0.029000043869, total_time: 0.0299999713898, absolute_episode: [], quality: SDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Strange.Evidence.S03E02.Stargate.in.the.Jungle.720p.WEB.x264-CAFFEiNE.[eztv] to a series in your database. Parser result: title: Strange Evidence, season: 3, episode: [2], episode_title: Stargate in the Jungle, screen_size: 720p, source: Web, video_codec: H.264, video_encoder: x264, release_group: CAFFEiNE, type: episode, parsing_time: 0.0360000133514, total_time: 0.0380001068115, absolute_episode: [], quality: 720p WEB-DL\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match The.Hotel.Inspector.S15E02.720p.HDTV.x264-PLUTONiUM[rarbg] to a series in your database. Parser result: title: The Hotel Inspector, season: 15, episode: [2], screen_size: 720p, source: HDTV, video_codec: H.264, video_encoder: x264, release_group: PLUTONiUM, type: episode, parsing_time: 0.0329999923706, total_time: 0.0340001583099, absolute_episode: [], quality: 720p HDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match The.Name.of.the.Rose.S01.RERIP.WEBRip.x264-ION10 to a series in your database. Parser result: title: The Name of the Rose, season: 1, other: [u'Proper', u'Rip'], proper_count: 1, proper_tag: RERIP, source: Web, video_codec: H.264, video_encoder: x264, release_group: ION10, type: episode, parsing_time: 0.0269999504089, total_time: 0.0279998779297, absolute_episode: [], quality: SDTV, episode: []\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Seth.Meyers.2019.06.13.WEBRip.x264-ION10 to a series in your database. Parser result: title: Seth Meyers, date: 2019-06-13, source: Web, other: Rip, video_codec: H.264, video_encoder: x264, release_group: ION10, type: episode, parsing_time: 0.0360000133514, total_time: 0.0369999408722, absolute_episode: [], quality: SDTV, episode: [], season: None\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Your.Pretty.Face.Is.Going.To.Hell.S04E11.WEBRip.x264-eSc[TGx] to a series in your database. Parser result: title: Your Pretty Face Is Going To Hell, season: 4, episode: [11], source: Web, other: Rip, video_codec: H.264, video_encoder: x264, release_group: eSc, type: episode, parsing_time: 0.0310001373291, total_time: 0.0320000648499, absolute_episode: [], quality: SDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match BBC.Springwatch.2019.12of12.720p.HDTV.x264.AAC to a series in your database. Parser result: title: BBC Springwatch, year: 2019, season: 2019, episode: [12], episode_count: 12, screen_size: 720p, source: HDTV, video_codec: H.264, video_encoder: x264, audio_codec: AAC, mimetype: audio/vnd.dlna.adts, type: episode, parsing_time: 0.0370001792908, total_time: 0.0380001068115, absolute_episode: [], quality: 720p HDTV\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match Titans.2018.S01.720p.NF.WEBRip.DDP5.1.x264-NTG[rartv] to a series in your database. Parser result: title: Titans, alias: Titans 2018, year: 2018, season: 1, screen_size: 720p, streaming_service: Netflix, source: Web, other: Rip, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, video_encoder: x264, release_group: NTG, type: episode, parsing_time: 0.0440001487732, total_time: 0.0450000762939, absolute_episode: [], quality: 720p WEB-DL, episode: []\n2019-06-14 19:55:20 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Zooqle] :: [74c3f12] Unable to match BBC.Springwatch.2019.03of12.720p.HDTV.x264.AAC to a series in your database. Parser result: title: BBC Springwatch, year: 2019, season: 2019, episode: [3], episode_count: 12, screen_size: 720p, source: HDTV, video_codec: H.264, video_encoder: x264, audio_codec: AAC, mimetype: audi", 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (127.0.0.1)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/web.py#L1592">ext\tornado\web.py</a>", line 1592, in _execute
    result = yield result
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1141">ext\tornado\gen.py</a>", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/medusa/server/api/v2/base.py#L64">medusa\server\api\v2\base.py</a>", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbe in position 0: invalid start byte
</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.14`
**Commit**: pymedusa/Medusa@74c3f124fb599ad923e23f46fc320778b8b4217c
**Link to Log**: https://gist.github.com/a29871374545c530bc4ceccf99779252
### ERROR
<pre>
2019-06-14 21:20:51 ERROR    TORNADO :: [74c3f12] Uncaught exception in APIv2: UnicodeDecodeError('utf8', "\xbc\x81\xef\xbc\x9f, episode: [], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0440001487732, total_time: 0.0450000762939, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Mayonaka.no.Occult.Koumuin.-.10.RAW.(BS11.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Mayonaka no Occult Koumuin, episode: [], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0449998378754, total_time: 0.0460000038147, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].King.of.Prism\xef\xbc\x9a.Shiny.Seven.Stars.-.09.RAW.(TX.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: King of Prism\xef\xbc\x9a Shiny Seven Stars, episode: [], absolute_episode: [9], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0429999828339, total_time: 0.0439999103546, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Kidou.Senshi.Gundam\xef\xbc\x9a.The.Origin.-.Zen'ya.Akai.Suisei.-.07.RAW.(NHKG.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Kidou Senshi Gundam\xef\xbc\x9a The Origin, alias: Kidou Senshi Gundam\xef\xbc\x9a The Origin - Zen'ya Akai Suisei, alternative_title: Zen'ya Akai Suisei, episode: [], absolute_episode: [7], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0449998378754, total_time: 0.0460000038147, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Joshi.Kausei.-.10.RAW.(ATX.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Joshi Kausei, episode: [], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.039999961853, total_time: 0.0409998893738, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Hachigatsu.no.Cinderella.Nine.-.08.RAW.(TX.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Hachigatsu no Cinderella Nine, episode: [], absolute_episode: [8], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0419998168945, total_time: 0.0429999828339, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Gunjou.no.Magmell.-.10.RAW.(BSFUJI.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Gunjou no Magmell, episode: [], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.039999961853, total_time: 0.0410001277924, quality: 720p HDTV, season: None\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Series Fairy gone is anime\n2019-06-14 19:55:37 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Looking up XEM scene mapping for show ID 359645 on tvdb\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] GET URL: http://thexem.de/map/havemap?origin=tvdb [Status: 200]\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] User-Agent: Medusa/0.3.4 (Windows; 10; 47985c5e-8ed0-11e9-83c0-001a7dda7113)\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] No XEM data for show ID 359645 on tvdb\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] 359645: Season and episode lookup for Fairy gone using absolute number 10\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] 359645: Found season and episode which is Fairy gone S01E10\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] 359645: Setter sets location to D:\\STORAGE\\0---ANIME\\Fairy Gone\\Fairy gone - S01E10 - Episode 10.mkv\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Scene numbering enabled anime series Fairy gone using indexer numbering #10: S01E10\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Converted parsed result [Leopard-Raws].Fairy.Gone.-.10.RAW.(BS11.1280x720.x264.AAC).mp4 into release_group: Leopard-Raws, title: Fairy Gone, episode: [10], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0429999828339, total_time: None, quality: 720p HDTV, season: 1\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Matched release [Leopard-Raws].Fairy.Gone.-.10.RAW.(BS11.1280x720.x264.AAC).mp4 to a series in your database: Fairy gone\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Parsed [Leopard-Raws].Fairy.Gone.-.10.RAW.(BS11.1280x720.x264.AAC).mp4 into release_group: Leopard-Raws, title: Fairy Gone, episode: [10], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0429999828339, total_time: 0.371000051498, quality: 720p HDTV, season: 1\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Updating item: [Leopard-Raws].Fairy.Gone.-.10.RAW.(BS11.1280x720.x264.AAC).mp4 to cache: nyaa\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Dororo.-.22.RAW.(BS11.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Dororo, episode: [], absolute_episode: [22], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0739998817444, total_time: 0.0750000476837, quality: 720p HDTV, season: None\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Unable to match [Leopard-Raws].Chou.Kadou.Girl.1\xef\xbc\x8f6\xef\xbc\x9a.Amazing.Stranger.-.10.RAW.(ATX.1280x720.x264.AAC).mp4 to a series in your database. Parser result: release_group: Leopard-Raws, title: Chou Kadou Girl 1\xef\xbc\x8f6\xef\xbc\x9a Amazing Stranger, episode: [], absolute_episode: [10], episode_title: RAW, screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mp4, mimetype: video/mp4, type: episode, parsing_time: 0.0439999103546, total_time: 0.0450000762939, quality: 720p HDTV, season: None\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] Series Boruto: Naruto Next Generations is anime\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] 321285: Season and episode lookup for Boruto: Naruto Next Generations using absolute number 110\n2019-06-14 19:55:38 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [Nyaa] :: [74c3f12] 321285: Found season and episode which is Boruto: Naruto Next Generations S01E110\n2019-06-14 19:55:3", 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (127.0.0.1)
Traceback (most recent call last):
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/web.py#L1592">ext\tornado\web.py</a>", line 1592, in _execute
    result = yield result
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1141">ext\tornado\gen.py</a>", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/medusa/server/api/v2/base.py#L64">medusa\server\api\v2\base.py</a>", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/gen.py#L1133">ext\tornado\gen.py</a>", line 1133, in run
    value = future.result()
  File "C:\Program Files\Medusa\Medusa\<a href="../blob/74c3f124fb599ad923e23f46fc320778b8b4217c/ext/tornado/concurrent.py#L261">ext\tornado\concurrent.py</a>", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbc in position 0: invalid start byte
</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.9.0-8-amd64-x86_64-with`
**Locale**: `None`
**Branch**: [master](../tree/master)
**Database**: `44.13`
**Commit**: pymedusa/Medusa@
**Link to Log**: **No Log available**
### ERROR
<pre>
2019-07-08 10:41:12 ERROR    TORNADO :: [] Uncaught exception in APIv2: UnicodeDecodeError('utf8', '\x89pisode 9.avi\nKnowIt reported:\n+-------------------------------------------------------+\n|                   KnowIt 0.3.0-dev                    |\n+-------------------------------------------------------+\n|                      pymediainfo                      |\n|                         3.2.1                         |\n|                   libmediainfo.so.0                   |\n|                         v19.4                         |\n|                                                       |\n|                                                       |\n|                        enzyme                         |\n|                         0.4.2                         |\n+-------------------------------------------------------+\n|                   profile: default                    |\n+-------------------------------------------------------+\nTraceback (most recent call last):\n  File "/app/medusa/ext/knowit/api.py", line 64, in know\n    result = provider.describe(video_path, context)\n  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 285, in describe\n    media_info = self.executor.extract_info(video_path)\n  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 100, in extract_info\n    return self._execute(filename)\n  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 167, in _execute\n    return MediaInfo.parse(filename, library_file=self.location)\n  File "/app/medusa/lib/pymediainfo/__init__.py", line 266, in parse\n    " with libmediainfo".format(filename))\nUnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\xe9\' in position 62: ordinal not in range(128)\n\n+-------------------------------------------------------+\n|      Please report any bug or feature request at      |\n|       https://github.com/ratoaq2/knowit/issues.       |\n+-------------------------------------------------------+\n2019-07-08 09:52:10 WARNING  SHOWQUEUE-REFRESH :: [] An error occurred while parsing: /Disques/Serie/LE BUREAU DES LEGENDES/Saison 3/Le bureau des l\xc3\xa9gendes - S03E08 - \xc3\x89pisode 8.avi\nKnowIt reported:\n+-------------------------------------------------------+\n|                   KnowIt 0.3.0-dev                    |\n+-------------------------------------------------------+\n|                      pymediainfo                      |\n|                         3.2.1                         |\n|                   libmediainfo.so.0                   |\n|                         v19.4                         |\n|                                                       |\n|                                                       |\n|                        enzyme                         |\n|                         0.4.2                         |\n+-------------------------------------------------------+\n|                   profile: default                    |\n+-------------------------------------------------------+\nTraceback (most recent call last):\n  File "/app/medusa/ext/knowit/api.py", line 64, in know\n    result = provider.describe(video_path, context)\n  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 285, in describe\n    media_info = self.executor.extract_info(video_path)\n  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 100, in extract_info\n    return self._execute(filename)\n  File "/app/medusa/ext/knowit/providers/mediainfo.py", line 167, in _execute\n    return MediaInfo.parse(filename, library_file=self.location)\n  File "/app/medusa/lib/pymediainfo/__init__.py", line 266, in parse\n    " with libmediainfo".format(filename))\nUnicodeEncodeError: \'ascii\' codec can\'t encode character u\'\\xe9\' in position 62: ordinal not in range(128)\n\n+-------------------------------------------------------+\n|      Please report any bug or feature request at      |\n|       https://github.com/ratoaq2/knowit/issues.       |\n+-------------------------------------------------------+\n2019-07-08 09:52:10 WARNING  SHOWQUEUE-REFRESH :: [] An error occurred while parsing: /Disques/Serie/LE BUREAU DES LEGENDES/Saison 3/Le bureau des l\xc3\xa9gendes - S03E02 - \xc3\x89pisode 2.avi\nKnowIt reported:\n+-------------------------------------------------------+\n|  ', 0, 1, 'invalid start byte')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (192.168.1.101)
Traceback (most recent call last):
  File "/app/medusa/ext/tornado/web.py", line 1592, in _execute
    result = yield result
  File "/app/medusa/ext/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/app/medusa/ext/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "/app/medusa/ext/tornado/gen.py", line 1141, in run
    yielded = self.gen.throw(*exc_info)
  File "/app/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/app/medusa/ext/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/app/medusa/ext/tornado/concurrent.py", line 261, in result
    raise_exc_info(self._exc_info)
  File "<string>", line 3, in raise_exc_info
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte
</pre>
---
_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators


Resolving patch:
diff --git a/medusa/logger/__init__.py b/medusa/logger/__init__.py
--- a/medusa/logger/__init__.py
+++ b/medusa/logger/__init__.py
@@ -203,7 +203,7 @@ def read_loglines(log_file=None, modification_time=None, start_index=0, max_line
                 yield formatter(logline)
 
 
-def blocks_r(filename, size=64 * 1024, reset_offset=True, encoding='utf-8'):
+def blocks_r(file_path, size=64 * 1024):
     """
     Yields the data within a file in reverse-ordered blocks of given size.
 
@@ -215,38 +215,25 @@ def blocks_r(filename, size=64 * 1024, reset_offset=True, encoding='utf-8'):
      - the content of the block is NOT reversed.
 
     Args:
-        filename (str): The input file name.
-        size (int|None): The block size.
-            If int, the file is yielded in blocks of the specified size.
-            If None, the file is yielded at once.
-        reset_offset (bool): Reset the file offset.
-            If True, starts reading from the end of the file.
-            Otherwise, starts reading from where the file current position is.
-        encoding (str|None): The encoding for correct block size computation.
-            If `str`, must be a valid string encoding.
-            If None, the default encoding is used.
+        file_path (str): The input file path.
+        size (int): The block size.
 
     Yields:
-        block (str): The data within the blocks.
+        block (bytes): The data within the blocks.
 
     """
-    with io.open(filename, 'r', encoding=encoding) as file_obj:
-        offset = 0
-        if reset_offset:
-            file_size = remaining_size = file_obj.seek(0, os.SEEK_END)
-        else:
-            file_size = remaining_size = file_obj.tell()
-        rounding = 0
+    with io.open(file_path, 'rb') as file_obj:
+        remaining_size = file_obj.seek(0, os.SEEK_END)
         while remaining_size > 0:
-            offset = min(file_size, offset + size)
-            file_obj.seek(file_size - offset)
-            block = file_obj.read(min(remaining_size, size))
-            remaining_size -= size
-            yield block[:len(block) + rounding] if rounding else block
+            block_size = min(remaining_size, size)
+            file_obj.seek(remaining_size - block_size)
+            block = file_obj.read(block_size)
+            remaining_size -= block_size
+            yield block
 
 
-def reverse_readlines(filename, skip_empty=True, append_newline=False, block_size=512 * 1024,
-                      reset_offset=True, encoding='utf-8'):
+def reverse_readlines(file_path, skip_empty=True, append_newline=False,
+                      block_size=128 * 1024, encoding='utf-8'):
     """
     Flexible function for reversing read lines incrementally.
 
@@ -255,18 +242,11 @@ def reverse_readlines(filename, skip_empty=True, append_newline=False, block_siz
     All credits go to the original author.
 
     Args:
-        filename (str): The input file name.
+        file_path (str): The input file path.
         skip_empty (bool): Skip empty lines.
-        append_newline (bool):
-        block_size (int|None): The block size.
-            If int, the file is processed in blocks of the specified size.
-            If None, the file is processed at once.
-        reset_offset (bool): Reset the file offset.
-            If True, starts reading from the end of the file.
-            Otherwise, starts reading from where the file current position is.
-        encoding (str|None): The encoding for correct block size computation.
-            If `str`, must be a valid string encoding.
-            If None, the default encoding is used.
+        append_newline (bool): Append a new line character at the end of each yielded line.
+        block_size (int): The block size.
+        encoding (str): The encoding for correct block size computation.
 
     Yields:
         line (str): The next line.
@@ -275,20 +255,18 @@ def reverse_readlines(filename, skip_empty=True, append_newline=False, block_siz
     newline = '\n'
     empty = ''
     remainder = empty
-    block_generator_kws = dict(size=block_size, reset_offset=reset_offset,
-                               encoding=encoding)
     block_generator = blocks_r
-    for block in block_generator(filename, **block_generator_kws):
-        lines = block.split(newline)
+    for block in block_generator(file_path, size=block_size):
+        lines = block.split(b'\n')
         if remainder:
             lines[-1] = lines[-1] + remainder
         remainder = lines[0]
         mask = slice(-1, 0, -1)
         for line in lines[mask]:
             if line or not skip_empty:
-                yield line + (newline if append_newline else empty)
+                yield line.decode(encoding) + (newline if append_newline else empty)
     if remainder or not skip_empty:
-        yield remainder + (newline if append_newline else empty)
+        yield remainder.decode(encoding) + (newline if append_newline else empty)
 
 
 def filter_logline(logline, min_level=None, thread_name=None, search_query=None):


Test patch: