from main import searchAnime
from time import sleep
from os import system


def start():
	anime = input("Masukan anime: ")
	if anime == "":
		print("Masukan anime yg benar!")
		sleep(1)
		system("clear")
		start()
	else:
		data = searchAnime(anime)
		if data == None:
			print("Data anime tidak ditemukan!")
			sleep(2)
			system("clear")
			start()
		else:
			sleep(1)
			system("clear")
			print(f"Berhasil menemukan {len(data)-1} halaman.")
			sleep(3)
			print(f"Perkiraan banyaknya video dari setiap halaman adalah 13 maka total keseluruhannya adalah {len(data) * 13} video.")
			sleep(0.5)

			# print all results.
			for page in data:
				print(f"Page {page['page']} ada {len(page['videos'])} video.")
				sleep(1)
				for video in page['videos']:
					print(
					f"""
					======================================
					Anime: {video['title']}
					URL: {video['url']}
					Rilis: {video['release']}
					Thumbnail: {video['thumbnail']}
					======================================

					""")
					sleep(2)
start()
708514454505d360fad15c17eb6b47ca0efa98b1
<mask token>

<mask token>


def start():
    anime = input('Masukan anime: ')
    if anime == '':
        print('Masukan anime yg benar!')
        sleep(1)
        system('clear')
        start()
    else:
        data = searchAnime(anime)
        if data == None:
            print('Data anime tidak ditemukan!')
            sleep(2)
            system('clear')
            start()
        else:
            sleep(1)
            system('clear')
            print(f'Berhasil menemukan {len(data) - 1} halaman.')
            sleep(3)
            print(
                f'Perkiraan banyaknya video dari setiap halaman adalah 13 maka total keseluruhannya adalah {len(data) * 13} video.'
                )
            sleep(0.5)
            for page in data:
                print(f"Page {page['page']} ada {len(page['videos'])} video.")
                sleep(1)
                for video in page['videos']:
                    print(
                        f"""
					======================================
					Anime: {video['title']}
					URL: {video['url']}
					Rilis: {video['release']}
					Thumbnail: {video['thumbnail']}
					======================================

					"""
                        )
                    sleep(2)


<mask token>

<mask token>


def start():
    anime = input('Masukan anime: ')
    if anime == '':
        print('Masukan anime yg benar!')
        sleep(1)
        system('clear')
        start()
    else:
        data = searchAnime(anime)
        if data == None:
            print('Data anime tidak ditemukan!')
            sleep(2)
            system('clear')
            start()
        else:
            sleep(1)
            system('clear')
            print(f'Berhasil menemukan {len(data) - 1} halaman.')
            sleep(3)
            print(
                f'Perkiraan banyaknya video dari setiap halaman adalah 13 maka total keseluruhannya adalah {len(data) * 13} video.'
                )
            sleep(0.5)
            for page in data:
                print(f"Page {page['page']} ada {len(page['videos'])} video.")
                sleep(1)
                for video in page['videos']:
                    print(
                        f"""
					======================================
					Anime: {video['title']}
					URL: {video['url']}
					Rilis: {video['release']}
					Thumbnail: {video['thumbnail']}
					======================================

					"""
                        )
                    sleep(2)


start()

from main import searchAnime
from time import sleep
from os import system


def start():
    anime = input('Masukan anime: ')
    if anime == '':
        print('Masukan anime yg benar!')
        sleep(1)
        system('clear')
        start()
    else:
        data = searchAnime(anime)
        if data == None:
            print('Data anime tidak ditemukan!')
            sleep(2)
            system('clear')
            start()
        else:
            sleep(1)
            system('clear')
            print(f'Berhasil menemukan {len(data) - 1} halaman.')
            sleep(3)
            print(
                f'Perkiraan banyaknya video dari setiap halaman adalah 13 maka total keseluruhannya adalah {len(data) * 13} video.'
                )
            sleep(0.5)
            for page in data:
                print(f"Page {page['page']} ada {len(page['videos'])} video.")
                sleep(1)
                for video in page['videos']:
                    print(
                        f"""
					======================================
					Anime: {video['title']}
					URL: {video['url']}
					Rilis: {video['release']}
					Thumbnail: {video['thumbnail']}
					======================================

					"""
                        )
                    sleep(2)


start()

from main import searchAnime
from time import sleep
from os import system


def start():
	anime = input("Masukan anime: ")
	if anime == "":
		print("Masukan anime yg benar!")
		sleep(1)
		system("clear")
		start()
	else:
		data = searchAnime(anime)
		if data == None:
			print("Data anime tidak ditemukan!")
			sleep(2)
			system("clear")
			start()
		else:
			sleep(1)
			system("clear")
			print(f"Berhasil menemukan {len(data)-1} halaman.")
			sleep(3)
			print(f"Perkiraan banyaknya video dari setiap halaman adalah 13 maka total keseluruhannya adalah {len(data) * 13} video.")
			sleep(0.5)

			# print all results.
			for page in data:
				print(f"Page {page['page']} ada {len(page['videos'])} video.")
				sleep(1)
				for video in page['videos']:
					print(
					f"""
					======================================
					Anime: {video['title']}
					URL: {video['url']}
					Rilis: {video['release']}
					Thumbnail: {video['thumbnail']}
					======================================

					""")
					sleep(2)
start()