# Ignore any query string arguments after the first
# Mitigate timeout issue when video extractor is called on a playlist
seturl[lindex[split$url&]0]
settitle""
catch{
settitle[exec--yt-dlp--no-warnings--remote-componentsejs:npm-e--extractor-args"youtube:player_client=web"--extractor-args"youtube:visitor_data=[registry get video.youtube.visitor_data.tcl]"$url]
}
return$title
}
#This proc allows to handle URLs in lines
#Currently, it prints the video title when not provided with the URL