client.js
// multipleDaysSearch keep searching constantly at a regular time (INTERVAL_SEARCH_DAYS_IN_MILLISECONDS) for DAYS_OF_SEARCH_IN_MILLISECONDS days
multipleDaysSearch keep searching constantly at a regular time (INTERVAL_SEARCH_DAYS_IN_MILLISECONDS) for DAYS_OF_SEARCH_IN_MILLISECONDS days
multipleDaysSearch keep searching constantly at a regular time ( INTERVAL_SEARCH_DAYS_IN_MILLISECONDS ) for DAYS_OF_SEARCH_IN_MILLISECONDS days
async function multipleDaysSearch(title, videoId) {
    var start = performance.now()
    var interval = window.setInterval(() => {
        if (performance.now() - start >= config.DAYS_OF_SEARCH_IN_MILLISECONDS) {
            window.clearInterval(interval)
        }
        searchMultipleParameters({
            title: title, 
            videoId: videoId,
            searchOnlyId: true,
        })
    }, config.INTERVAL_SEARCH_DAYS_IN_MILLISECONDS)
}
async function multipleDaysSearch ( title , videoId ) { var start = performance . now ( ) var interval = window . setInterval ( ( ) => { if ( performance . now ( ) - start >= config . DAYS_OF_SEARCH_IN_MILLISECONDS ) { window . clearInterval ( interval ) } searchMultipleParameters ( { title : title , videoId : videoId , searchOnlyId : true , } ) } , config . INTERVAL_SEARCH_DAYS_IN_MILLISECONDS ) }
multipleDaysSearch keep searching constantly at a regular time (INTERVAL_SEARCH_DAYS_IN_MILLISECONDS) for DAYS_OF_SEARCH_IN_MILLISECONDS days
multipleDaysSearch keep searching constantly at a regular time ( INTERVAL_SEARCH_DAYS_IN_MILLISECONDS ) for DAYS_OF_SEARCH_IN_MILLISECONDS days