async function* searchInOpen(name,season,episode,language){
	
	const link = `https://www.opensubtitles.org/en/search/sublanguageid-${language}/
	              season-${season}/episode-${episode}/moviename-${name}`;

	const response = await got(link);
	
	const dom = new JSDOM(response.body);
	const rows = [...dom.window.document.querySelectorAll("#search_results tbody tr")]  // gets rows and filters
	                .filter(row=>row.innerHTML.includes(`S0${season}E0${episode}`))     // those relevant 
	                .filter(row=>row.outerHTML.includes("change"));

	for(let row of rows){
		let $$ = cheerio.load(row.innerHTML);
		
		const name = $$.text().split("Watch")[0];  // obtains name
		const link = $$("a").attr("href");         // obtains link

		yield [name,link];
	};

}
/**
  * searchInOpen* -> List
  * name,season,episode,language : String
  *
  * Returns a list containing name and links to each subtitle file
**/
searchInOpen* -> List
name,season,episode,language : String

Returns a list containing name and links to each subtitle file
searchInOpen * - > List name season episode language : String Returns a list containing name and links to each subtitle file
async function* searchInOpen(name,season,episode,language){
	const link = `https://www.opensubtitles.org/en/search/sublanguageid-${language}/
	              season-${season}/episode-${episode}/moviename-${name}`;
	const response = await got(link);
	const dom = new JSDOM(response.body);
	const rows = [...dom.window.document.querySelectorAll("#search_results tbody tr")]  
	                .filter(row=>row.innerHTML.includes(`S0${season}E0${episode}`))     
	                .filter(row=>row.outerHTML.includes("change"));
	for(let row of rows){
		let $$ = cheerio.load(row.innerHTML);
		const name = $$.text().split("Watch")[0];  
		const link = $$("a").attr("href");         
		yield [name,link];
	};
}
async function * searchInOpen ( name , season , episode , language ) { const link = ` ${ language } ${ season } ${ episode } ${ name } ` ; const response = await got ( link ) ; const dom = new JSDOM ( response . body ) ; const rows = [ ... dom . window . document . querySelectorAll ( "#search_results tbody tr" ) ] . filter ( row => row . innerHTML . includes ( ` ${ season } ${ episode } ` ) ) . filter ( row => row . outerHTML . includes ( "change" ) ) ; for ( let row of rows ) { let $$ = cheerio . load ( row . innerHTML ) ; const name = $$ . text ( ) . split ( "Watch" ) [ 0 ] ; const link = $$ ( "a" ) . attr ( "href" ) ; yield [ name , link ] ; } ; }
searchInOpen* -> List
 name,season,episode,language : String
searchInOpen * - > List name season episode language : String
// gets rows and filters // those relevant  // obtains name // obtains link