# Buggy code
def send_request(self, request):
    data = (request.format(),)
    payload = zlib.compress(rencode.dumps(data))
    self.conn.sendall(payload)

    buf = b""

    while True:
        data = self.conn.recv(1024)

        if not data:
            self.connected = False
            break

        buf += data
        dobj = zlib.decompressobj()

        try:
            message = rencode.loads(dobj.decompress(buf))
        except (ValueError, zlib.error, struct.error):
            # Probably incomplete data, read more
            continue
        else:
            buf = dobj.unused_data

        yield message


# Traceback (UnicodeDecodeError)
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Matched release Legion.S02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free to a series in your database: Legion
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Parsed Legion.S02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free into title: Legion, season: 2, container: mkv, video_codec: H.264, audio_codec: AC3, source: Web, other: Dual Audio, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.266945123672, total_time: 0.273215055466, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=173071&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E01.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Updating item: Legion.S02E01.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free to cache: bj_share
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E01.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Updating item: Legion.S02E01.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free to cache: bj_share
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02E02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=172953&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02E02.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=172954&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E04.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02E04.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=172960&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E04.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02E04.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=172962&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E05.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02E05.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=172963&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Using cached parse result for Legion.S02E05.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Added item: Legion.S02E05.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.720p.Free to cache: bj_share with url https://bj-share.info/torrents.php?action=download&id=172964&authkey=a3aab5c4262e55a3c7a40fb5144eafaf&torrent_pass=3208eb08bcebb6939ae4e5b51f26bd21
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match High.Score.Girl.-.S01E11.MKV.H.264.AAC.HDTV.Legendado.Japon��s.720p to a series in your database. Parser result: title: High Score Girl, season: 1, episode: [11], container: mkv, video_codec: H.264, audio_codec: AAC, source: HDTV, subtitle_language: und, release_group: Japon��s, screen_size: 720p, type: episode, parsing_time: 0.236009836197, total_time: 0.473176002502, absolute_episode: [], quality: 720p HDTV
2018-09-24 23:16:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Kyoto.Teramachi.Sanjou.no.Holmes.-.S01.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.1080p.Free to a series in your database. Parser result: title: Kyoto Teramachi Sanjou no Holmes, season: 1, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.237040996552, total_time: 0.247921943665, absolute_episode: [], quality: 1080p WEB-DL, episode: []
2018-09-24 23:16:56 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Kyoto.Teramachi.Sanjou.no.Holmes.-.S01.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.720p to a series in your database. Parser result: title: Kyoto Teramachi Sanjou no Holmes, season: 1, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, release_group: Japon��s, screen_size: 720p, type: episode, parsing_time: 0.220233917236, total_time: 0.231247901917, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:16:56 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Kakuriyo.no.Yadomeshi.-.S01.MP4.H.264.AAC.HDTV.Legendado.Japon��s.1080p.Free to a series in your database. Parser result: title: Kakuriyo no Yadomeshi, season: 1, container: mp4, video_codec: H.264, audio_codec: AAC, source: HDTV, subtitle_language: und, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.229356050491, total_time: 0.240349054337, absolute_episode: [], quality: 1080p HDTV, episode: []
2018-09-24 23:16:56 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Kakuriyo.no.Yadomeshi.-.S01.MP4.H.264.AAC.HDTV.Legendado.Japon��s.720p to a series in your database. Parser result: title: Kakuriyo no Yadomeshi, season: 1, container: mp4, video_codec: H.264, audio_codec: AAC, source: HDTV, subtitle_language: und, release_group: Japon��s, screen_size: 720p, type: episode, parsing_time: 0.215090990067, total_time: 0.225978136063, absolute_episode: [], quality: 720p HDTV, episode: []
2018-09-24 23:16:57 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Phantom.in.the.Twilight.-.S01.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.1080p.Free to a series in your database. Parser result: title: Phantom in the Twilight, season: 1, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.236032962799, total_time: 0.469397068024, absolute_episode: [], quality: 1080p WEB-DL, episode: []
2018-09-24 23:16:57 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Phantom.in.the.Twilight.-.S01.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.720p.Free to a series in your database. Parser result: title: Phantom in the Twilight, season: 1, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.230247020721, total_time: 0.469707012177, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:16:57 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Good.Girls.S01.MKV.H.264.AC3.HDTV.Legendado.Ingl��s.720p.Free to a series in your database. Parser result: title: Good Girls, season: 1, container: mkv, video_codec: H.264, audio_codec: AC3, source: HDTV, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.234487056732, total_time: 0.476894855499, absolute_episode: [], quality: 720p HDTV, episode: []
2018-09-24 23:16:58 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Good.Girls.S01.MKV.H.264.AC3.WEB.Dual.��udio.Ingl��s.720p.Free to a series in your database. Parser result: title: Good Girls, season: 1, container: mkv, video_codec: H.264, audio_codec: AC3, source: Web, other: Dual Audio, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.225085020065, total_time: 0.464905977249, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:16:58 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Good.Girls.S01.MKV.H.264.AC3.WEB-DL.Dual.��udio.Ingl��s.1080p.Free to a series in your database. Parser result: title: Good Girls, season: 1, container: mkv, video_codec: H.264, audio_codec: AC3, source: Web, other: Dual Audio, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.236708879471, total_time: 0.47443985939, absolute_episode: [], quality: 1080p WEB-DL, episode: []
2018-09-24 23:16:59 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Hanebado!.-.S01E12.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.1080p to a series in your database. Parser result: title: Hanebado!, season: 1, episode: [12], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, release_group: Japon��s, screen_size: 1080p, type: episode, parsing_time: 0.257265090942, total_time: 0.49276304245, absolute_episode: [], quality: 1080p WEB-DL
2018-09-24 23:16:59 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Hanebado!.-.S01E11.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.1080p to a series in your database. Parser result: title: Hanebado!, season: 1, episode: [11], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, release_group: Japon��s, screen_size: 1080p, type: episode, parsing_time: 0.261734008789, total_time: 0.500962972641, absolute_episode: [], quality: 1080p WEB-DL
2018-09-24 23:17:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Jashin-chan.Dropkick.-.S01.MKV.H.264.E-AC-3.WEB-DL.Legendado.Japon��s.1080p.Free to a series in your database. Parser result: title: Jashin-chan Dropkick, season: 1, container: mkv, video_codec: H.264, source: Web, subtitle_language: und, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.247938156128, total_time: 0.259341955185, absolute_episode: [], quality: 1080p WEB-DL, episode: []
2018-09-24 23:17:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Jashin-chan.Dropkick.-.S01.MKV.H.264.AAC.WEB-DL.Legendado.Japon��s.720p to a series in your database. Parser result: title: Jashin-chan Dropkick, season: 1, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, subtitle_language: und, release_group: Japon��s, screen_size: 720p, type: episode, parsing_time: 0.224417924881, total_time: 0.235538959503, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Hanebado!.-.S01E12.MP4.H.264.AAC.HDTV.Legendado.Japon��s.1080p to a series in your database. Parser result: title: Hanebado!, season: 1, episode: [12], container: mp4, video_codec: H.264, audio_codec: AAC, source: HDTV, subtitle_language: und, release_group: Japon��s, screen_size: 1080p, type: episode, parsing_time: 0.261788129807, total_time: 0.501413822174, absolute_episode: [], quality: 1080p HDTV
2018-09-24 23:17:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Striking.Out.-.S01E01.MKV.H.264.E-AC-3.WEB-DL.Legendado.Ingl��s.720p.Free to a series in your database. Parser result: title: Striking Out, season: 1, episode: [1], container: mkv, video_codec: H.264, source: Web, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.27344083786, total_time: 0.51110291481, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S01.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.1080p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 1, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.25107383728, total_time: 0.501322031021, absolute_episode: [], quality: 1080p WEB-DL, episode: []
2018-09-24 23:17:02 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S02.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 2, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.239268064499, total_time: 0.479940891266, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:02 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S03.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 3, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.238487005234, total_time: 0.483314037323, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:03 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S04.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 4, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.23965716362, total_time: 0.472268104553, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:03 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S05.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 5, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.229223966599, total_time: 0.47375702858, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:04 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S06.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 6, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.241753101349, total_time: 0.481683969498, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:04 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S07.AVI.H.264.MP3.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 7, container: avi, video_codec: H.264, audio_codec: MP3, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.228846073151, total_time: 0.46707701683, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:05 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S08.MKV.H.264.AAC.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 8, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.228184938431, total_time: 0.461050033569, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:05 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S09.MKV.H.264.AAC.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 9, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.225756168365, total_time: 0.466923952103, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:06 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S10.MKV.H.264.AAC.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 10, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.232434034348, total_time: 0.471307039261, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:06 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S11.MKV.H.264.AAC.WEBRip.Legendado.Tailand��s.720p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 11, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, other: Rip, subtitle_language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.234210014343, total_time: 0.477225065231, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:07 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match U-Prince:.The.Handsome.Cowboy.S12.MKV.H.264.AAC.WEBRip.Legendado.Tailand��s.1080p.Free to a series in your database. Parser result: title: U-Prince: The Handsome Cowboy, season: 12, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, other: Rip, subtitle_language: und, screen_size: 1080p, release_group: Free, type: episode, parsing_time: 0.240790128708, total_time: 0.473071098328, absolute_episode: [], quality: 1080p WEB-DL, episode: []
2018-09-24 23:17:07 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match Perfect.Blue.MKV.H.264.AAC.Blu-ray.Legendado.Japon��s.1080p to a series in your database. Parser result: title: Perfect Blue, container: mkv, video_codec: H.264, audio_codec: AAC, source: Blu-ray, subtitle_language: und, release_group: Japon��s, screen_size: 1080p, type: episode, parsing_time: 0.191901922226, total_time: 0.422769069672, absolute_episode: [], quality: 1080p BluRay, episode: [], season: None
2018-09-24 23:17:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.MP4.H.264.AAC.TVRip.Dublado.Espanhol.Free to a series in your database. Parser result: title: El Chapul��n Colorado, container: mp4, video_codec: H.264, audio_codec: AAC, source: TV, other: Rip, language: und, release_group: Espanhol, type: episode, parsing_time: 0.185377120972, total_time: 0.420660972595, absolute_episode: [], quality: SDTV, episode: [], season: None
2018-09-24 23:17:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S01.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 1, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.219954013824, total_time: 0.45147895813, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:09 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S02.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 2, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.224112987518, total_time: 0.460856199265, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:09 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S03.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 3, container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.23836016655, total_time: 0.476219177246, absolute_episode: [], quality: 720p WEB-DL, episode: []
2018-09-24 23:17:09 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E01.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [1], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.255317926407, total_time: 0.497272014618, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:10 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E02.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [2], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.254552841187, total_time: 0.493793964386, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:11 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E03.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [3], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.26358294487, total_time: 0.510365962982, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:11 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E04.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [4], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.256756067276, total_time: 0.497472047806, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:11 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E05.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [5], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.246454954147, total_time: 0.481044054031, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:12 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E06.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [6], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.247031927109, total_time: 0.478872060776, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:12 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E07.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [7], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.243859052658, total_time: 0.481245040894, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:13 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E08.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [8], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.246319055557, total_time: 0.478178977966, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:13 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E09.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [9], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.244385004044, total_time: 0.480083942413, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:14 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E10.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [10], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.259095191956, total_time: 0.498838186264, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:14 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E11.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [11], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.254225969315, total_time: 0.502540826797, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:15 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E12.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [12], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, release_group: Espanhol, screen_size: 720p, type: episode, parsing_time: 0.261931180954, total_time: 0.504683017731, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:15 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E13.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [13], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.261290073395, total_time: 0.502887964249, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:16 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E14.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [14], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.262248039246, total_time: 0.500646114349, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:16 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E15.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [15], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.263362169266, total_time: 0.507988214493, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:17 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E16.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [16], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.265684127808, total_time: 0.508241891861, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:17 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E17.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [17], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.26017999649, total_time: 0.499979972839, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:18 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E18.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [18], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.261792898178, total_time: 0.501127958298, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:18 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E19.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [19], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.260682106018, total_time: 0.499905824661, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:19 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chapul��n.Colorado.S04E20.MKV.H.264.AAC.WEB-DL.Dublado.Espanhol.720p.Free to a series in your database. Parser result: title: El Chapul��n Colorado, season: 4, episode: [20], container: mkv, video_codec: H.264, audio_codec: AAC, source: Web, language: und, screen_size: 720p, release_group: Free, type: episode, parsing_time: 0.265450954437, total_time: 0.507601976395, absolute_episode: [], quality: 720p WEB-DL
2018-09-24 23:17:19 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] Unable to match El.Chavo.del.Ocho.AVI.XviD.MP3.TVRip.Dublado.Espanhol.Free to a series in your database. Parser result: title: El Chavo del Ocho, container: avi, video_codec: Xvid, audio_codec: MP3, source: TV, other: Rip, language: und, release_group: Espanhol, type: episode, parsing_time: 0.164737939835, total_time: 0.403362989426, absolute_episode: [], quality: SDTV, episode: [], season: None
2018-09-24 23:17:20 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] BraceMessage string formatting failed. Using representation instead.
u'  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap\n    self.__bootstrap_inner()\n  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner\n    self.run()\n  File "/home/pi/Medusa/medusa/search/queue.py", line 296, in run\n    log.exception(\'DailySearchQueueItem Exception, error: {error}\', {\'error\': error})\n  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 101, in exception\n    self.log(logging.ERROR, msg, *args, **kwargs)\n  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 96, in log\n    self.logger.log(level, msg, **kwargs)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1482, in log\n    self.logger.log(level, msg, *args, **kwargs)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1224, in log\n    self._log(level, msg, args, **kwargs)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1279, in _log\n    self.handle(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1289, in handle\n    self.callHandlers(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1329, in callHandlers\n    hdlr.handle(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 757, in handle\n    self.emit(record)\n  File "/usr/lib/python2.7/logging/handlers.py", line 76, in emit\n    if self.shouldRollover(record):\n  File "/usr/lib/python2.7/logging/handlers.py", line 156, in shouldRollover\n    msg = "%s\\n" % self.format(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 732, in format\n    return fmt.format(record)\n  File "/home/pi/Medusa/medusa/logger/__init__.py", line 562, in format\n    msg = super(CensoredFormatter, self).format(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 471, in format\n    record.message = record.getMessage()\n  File "/usr/lib/python2.7/logging/__init__.py", line 331, in getMessage\n    msg = str(self.msg)\n  File "/home/pi/Medusa/medusa/init/logconfig.py", line 84, in __str__\n    result = text_type(self.fmt)\n  File "/home/pi/Medusa/ext2/future/types/newobject.py", line 78, in __unicode__\n    s = type(self).__str__(self)\n  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 55, in __str__\n    \'\'.join(traceback.format_stack()),\n'
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 40, in __str__
    return self.msg.format(*args, **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 175: ordinal not in range(128)
2018-09-24 23:17:20 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [BJ-Share] :: [fd35974] BraceMessage string formatting failed. Using representation instead.
u'  File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap\n    self.__bootstrap_inner()\n  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner\n    self.run()\n  File "/home/pi/Medusa/medusa/search/queue.py", line 296, in run\n    log.exception(\'DailySearchQueueItem Exception, error: {error}\', {\'error\': error})\n  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 101, in exception\n    self.log(logging.ERROR, msg, *args, **kwargs)\n  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 96, in log\n    self.logger.log(level, msg, **kwargs)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1482, in log\n    self.logger.log(level, msg, *args, **kwargs)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1224, in log\n    self._log(level, msg, args, **kwargs)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1279, in _log\n    self.handle(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1289, in handle\n    self.callHandlers(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 1329, in callHandlers\n    hdlr.handle(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 757, in handle\n    self.emit(record)\n  File "/usr/lib/python2.7/logging/handlers.py", line 78, in emit\n    logging.FileHandler.emit(self, record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 950, in emit\n    StreamHandler.emit(self, record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 859, in emit\n    msg = self.format(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 732, in format\n    return fmt.format(record)\n  File "/home/pi/Medusa/medusa/logger/__init__.py", line 562, in format\n    msg = super(CensoredFormatter, self).format(record)\n  File "/usr/lib/python2.7/logging/__init__.py", line 471, in format\n    record.message = record.getMessage()\n  File "/usr/lib/python2.7/logging/__init__.py", line 331, in getMessage\n    msg = str(self.msg)\n  File "/home/pi/Medusa/medusa/init/logconfig.py", line 84, in __str__\n    result = text_type(self.fmt)\n  File "/home/pi/Medusa/ext2/future/types/newobject.py", line 78, in __unicode__\n    s = type(self).__str__(self)\n  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 55, in __str__\n    \'\'.join(traceback.format_stack()),\n'
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/logger/adapters/style.py", line 40, in __str__
    return self.msg.format(*args, **kwargs)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 175: ordinal not in range(128)

# Fixed code
def send_request(self, request):
    data = (request.format(),)
    payload = zlib.compress(rencode.dumps(data))
    self.conn.sendall(payload)

    buf = b""

    while True:
        data = self.conn.recv(1024)

        if not data:
            self.connected = False
            break

        buf += data
        dobj = zlib.decompressobj()

        try:
            message = rencode.loads(dobj.decompress(buf), decode_utf8=True)
        except (ValueError, zlib.error, struct.error):
            # Probably incomplete data, read more
            continue
        else:
            buf = dobj.unused_data

        yield message