def METHOD_NAME(self, config):
    episodes = []
    page = 1
    data = self.get_urldata()
    match = re.search(r'"/etikett/titel/([^"/]+)', data)
    if match is None:
        match = re.search(r'"http://www.oppetarkiv.se/etikett/titel/([^/]+)/', self.url)
        if match is None:
            logging.error("Couldn't find title")
            return episodes
    program = match.group(1)
    n = 0
    if config.get("all_last") > 0:
        sort = "tid_fallande"
    else:
        sort = "tid_stigande"
    while True:
        url = f"http://www.oppetarkiv.se/etikett/titel/{program}/?sida={page}&sort={sort}&embed=true"
        data = self.http.request("get", url)
        if data.status_code == 404:
            break
        data = data.text
        regex = re.compile(r'href="(/video/[^"]+)"')
        for match in regex.finditer(data):
            if n == self.config.get("all_last"):
                break
            episodes.append(f"http://www.oppetarkiv.se{match.group(1)}")
            n += 1
        page += 1
    return episodes