# -*- coding: utf-8 -*-
from modules.kodi_utils import local_string as ls

def years():
	from datetime import datetime
	year = datetime.today().year
	return range(year, 1899, -1)

oscar_winners = (
		[776503, 581734, 496243, 490132, 399055, 376867, 314365, 194662, 76203, 68734, 74643, 45269, 12162, 12405, 6977, 1422, 1640, 70, 122, 1574],
		[453, 98, 14, 1934, 597, 409, 197, 13, 424, 33, 274, 581, 403, 380, 746, 792, 606, 279, 11050, 783],
		[9443, 16619, 12102, 11778, 703, 1366, 510, 240, 9277, 238, 1051, 11202, 3116, 17917, 10633, 874, 15121, 11113, 5769, 947],
		[1725, 284, 665, 17281, 826, 2897, 15919, 654, 11426, 27191, 2769, 705, 25430, 23383, 33667, 887, 28580, 17661, 27367, 289],
		[43266, 223, 770, 34106, 43278, 43277, 12311, 3078, 56164, 33680, 42861, 143, 65203, 28966, 631]
	)

movie_certifications = (
		'G',
		'PG',
		'PG-13',
		'R',
		'NC-17',
		'NR'
	)

tvshow_certifications = (
		'tv-y',
		'tv-y7',
		'tv-g',
		'tv-pg',
		'tv-14',
		'tv-ma'
	)

languages = (
		(ls(32861), 'ar'), (ls(32862), 'bs'),   (ls(32863), 'bg'),   (ls(32864), 'zh'),   (ls(32865), 'hr'),   (ls(32866), 'nl'),   (ls(32867), 'en'),
		(ls(32868), 'fi'), (ls(32869), 'fr'),   (ls(32870), 'de'),   (ls(32871), 'el'),   (ls(32872), 'he'),   (ls(32873), 'hi'),   (ls(32874), 'hu'),
		(ls(32875), 'is'), (ls(32876), 'it'),   (ls(32877), 'ja'),   (ls(32878), 'ko'),   (ls(32879), 'mk'),   (ls(32880), 'no'),   (ls(32881), 'fa'),
		(ls(32882), 'pl'), (ls(32883), 'pt'),   (ls(32884), 'pa'),   (ls(32885), 'ro'),   (ls(32886), 'ru'),   (ls(32887), 'sr'),   (ls(32888), 'sl'),
		(ls(32889), 'es'), (ls(32890), 'sv'),   (ls(32891), 'tr'),   (ls(32892), 'uk')
	)
		

meta_languages = (
		{'iso': 'zh', 'name': 'Chinese'},     {'iso': 'hr', 'name': 'Croatian'},
		{'iso': 'cs', 'name': 'Czech'},       {'iso': 'da', 'name': 'Danish'},
		{'iso': 'nl', 'name': 'Dutch'},       {'iso': 'en', 'name': 'English'},
		{'iso': 'fi', 'name': 'Finnish'},     {'iso': 'fr', 'name': 'French'},
		{'iso': 'de', 'name': 'German'},      {'iso': 'el', 'name': 'Greek'},
		{'iso': 'he', 'name': 'Hebrew'},      {'iso': 'h', 'name': 'Hungarian'},
		{'iso': 'it', 'name': 'Italian'},     {'iso': 'ja', 'name': 'Japanese'},
		{'iso': 'ko', 'name': 'Korean'},      {'iso': 'no', 'name': 'Norwegian'},
		{'iso': 'pl', 'name': 'Polish'},      {'iso': 'pt', 'name': 'Portuguese'},
		{'iso': 'ru', 'name': 'Russian'},     {'iso': 'sl', 'name': 'Slovenian'},
		{'iso': 'es', 'name': 'Spanish'},     {'iso': 'sv', 'name': 'Swedish'},
		{'iso': 'tr', 'name': 'Turkish'}
	)

regions = (
		{'code': 'AF', 'name': ls(32893)},   {'code': 'AL', 'name': ls(32894)},   {'code': 'DZ', 'name': ls(32895)},   {'code': 'AQ', 'name': ls(32896)},
		{'code': 'AR', 'name': ls(32897)},   {'code': 'AM', 'name': ls(32898)},   {'code': 'AU', 'name': ls(32899)},   {'code': 'AT', 'name': ls(32900)},
		{'code': 'BD', 'name': ls(32901)},   {'code': 'BY', 'name': ls(32902)},   {'code': 'BE', 'name': ls(32903)},   {'code': 'BR', 'name': ls(32904)},
		{'code': 'BG', 'name': ls(32905)},   {'code': 'KH', 'name': ls(32906)},   {'code': 'CA', 'name': ls(32907)},   {'code': 'CL', 'name': ls(32908)},
		{'code': 'CN', 'name': ls(32909)},   {'code': 'HR', 'name': ls(32910)},   {'code': 'CZ', 'name': ls(32911)},   {'code': 'DK', 'name': ls(32912)},
		{'code': 'EG', 'name': ls(32913)},   {'code': 'FI', 'name': ls(32914)},   {'code': 'FR', 'name': ls(32915)},   {'code': 'DE', 'name': ls(32916)},
		{'code': 'GR', 'name': ls(32917)},   {'code': 'HK', 'name': ls(32918)},   {'code': 'HU', 'name': ls(32919)},   {'code': 'IS', 'name': ls(32920)},
		{'code': 'IN', 'name': ls(32921)},   {'code': 'ID', 'name': ls(32922)},   {'code': 'IR', 'name': ls(32923)},   {'code': 'IQ', 'name': ls(32924)},
		{'code': 'IE', 'name': ls(32925)},   {'code': 'IL', 'name': ls(32926)},   {'code': 'IT', 'name': ls(32927)},   {'code': 'JP', 'name': ls(32928)},
		{'code': 'MY', 'name': ls(32929)},   {'code': 'NP', 'name': ls(32930)},   {'code': 'NL', 'name': ls(32931)},   {'code': 'NZ', 'name': ls(32932)},
		{'code': 'NO', 'name': ls(32933)},   {'code': 'PK', 'name': ls(32934)},   {'code': 'PY', 'name': ls(32935)},   {'code': 'PE', 'name': ls(32936)},
		{'code': 'PH', 'name': ls(32937)},   {'code': 'PL', 'name': ls(32938)},   {'code': 'PT', 'name': ls(32939)},   {'code': 'PR', 'name': ls(32940)},
		{'code': 'RO', 'name': ls(32941)},   {'code': 'RU', 'name': ls(32942)},   {'code': 'SA', 'name': ls(32943)},   {'code': 'RS', 'name': ls(32944)},
		{'code': 'SG', 'name': ls(32945)},   {'code': 'SK', 'name': ls(32946)},   {'code': 'SI', 'name': ls(32947)},   {'code': 'ZA', 'name': ls(32948)},
		{'code': 'ES', 'name': ls(32949)},   {'code': 'LK', 'name': ls(32950)},   {'code': 'SE', 'name': ls(32951)},   {'code': 'CH', 'name': ls(32952)},
		{'code': 'TH', 'name': ls(32953)},   {'code': 'TR', 'name': ls(32954)},   {'code': 'UA', 'name': ls(32955)},   {'code': 'AE', 'name': ls(32956)},
		{'code': 'GB', 'name': ls(32957)},   {'code': 'US', 'name': ls(32958)},   {'code': 'UY', 'name': ls(32959)},   {'code': 'VE', 'name': ls(32960)},
		{'code': 'VN', 'name': ls(32961)},   {'code': 'YE', 'name': ls(32962)},   {'code': 'ZW', 'name': ls(32963)}
	)

movie_genres = {
		ls(32548): ['28', 'genre_action.png'],           ls(32549): ['12', 'genre_adventure.png'],
		ls(32550): ['16', 'genre_animation.png'],        ls(32551): ['35', 'genre_comedy.png'],
		ls(32552): ['80', 'genre_crime.png'],            ls(32553): ['99', 'genre_documentary.png'],
		ls(32554): ['18', 'genre_drama.png'],            ls(32555): ['10751', 'genre_family.png'],
		ls(32558): ['14', 'genre_fantasy.png'],          ls(32559): ['36', 'genre_history.png'],
		ls(32560): ['27', 'genre_horror.png'],           ls(32561): ['10402', 'genre_music.png'],
		ls(32557): ['9648', 'genre_mystery.png'],        ls(32562): ['10749', 'genre_romance.png'],
		ls(32563): ['878', 'genre_scifi.png'],           ls(32564): ['10770', 'genre_soap.png'],
		ls(32565): ['53', 'genre_thriller.png'],         ls(32566): ['10752', 'genre_war.png'], 
		ls(32567): ['37', 'genre_western.png']
	}

tvshow_genres = {
		'%s & %s' % (ls(32548), ls(32549)): ['10759', 'genre_action.png'],         ls(32550): ['16', 'genre_animation.png'],
		ls(32551): ['35', 'genre_comedy.png'],                                     ls(32552): ['80', 'genre_crime.png'],
		ls(32553): ['99', 'genre_documentary.png'],                                ls(32554): ['18', 'genre_drama.png'],
		ls(32555): ['10751', 'genre_family.png'],                                  ls(32556): ['10762', 'genre_kids.png'],
		ls(32557): ['9648', 'genre_mystery.png'],                                  ls(32568):['10763', 'genre_news.png'],
		ls(32569): ['10764', 'genre_reality.png'],                                 ls(33057): ['10765', 'genre_scifi.png'],
		ls(32570): ['10766', 'genre_soap.png'],                                    ls(32570): ['10767', 'genre_talk.png'],
		ls(32572): ['10768', 'genre_war.png'],                                     ls(32567): ['37', 'genre_western.png']
	}

networks = (
		{'id':54,'name':'Disney Channel','logo': 'https://i.imgur.com/ZCgEkp6.png'},      {'id':44,'name':'Disney XD','logo': 'https://i.imgur.com/PAJJoqQ.png'},
		{'id':2,'name':'ABC','logo': 'https://i.imgur.com/qePLxos.png'},                  {'id':493,'name':'BBC America','logo': 'https://i.imgur.com/TUHDjfl.png'},
		{'id':6,'name':'NBC','logo': 'https://i.imgur.com/yPRirQZ.png'},                  {'id':13,'name':'Nickelodeon','logo': 'https://i.imgur.com/OUVoqYc.png'},
		{'id':14,'name':'PBS','logo': 'https://i.imgur.com/r9qeDJY.png'},                 {'id':16,'name':'CBS','logo': 'https://i.imgur.com/8OT8igR.png'},
		{'id':19,'name':'FOX','logo': 'https://i.imgur.com/6vc0Iov.png'},                 {'id':21,'name':'The WB','logo': 'https://i.imgur.com/rzfVME6.png'},
		{'id':24,'name':'BET','logo': 'https://i.imgur.com/ZpGJ5UQ.png'},                 {'id':30,'name':'USA Network','logo': 'https://i.imgur.com/Doccw9E.png'},
		{'id':32,'name':'CBC','logo': 'https://i.imgur.com/unQ7WCZ.png'},                 {'id':173,'name':'AT-X','logo': 'https://i.imgur.com/JshJYGN.png'},
		{'id':33,'name':'MTV','logo': 'https://i.imgur.com/QM6DpNW.png'},                 {'id':34,'name':'Lifetime','logo': 'https://i.imgur.com/tvYbhen.png'},
		{'id':35,'name':'Nick Junior','logo': 'https://i.imgur.com/leuCWYt.png'},         {'id':41,'name':'TNT','logo': 'https://i.imgur.com/WnzpAGj.png'},
		{'id':43,'name':'National Geographic','logo': 'https://i.imgur.com/XCGNKVQ.png'}, {'id':47,'name':'Comedy Central','logo': 'https://i.imgur.com/ko6XN77.png'},
		{'id':49,'name':'HBO','logo': 'https://i.imgur.com/Hyu8ZGq.png'},                 {'id':55,'name':'Spike','logo': 'https://i.imgur.com/BhXYytR.png'},
		{'id':67,'name':'Showtime','logo': 'https://i.imgur.com/SawAYkO.png'},            {'id':56,'name':'Cartoon Network','logo': 'https://i.imgur.com/zmOLbbI.png'},
		{'id':65,'name':'History Channel','logo': 'https://i.imgur.com/LEMgy6n.png'},     {'id':84,'name':'TLC','logo': 'https://i.imgur.com/c24MxaB.png'},
		{'id':68,'name':'TBS','logo': 'https://i.imgur.com/RVCtt4Z.png'},                 {'id':71,'name':'The CW','logo': 'https://i.imgur.com/Q8tooeM.png'},
		{'id':74,'name':'Bravo','logo': 'https://i.imgur.com/TmEO3Tn.png'},               {'id':76,'name':'E!','logo': 'https://i.imgur.com/3Delf9f.png'},
		{'id':77,'name':'Syfy','logo': 'https://i.imgur.com/9yCq37i.png'},                {'id':80,'name':'Adult Swim','logo': 'https://i.imgur.com/jCqbRcS.png'},
		{'id':91,'name':'Animal Planet','logo': 'https://i.imgur.com/olKc4RP.png'},       {'id':110,'name':'CTV','logo': 'https://i.imgur.com/qUlyVHz.png'},
		{'id':129,'name':'A&E','logo': 'https://i.imgur.com/xLDfHjH.png'},                {'id':158,'name':'VH1','logo': 'https://i.imgur.com/IUtHYzA.png'},
		{'id':174,'name':'AMC','logo': 'https://i.imgur.com/ndorJxi.png'},                {'id':928,'name':'Crackle','logo': 'https://i.imgur.com/53kqZSY.png'},
		{'id':202,'name':'WGN America','logo': 'https://i.imgur.com/TL6MzgO.png'},        {'id':209,'name':'Travel Channel','logo': 'https://i.imgur.com/mWXv7SF.png'},
		{'id':213, 'name':'Netflix','logo': 'https://i.imgur.com/jI5c3bw.png'},           {'id':251,'name':'Audience','logo': 'https://i.imgur.com/5Q3mo5A.png'},
		{'id':270,'name':'SundanceTV','logo': 'https://i.imgur.com/qldG5p2.png'},         {'id':318,'name':'Starz','logo': 'https://i.imgur.com/Z0ep2Ru.png'},
		{'id':359,'name':'Cinemax','logo': 'https://i.imgur.com/zWypFNI.png'},            {'id':364,'name':'truTV','logo': 'https://i.imgur.com/HnB3zfc.png'},
		{'id':384,'name':'Hallmark Channel','logo': 'https://i.imgur.com/zXS64I8.png'},   {'id':397,'name':'TV Land','logo': 'https://i.imgur.com/1nIeDA5.png'},
		{'id':1024,'name':'Amazon','logo': 'https://i.imgur.com/ru9DDlL.png'},            {'id':1267,'name':'Freeform','logo': 'https://i.imgur.com/f9AqoHE.png'},
		{'id':4,'name':'BBC One','logo': 'https://i.imgur.com/u8x26te.png'},              {'id':332,'name':'BBC Two','logo': 'https://i.imgur.com/SKeGH1a.png'},
		{'id':3,'name':'BBC Three','logo': 'https://i.imgur.com/SDLeLcn.png'},            {'id':100,'name':'BBC Four','logo': 'https://i.imgur.com/PNDalgw.png'},
		{'id':214,'name':'Sky One','logo': 'https://i.imgur.com/xbgzhPU.png'},            {'id':9,'name':'ITV','logo': 'https://i.imgur.com/5Hxp5eA.png'},
		{'id':26,'name':'Channel 4','logo': 'https://i.imgur.com/6ZA9UHR.png'},           {'id':99,'name':'Channel 5','logo': 'https://i.imgur.com/5ubnvOh.png'},
		{'id':136,'name':'E4','logo': 'https://i.imgur.com/frpunK8.png'},                 {'id':210,'name':'HGTV','logo': 'https://i.imgur.com/INnmgLT.png'},
		{'id':453,'name':'Hulu','logo': 'https://i.imgur.com/uSD2Cdw.png'},               {'id':1436,'name':'YouTube Red','logo': 'https://i.imgur.com/ZfewP1Y.png'},
		{'id':64,'name':'Discovery Channel','logo': 'https://i.imgur.com/8UrXnAB.png'},   {'id':2739,'name':'Disney+','logo': 'https://i.imgur.com/DVrPgbM.png'},
		{'id':2552,'name':'Apple TV +','logo': 'https://i.imgur.com/fAQMVNp.png'},        {'id':2697,'name':'Acorn TV','logo': 'https://i.imgur.com/fSWB5gB.png'},
		{'id':1709,'name':'CBS All Access','logo': 'https://i.imgur.com/ZvaWMuU.png'},    {'id':3186,'name':'HBO Max','logo': 'https://i.imgur.com/mmRMG75.png'},
		{'id':2243,'name':'DC Universe','logo': 'https://i.imgur.com/bhWIubn.png'},       {'id':2076,'name':'Paramount Network','logo': 'https://i.imgur.com/ez3U6NV.png'},
		{'id':4330,'name':'Paramount+','logo': 'https://i.imgur.com/dmUjWmU.png'},        {'id': 3353, 'name': 'Peacock', 'logo': 'https://imgur.com/1JXFkSM.png'}
	)

language_choices =  {
		'None': None,              'Afrikaans': 'afr',            'Albanian': 'alb',             'Arabic': 'ara',
		'Armenian': 'arm',         'Basque': 'baq',               'Bengali': 'ben',              'Bosnian': 'bos',
		'Breton': 'bre',           'Bulgarian': 'bul',            'Burmese': 'bur',              'Catalan': 'cat',
		'Chinese': 'chi',          'Croatian': 'hrv',             'Czech': 'cze',                'Danish': 'dan',
		'Dutch': 'dut',            'English': 'eng',              'Esperanto': 'epo',            'Estonian': 'est',
		'Finnish': 'fin',          'French': 'fre',               'Galician': 'glg',             'Georgian': 'geo',
		'German': 'ger',           'Greek': 'ell',                'Hebrew': 'heb',               'Hindi': 'hin',
		'Hungarian': 'hun',        'Icelandic': 'ice',            'Indonesian': 'ind',           'Italian': 'ita',
		'Japanese': 'jpn',         'Kazakh': 'kaz',               'Khmer': 'khm',                'Korean': 'kor',
		'Latvian': 'lav',          'Lithuanian': 'lit',           'Luxembourgish': 'ltz',        'Macedonian': 'mac',
		'Malay': 'may',            'Malayalam': 'mal',            'Manipuri': 'mni',             'Mongolian': 'mon',
		'Montenegrin': 'mne',      'Norwegian': 'nor',            'Occitan': 'oci',              'Persian': 'per',
		'Polish': 'pol',           'Portuguese': 'por',           'Portuguese(Brazil)': 'pob',   'Romanian': 'rum',
		'Russian': 'rus',          'Serbian': 'scc',              'Sinhalese': 'sin',            'Slovak': 'slo',
		'Slovenian': 'slv',        'Spanish': 'spa',              'Swahili': 'swa',              'Swedish': 'swe',
		'Syriac': 'syr',           'Tagalog': 'tgl',              'Tamil': 'tam',                'Telugu': 'tel',
		'Thai': 'tha',             'Turkish': 'tur',              'Ukrainian': 'ukr',            'Urdu': 'urd',
		'Vietnamese': 'vie'
	}

meta_colors = (
		'black', 'white', 'whitesmoke', 'gainsboro', 'lightgray', 'silver', 'darkgray', 'gray', 'dimgray',
		'snow', 'floralwhite', 'ivory', 'beige', 'cornsilk', 'antiquewhite', 'bisque', 'blanchedalmond',
		'burlywood', 'darkgoldenrod', 'ghostwhite', 'azure', 'lightsaltegray', 'lightsteelblue',
		'powderblue', 'lightblue', 'skyblue', 'lightskyblue', 'deepskyblue', 'dodgerblue', 'royalblue',
		'blue', 'mediumblue', 'midnightblue', 'navy', 'darkblue', 'cornflowerblue', 'slateblue', 'slategray',
		'yellowgreen', 'springgreen', 'seagreen', 'steelblue', 'teal', 'fuchsia', 'deeppink', 'darkmagenta',
		'blueviolet', 'darkviolet', 'darkorchid', 'darkslateblue', 'darkslategray', 'indigo', 'cadetblue',
		'darkcyan', 'darkturquoise', 'turquoise', 'cyan', 'paleturquoise', 'lightcyan', 'mintcream', 'honeydew',
		'aqua', 'aquamarine', 'chartreuse', 'greenyellow', 'palegreen', 'lawngreen', 'lightgreen', 'lime',
		'mediumspringgreen', 'mediumturquoise', 'lightseagreen', 'mediumaquamarine', 'mediumseagreen',
		'limegreen', 'darkseagreen', 'forestgreen', 'green', 'darkgreen', 'darkolivegreen', 'olive', 'olivedab',
		'darkkhaki', 'khaki', 'gold', 'goldenrod', 'lightyellow', 'lightgoldenrodyellow', 'lemonchiffon',
		'yellow', 'seashell', 'lavenderblush', 'lavender', 'lightcoral', 'indianred', 'darksalmon',
		'lightsalmon', 'pink', 'lightpink', 'hotpink', 'magenta', 'plum', 'violet', 'orchid', 'palevioletred',
		'mediumvioletred', 'purple', 'maroon', 'mediumorchid', 'mediumpurple', 'mediumslateblue', 'thistle',
		'linen', 'mistyrose', 'palegoldenrod', 'oldlace', 'papayawhip', 'moccasin', 'navajowhite', 'peachpuff',
		'sandybrown', 'peru', 'chocolate', 'orange', 'darkorange', 'tomato', 'orangered', 'red', 'crimson',
		'salmon', 'coral', 'firebrick', 'brown', 'darkred', 'tan', 'rosybrown', 'sienna', 'saddlebrown'
	)

media_lists = (
		"'tmdb_movies%'",
		"'tmdb_tv%'",
		"'tmdb_popular_people%'",
		"'tmdb_images_person%'",
		"'tmdb_popular_people%'",
		"'tmdb_media_images_movie%'",
		"'trakt_movies%'",
		"'trakt_tv%'",
		"'trakt_trending_user_lists%'",
		"'trakt_popular_user_lists%'",
		"'imdb_movies%'",
		"'imdb_tv%'",
		"'imdb_people%'",
		"'imdb_reviews%'",
		"'imdb_trivia%'",
		"'imdb_images%'",
		"'imdb_videos%'",
		"'imdb_parentsguide%'",
		"'imdb_watchlist%'",
		"'tmdb_people%'",
		"'imdb_keyword%'",
		"'imdb_blunders%'",
		"'adina_FURK_T_FILE%'",
		"'adina_pm_instant_transfer%'",
		"'adina_rd_check_hash%'",
		"'ADINA_AD_%'",
		"'ADINA_RD_%'",
		"'ADINA_FOLDER_%'",
		"'https%'"
	)