# Buggy code
def parse(self, data, mode):
    """
    Parse search results for items.

    :param data: The raw response from a search
    :param mode: The current mode used to search, e.g. RSS

    :return: A list of items found
    """
    # Units
    units = ["B", "KB", "MB", "GB", "TB", "PB"]

    items = []

    with BS4Parser(
        data, "html.parser"
    ) as html:  # Use html.parser, since html5parser has issues with this site.
        tables = html("table", width="750")  # Get the last table with a width of 750px.
        torrent_table = tables[-1] if tables else []
        torrent_rows = torrent_table("tr") if torrent_table else []

        # Continue only if at least one release is found
        if len(torrent_rows) < 2:
            logger.log(
                "Data returned from provider does not contain any torrents",
                logger.DEBUG,
            )
            return items

        # Skip column headers
        for row in torrent_rows[1:]:
            cells = row("td")
            if len(cells) < 3:
                # We must have cells[2] because it containts the title
                continue

            if self.freeleech and not row.get("bgcolor"):
                continue

            try:
                title = cells[2].find("a")["title"]
                download_url = urljoin(self.url, cells[0].find("a")["href"])
                if not all([title, download_url]):
                    continue

                seeders = try_int(cells[8].get_text(strip=True))
                leechers = try_int(cells[9].get_text(strip=True))

                # Filter unseeded torrent
                if seeders < min(self.minseed, 1):
                    if mode != "RSS":
                        logger.log(
                            "Discarding torrent because it doesn't meet the "
                            "minimum seeders: {0}. Seeders: {1}".format(title, seeders),
                            logger.DEBUG,
                        )
                    continue

                torrent_size = cells[6].get_text(" ")
                size = convert_size(torrent_size, units=units) or -1

                item = {
                    "title": title,
                    "link": download_url,
                    "size": size,
                    "seeders": seeders,
                    "leechers": leechers,
                    "pubdate": None,
                }
                if mode != "RSS":
                    logger.log(
                        "Found result: {0} with {1} seeders and {2} leechers".format(
                            title, seeders, leechers
                        ),
                        logger.DEBUG,
                    )

                items.append(item)
            except (AttributeError, TypeError, KeyError, ValueError, IndexError):
                logger.log(
                    "Failed parsing provider. Traceback: {0!r}".format(
                        traceback.format_exc()
                    ),
                    logger.ERROR,
                )

    return items


# Traceback (IndexError)
2017-01-03 23:11:42 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Timber.Creek.Lodge.S01E05.720p.WEB.x264-HEAT to a show in your database. Parser result: title: Timber Creek Lodge, season: 1, episode: [5], screen_size: 720p, format: WEB-DL, video_codec: h264, video_encoder: x264, release_group: HEAT, type: episode, parsing_time: 0.180300951004, total_time: 0.51199388504, absolute_episode: [], quality: 720p WEB-DL
2017-01-03 23:11:42 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Alaska.The.Last.Frontier.S06.The.Danger.Zone.Special.720p.HDTV.x264-W4F to a show in your database. Parser result: title: Alaska The Last Frontier, season: 6, episode_title: The Danger Zone Special, episode_details: Special, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.169821977615, total_time: 0.176880121231, absolute_episode: [], quality: 720p HDTV, episode: []
2017-01-03 23:11:42 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Alaska.The.Last.Frontier.S06.The.Danger.Zone.Special.HDTV.x264-W4F to a show in your database. Parser result: title: Alaska The Last Frontier, season: 6, episode_title: The Danger Zone Special, episode_details: Special, format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.135813951492, total_time: 0.143737077713, absolute_episode: [], quality: SDTV, episode: []
2017-01-03 23:11:43 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match On.the.Case.with.Paula.Zahn.S13E30.HDTV.x264-W4F to a show in your database. Parser result: title: On the Case with Paula Zahn, season: 13, episode: [30], format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.14701294899, total_time: 0.474184989929, absolute_episode: [], quality: SDTV
2017-01-03 23:11:43 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Timber.Creek.Lodge.S01E05.1080p.WEB.x264-HEAT to a show in your database. Parser result: title: Timber Creek Lodge, season: 1, episode: [5], screen_size: 1080p, format: WEB-DL, video_codec: h264, video_encoder: x264, release_group: HEAT, type: episode, parsing_time: 0.170502901077, total_time: 0.487161874771, absolute_episode: [], quality: 1080p WEB-DL
2017-01-03 23:11:44 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match On.the.Case.with.Paula.Zahn.S13E30.720p.HDTV.x264-W4F to a show in your database. Parser result: title: On the Case with Paula Zahn, season: 13, episode: [30], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.176335096359, total_time: 0.516049146652, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:44 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Murder.Calls.S01E01.HDTV.x264-W4F to a show in your database. Parser result: title: Murder Calls, season: 1, episode: [1], format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.144246101379, total_time: 0.480298042297, absolute_episode: [], quality: SDTV
2017-01-03 23:11:45 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Murder.Calls.S01E01.720p.HDTV.x264-W4F to a show in your database. Parser result: title: Murder Calls, season: 1, episode: [1], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.178880214691, total_time: 0.515836000443, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:45 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S06E01.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 6, episode: [1], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.1754758358, total_time: 0.508264064789, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Detectives.Club.New.Orleans.S01E01.HDTV.x264-W4F to a show in your database. Parser result: title: The Detectives Club New Orleans, season: 1, episode: [1], format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.149883985519, total_time: 0.475395917892, absolute_episode: [], quality: SDTV
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Alaska.The.Last.Frontier.S06E11.720p.HDTV.x264-W4F to a show in your database. Parser result: title: Alaska The Last Frontier, season: 6, episode: [11], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.171275138855, total_time: 0.178335905075, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Detectives.Club.New.Orleans.S01E01.720p.HDTV.x264-W4F to a show in your database. Parser result: title: The Detectives Club New Orleans, season: 1, episode: [1], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: W4F, type: episode, parsing_time: 0.186495065689, total_time: 0.513295888901, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Using cached parse result for 'Who.Killed.Jane.Doe.S01E01.HDTV.x264-W4F'
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Added RSS item: [Who.Killed.Jane.Doe.S01E01.HDTV.x264-W4F] to cache: [torrentbytes]
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Using cached parse result for 'Who.Killed.Jane.Doe.S01E01.720p.HDTV.x264-W4F'
2017-01-03 23:11:46 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Added RSS item: [Who.Killed.Jane.Doe.S01E01.720p.HDTV.x264-W4F] to cache: [torrentbytes]
2017-01-03 23:11:47 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S09E10.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 9, episode: [10], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.171261787415, total_time: 0.49686384201, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:47 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S09E09.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 9, episode: [9], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.148537874222, total_time: 0.477248191833, absolute_episode: [], quality: SDTV
2017-01-03 23:11:48 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S09E10.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 9, episode: [10], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.146861076355, total_time: 0.473968029022, absolute_episode: [], quality: SDTV
2017-01-03 23:11:48 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Affair.S03E06.1080p.HDTV.x264-CRAVERS to a show in your database. Parser result: title: The Affair, season: 3, episode: [6], screen_size: 1080p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CRAVERS, type: episode, parsing_time: 0.185875177383, total_time: 0.510457992554, absolute_episode: [], quality: 1080p HDTV
2017-01-03 23:11:49 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S05E08.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 5, episode: [8], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.171453952789, total_time: 0.498486995697, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:49 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S05E08.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 5, episode: [8], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.145313978195, total_time: 0.47071814537, absolute_episode: [], quality: SDTV
2017-01-03 23:11:50 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S06E04.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 6, episode: [4], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.167834043503, total_time: 0.49915599823, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:50 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S06E04.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 6, episode: [4], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.143512964249, total_time: 0.467844009399, absolute_episode: [], quality: SDTV
2017-01-03 23:11:51 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S06E01.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 6, episode: [1], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.146457195282, total_time: 0.479210853577, absolute_episode: [], quality: SDTV
2017-01-03 23:11:51 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S06E02.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 6, episode: [2], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.168305158615, total_time: 0.490558862686, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:51 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Using cached parse result for 'The.Getaway.Car.S01E12.720p.HDTV.x264-DOCERE'
2017-01-03 23:11:51 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Added RSS item: [The.Getaway.Car.S01E12.720p.HDTV.x264-DOCERE] to cache: [torrentbytes]
2017-01-03 23:11:52 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Bargain.Hunt.S45E27.HDTV.x264-DOCERE to a show in your database. Parser result: title: Bargain Hunt, season: 45, episode: [27], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.138118028641, total_time: 0.466620206833, absolute_episode: [], quality: SDTV
2017-01-03 23:11:52 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S06E02.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 6, episode: [2], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.145663022995, total_time: 0.472184896469, absolute_episode: [], quality: SDTV
2017-01-03 23:11:53 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S08E15.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 8, episode: [15], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.141936063766, total_time: 0.478775024414, absolute_episode: [], quality: SDTV
2017-01-03 23:11:53 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Pointless.Celebrities.S08E15.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Pointless Celebrities, season: 8, episode: [15], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.177170991898, total_time: 0.514071941376, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:54 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Worlds.Strongest.Man.2016.Part.7.HDTV.x264-FEET to a show in your database. Parser result: title: Worlds Strongest Man, alias: Worlds Strongest Man 2016, year: 2016, episode: [7], format: HDTV, video_codec: h264, video_encoder: x264, release_group: FEET, type: episode, parsing_time: 0.1439909935, total_time: 0.463859081268, absolute_episode: [], quality: SDTV, season: None
2017-01-03 23:11:54 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Worlds.Strongest.Man.2016.Part.6.HDTV.x264-FEET to a show in your database. Parser result: title: Worlds Strongest Man, alias: Worlds Strongest Man 2016, year: 2016, episode: [6], format: HDTV, video_codec: h264, video_encoder: x264, release_group: FEET, type: episode, parsing_time: 0.149306058884, total_time: 0.476840019226, absolute_episode: [], quality: SDTV, season: None
2017-01-03 23:11:54 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Using cached parse result for 'The.Getaway.Car.S01E11.720p.HDTV.x264-DOCERE'
2017-01-03 23:11:54 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Added RSS item: [The.Getaway.Car.S01E11.720p.HDTV.x264-DOCERE] to cache: [torrentbytes]
2017-01-03 23:11:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E10.Merchant.Of.Death.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [10], episode_title: Merchant Of Death, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.175002098083, total_time: 0.500239133835, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:55 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E10.Merchant.Of.Death.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [10], episode_title: Merchant Of Death, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.150306940079, total_time: 0.472257137299, absolute_episode: [], quality: SDTV
2017-01-03 23:11:56 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E09.Operation.White.Terror.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [9], episode_title: Operation White Terror, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.178657054901, total_time: 0.507565021515, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:56 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Steins.Gate.E08.MULTi.1080p.BluRay.x264-AMB3R to a show in your database. Parser result: title: Steins Gate, episode: [8], other: Multi Language, screen_size: 1080p, format: BluRay, video_codec: h264, video_encoder: x264, release_group: AMB3R, type: episode, parsing_time: 0.151836872101, total_time: 0.159050941467, absolute_episode: [], quality: 1080p BluRay, season: None
2017-01-03 23:11:56 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E09.Operation.White.Terror.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [9], episode_title: Operation White Terror, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.14737701416, total_time: 0.46378993988, absolute_episode: [], quality: SDTV
2017-01-03 23:11:57 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E08.American.Gangster.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [8], episode_title: American Gangster, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.167447090149, total_time: 0.497425079346, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:57 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E08.American.Gangster.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [8], episode_title: American Gangster, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.155411958694, total_time: 0.493632078171, absolute_episode: [], quality: SDTV
2017-01-03 23:11:58 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E01.Pablo.Escobar.King.of.Cocaine.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [1], episode_title: Pablo Escobar King of Cocaine, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.184047937393, total_time: 0.560614109039, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:58 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E04.Mexican.Godfather.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [4], episode_title: Mexican Godfather, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.144115924835, total_time: 0.459983110428, absolute_episode: [], quality: SDTV
2017-01-03 23:11:59 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E04.Mexican.Godfather.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [4], episode_title: Mexican Godfather, screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.171160936356, total_time: 0.487490177155, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:11:59 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Manhunt.Kill.Or.Capture.S01E01.Pablo.Escobar.King.of.Cocaine.HDTV.x264-CBFM to a show in your database. Parser result: title: Manhunt Kill Or Capture, season: 1, episode: [1], episode_title: Pablo Escobar King of Cocaine, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.147550106049, total_time: 0.461677074432, absolute_episode: [], quality: SDTV
2017-01-03 23:11:59 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Using cached parse result for 'The.Getaway.Car.S01E12.HDTV.x264-DOCERE'
2017-01-03 23:11:59 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Added RSS item: [The.Getaway.Car.S01E12.HDTV.x264-DOCERE] to cache: [torrentbytes]
2017-01-03 23:12:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E08.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [8], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.139592885971, total_time: 0.45495390892, absolute_episode: [], quality: SDTV
2017-01-03 23:12:00 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E08.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [8], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.16400885582, total_time: 0.474159002304, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E07.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [7], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.137520074844, total_time: 0.45144200325, absolute_episode: [], quality: SDTV
2017-01-03 23:12:01 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E07.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [7], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.161661863327, total_time: 0.474157094955, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:02 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E06.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [6], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.139101028442, total_time: 0.45271897316, absolute_episode: [], quality: SDTV
2017-01-03 23:12:02 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E06.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [6], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.160482883453, total_time: 0.475731134415, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:03 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E05.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [5], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.136506080627, total_time: 0.448802947998, absolute_episode: [], quality: SDTV
2017-01-03 23:12:03 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E03.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [3], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.162035942078, total_time: 0.476675033569, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:04 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E05.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [5], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.161332845688, total_time: 0.479254961014, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:04 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match Bargain.Hunt.S23E30.720p.HDTV.x264-DOCERE to a show in your database. Parser result: title: Bargain Hunt, season: 23, episode: [30], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.157993078232, total_time: 0.471149921417, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:05 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E04.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [4], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.140913963318, total_time: 0.456779956818, absolute_episode: [], quality: SDTV
2017-01-03 23:12:05 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E04.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [4], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.163509130478, total_time: 0.487326145172, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:05 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E03.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [3], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.144294023514, total_time: 0.469738006592, absolute_episode: [], quality: SDTV
2017-01-03 23:12:06 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E02.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [2], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.170540094376, total_time: 0.494572162628, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:06 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E02.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [2], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.145080804825, total_time: 0.466495037079, absolute_episode: [], quality: SDTV
2017-01-03 23:12:07 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E01.720p.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [1], screen_size: 720p, format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.170255184174, total_time: 0.48236989975, absolute_episode: [], quality: 720p HDTV
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Unable to match The.Vet.Life.S01E01.HDTV.x264-CBFM to a show in your database. Parser result: title: The Vet Life, season: 1, episode: [1], format: HDTV, video_codec: h264, video_encoder: x264, release_group: CBFM, type: episode, parsing_time: 0.551028966904, total_time: 0.865096092224, absolute_episode: [], quality: SDTV
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Scene numbering enabled show 'The Getaway Car' using indexer numbering: S01E11
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Converted parsed result The.Getaway.Car.S01E11.HDTV.x264-DOCERE into title: The Getaway Car, season: 1, episode: [11], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.134437799454, total_time: None, absolute_episode: [], quality: SDTV
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Parsed 'The.Getaway.Car.S01E11.HDTV.x264-DOCERE' into title: The Getaway Car, season: 1, episode: [11], format: HDTV, video_codec: h264, video_encoder: x264, release_group: DOCERE, type: episode, parsing_time: 0.134437799454, total_time: 0.14141201973, absolute_episode: [], quality: SDTV
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Added RSS item: [The.Getaway.Car.S01E11.HDTV.x264-DOCERE] to cache: [torrentbytes]
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [TorrentBytes] :: [8628e37] Transaction with 7 queries executed
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BITHDTV] :: [8628e37] Updating providers cache
2017-01-03 23:12:08 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BITHDTV] :: [8628e37] Search mode: RSS
2017-01-03 23:12:11 DEBUG    SEARCHQUEUE-DAILY-SEARCH :: [BITHDTV] :: [8628e37] GET URL: https://www.bit-hdtv.com/torrents.php?search=&cat=10 [Status: 200]
2017-01-03 23:12:13 ERROR    SEARCHQUEUE-DAILY-SEARCH :: [BITHDTV] :: [8628e37] Failed parsing provider. Traceback: 'Traceback (most recent call last):\n  File "/home/pi/Medusa/medusa/providers/torrent/html/bithdtv.py", line 143, in parse\n    seeders = try_int(cells[8].get_text(strip=True))\nIndexError: list index out of range\n'
Traceback (most recent call last):
  File "/home/pi/Medusa/medusa/providers/torrent/html/bithdtv.py", line 143, in parse
    seeders = try_int(cells[8].get_text(strip=True))
IndexError: list index out of range

# Fixed code
def parse(self, data, mode):
    """
    Parse search results for items.

    :param data: The raw response from a search
    :param mode: The current mode used to search, e.g. RSS

    :return: A list of items found
    """
    items = []

    with BS4Parser(
        data, "html.parser"
    ) as html:  # Use html.parser, since html5parser has issues with this site.
        tables = html("table", width="750")  # Get the last table with a width of 750px.
        torrent_table = tables[-1] if tables else []
        torrent_rows = torrent_table("tr") if torrent_table else []

        # Continue only if at least one release is found
        if len(torrent_rows) < 2:
            logger.log(
                "Data returned from provider does not contain any torrents",
                logger.DEBUG,
            )
            return items

        # Skip column headers
        for row in torrent_rows[1:]:
            cells = row("td")
            if len(cells) < 3:
                # We must have cells[2] because it containts the title
                continue

            if self.freeleech and not row.get("bgcolor"):
                continue

            try:
                title = cells[2].find("a")["title"]
                download_url = urljoin(self.url, cells[0].find("a")["href"])
                if not all([title, download_url]):
                    continue

                seeders = (
                    try_int(cells[8].get_text(strip=True)) if len(cells) > 8 else 1
                )
                leechers = (
                    try_int(cells[9].get_text(strip=True)) if len(cells) > 9 else 0
                )

                # Filter unseeded torrent
                if seeders < min(self.minseed, 1):
                    if mode != "RSS":
                        logger.log(
                            "Discarding torrent because it doesn't meet the "
                            "minimum seeders: {0}. Seeders: {1}".format(title, seeders),
                            logger.DEBUG,
                        )
                    continue

                torrent_size = cells[6].get_text(" ") if len(cells) > 6 else None
                size = convert_size(torrent_size) or -1

                item = {
                    "title": title,
                    "link": download_url,
                    "size": size,
                    "seeders": seeders,
                    "leechers": leechers,
                    "pubdate": None,
                }
                if mode != "RSS":
                    logger.log(
                        "Found result: {0} with {1} seeders and {2} leechers".format(
                            title, seeders, leechers
                        ),
                        logger.DEBUG,
                    )

                items.append(item)
            except (AttributeError, TypeError, KeyError, ValueError, IndexError):
                logger.log(
                    "Failed parsing provider. Traceback: {0!r}".format(
                        traceback.format_exc()
                    ),
                    logger.ERROR,
                )

    return items