def scrape_comic_links(url_name):
    global link_counter, threads
    while (link_counter != int(comic_target_amount)):
        url_content = requests.get(url_name)
        try:
            url_content.raise_for_status()
            bs4_object = bs4.BeautifulSoup(url_content.text, features='html.parser')
            bs4_next_result = bs4_object.select('a[rel="prev"]')
            next_url = bs4_next_result[0].get('href')
            bs4_comic_result = bs4_object.select('div #comic img')
            comic_url = bs4_comic_result[0].get('src')
            comic_url = ('https://' + comic_url.lstrip('/'))
            url_name = (source_url + next_url)
            link_counter += 1
            thread_object = threading.Thread(name='Download_Comic', target=download_comic, args=[comic_url])
            thread_object.start()
            threads.append(thread_object)
        except:
            print('URL nicht gefunden.')
            return
    else:
        link_counter = 0
        return
def scrape_comic_links(url_name):
    global link_counter, threads
    while (link_counter != int(comic_target_amount)):
        url_content = requests.get(url_name)
        try:
            url_content.raise_for_status()
            bs4_object = bs4.BeautifulSoup(url_content.text, features='html.parser')
            bs4_next_result = bs4_object.select('a[rel="prev"]')
            next_url = bs4_next_result[0].get('href')
            bs4_comic_result = bs4_object.select('div #comic img')
            comic_url = bs4_comic_result[0].get('src')
            comic_url = ('https://' + comic_url.lstrip('/'))
            url_name = (source_url + next_url)
            link_counter += 1
            thread_object = threading.Thread(name='Download_Comic', target=download_comic, args=[comic_url])
            thread_object.start()
            threads.append(thread_object)
        except:
            print('URL nicht gefunden.')
            return
    else:
        link_counter = 0
        return