Here is an example javascript code that was made for firefox to generate a link to an actual .flv file:
PHP Code:
// ==UserScript==
// @description Provides download links for Flash FLV files hosted by YouTube.com
// @include http://www.youtube.*/*
// @include http://youtube.*/*
// ==/UserScript==
// YouTube URL: http://www.youtube.com/watch?v=[video_id]
// YouTube download link: http://youtube.com/get_video?video_id=[video_id]&t=[t_id]
var download_url = 'http://youtube.com/get_video?video_id=';
var playerDiv = document.getElementById('movie_player');
var t_id = playerDiv.src.match(/t=([^(&|$)]*)/)[1];
var url_vars = window.location.href.split("?")[1];
var video_id = url_vars.match(/v=([^(&|$)]*)/)[1];
var video_url = download_url + video_id + '&t=' + t_id;
Also it would be a great idea to keep this separate to easy future update thats if the providers change some things around on the server side.
Now just have to find a way to play .flv files in SD....
OMG.... Window Media plays them!!!
Just add support for "search", thumbnailed view of found video files, the whole list with small descriptions and here we go. Something like Tinytube.net looks like now with an option to save to playlist or save to library (in this case the .flv file will be converted into avi or mpeg)
I would love to see a search module for local video files in the future updates. So that we can add online button

which will search all the video streaming servers like youtube.com, google, etc...
Here is the example program that works with youtube only and it allows you to preview thumbnail, save flash or open it:
YouTube_Video_Search(English).exe
It was made by folks from
http://www.f2ko.de