YouTube Downloader
#15
هذا كود للتحميل
كود :
unit uDownload; interface uses  Classes,  SysUtils,  IDHttp,  WinInet,  Windows; const  c_YouTubeHeader = 'http://www.youtube.com/watch?v=';  c_YouTubeHost = 'http://www.youtube.com/'; procedure TryDownloadYouTubeVideo(UrlPath: string; Dir: string); implementation procedure TryDownloadYouTubeVideo(UrlPath: string; Dir: string); var  http: TIdHttp;  strm: TStringStream;  FName: string;  FUrl: string;  function fnc_GetSourcePath: string;  const    c_sBeginPath = 'img.src = "http:\/\/';    c_sMiddlePath = '\/';    c_dMiddlePath = '/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Csource%2Cratebypass%2C';    c_sEndPath = '"';    c_dBeginPath = 'http://tc.';    c_dEndPath = 'redirect_counter=1';    c_sBreakChar1 = '%2C';    c_sBreakChar2 = '\u0026';    c_dBreakChar = '&';  var    tmpstr: string;    tmpstrlst: TStringList;    tmpRes: string;    function fnc_IsTrash: Boolean;    begin      Result := (Pos(c_sBreakChar1, tmpstr) <> 0) and                (Pos(c_sBreakChar2, tmpstr) <> 0) and                (Pos(c_sBreakChar1, tmpstr) < Pos(c_sBreakChar2, tmpstr));    end;  begin    Result := '';    tmpstrlst := TStringList.Create;    try      tmpstr := strm.DataString;      Delete(tmpstr, 1, Pos(c_sBeginPath, tmpstr) + Length(c_sBeginPath) - 1);      Delete(tmpstr, Pos(c_sEndPath, tmpstr), Length(tmpstr));      tmpstrlst.Delimiter := '.';      tmpstrlst.DelimitedText := Copy(tmpstr, 1, Pos(c_sMiddlePath, tmpstr) - 1);      tmpRes := Concat(c_dBeginPath,                       tmpstrlst.Strings[3],                       '.',                       Copy(tmpstrlst.Strings[4], 3, Length(tmpstrlst.Strings[4])),                       '.',                       tmpstrlst.Strings[5],                       '.',                       tmpstrlst.Strings[6],                       '.',                       tmpstrlst.Strings[7],                       c_dMiddlePath);      while fnc_IsTrash do        Delete(tmpstr, 1, Pos(c_sBreakChar1, tmpstr) + Length(c_sBreakChar1) - 1);      tmpstrlst.Delimiter := c_dBreakChar;      tmpstrlst.Clear;      while Pos(c_sBreakChar2, tmpstr) <> 0 do      begin        tmpstrlst.Add(Copy(tmpstr, 1, Pos(c_sBreakChar2, tmpstr) - 1));        Delete(tmpstr, 1, Pos(c_sBreakChar2, tmpstr) + Length(c_sBreakChar2) - 1);      end;      tmpstrlst.Add(tmpstr);      tmpstrlst.Add(c_dEndPath);      tmpRes := Concat(tmpRes,                       tmpstrlst.DelimitedText);    finally      FreeAndNil(tmpstrlst);    end;    Result := tmpRes;  end;  function fnc_GetFileName: string;    function fnc_GetDir: string;    begin      Result := Dir;      if Result[Length(Result)] <> '\' then        Result := Concat(Result, '\');    end;  const    c_TitleBegin = '

هذا مثال اخر متاح للتحميل
كود :
http://www.planet-source-code.com/vb/scripts/ShowZip.asp?lngWId=1&lngCodeId=72656&strZipAccessCode=tp%2FS726562111

لمنصة لازروس انظرو هذه الصفحة
كود :
http://forum.lazarus.freepascal.org/index.php?topic=15884.0
قل: اللهم فاطِرَ السماوات والأرض عالم الغيبِ والشهادة، ربَّ كُلِّ شَيءٍ ومَلِيكَه، أَشْهد أن لا إله إلا أنت، أعوذ بك من شرِّ نفسي وشرِّ الشيطان وشِرْكِهِ وأن أقترف على نفسي سوءًا أو أجرُّه إلى مسلم
[-] كل من 1 user says قال شكرا ل Delphi4Us على المشاركة المفيدة
  • mohamed49
الرد


الردود في هذا الموضوع
YouTube Downloader - بواسطة mohfa - 24-02-2010, 09:40 PM
YouTube Downloader - بواسطة kachwahed - 25-02-2010, 03:47 PM
YouTube Downloader - بواسطة farid_2004 - 12-03-2010, 07:53 PM
YouTube Downloader - بواسطة tareilya - 26-03-2010, 09:45 AM
YouTube Downloader - بواسطة gigi - 26-03-2010, 12:35 PM
YouTube Downloader - بواسطة mohfa - 28-03-2010, 10:50 AM
YouTube Downloader - بواسطة mohfa - 28-03-2010, 10:55 AM
YouTube Downloader - بواسطة mohfa - 28-03-2010, 11:08 AM
YouTube Downloader - بواسطة khiro.alg - 01-08-2010, 02:56 PM
YouTube Downloader - بواسطة Delphi 7 - 25-08-2010, 07:07 PM
YouTube Downloader - بواسطة greenhat - 15-11-2010, 04:55 PM
RE: YouTube Downloader - بواسطة Delphi4Us - 05-04-2017, 10:58 PM
YouTube Downloader - بواسطة mohfa - 25-02-2010, 04:07 PM
YouTube Downloader - بواسطة kachwahed - 25-02-2010, 04:15 PM
YouTube Downloader - بواسطة mohfa - 25-02-2010, 04:35 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم