Ich habe mir den Quellcode mal angesehen. Lesen kann ich jede Sprache.
ich denke das könnte was werden.
Danke für die Hilfe.
Edit:
Code:
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using MyDownloader.Core;
5 using System.IO;
6 using MyDownloader.Extension.Protocols;
7 using System.Net;
8
9 namespace MyDownloader.Extension.Video.Impl
10 {
11 public class YouTubeDownloader: BaseVideoDownloader
12 {
13 public const string SiteName = "You Tube";
14
15 //http://www.youtube.com/watch?v=5zOevLN3Tic
16 public const string UrlPattern = @"(?:[Yy][Oo][Uu][Tt][Uu][Bb][Ee]\.[Cc][Oo][Mm]/watch\?v=)(\w[\w|-]*)";
17
18 protected override ResourceLocation ResolveVideoURL(string url, string pageData,
19 out string videoTitle)
20 {
21 videoTitle = TextUtil.JustAfter(pageData, "<meta name=\"title\" content=\"", "\">");
22
23 return ResourceLocation.FromURL(String.Format("{0}/get_video?video_id={1}&t={2}", TextUtil.GetDomain(url),
24 TextUtil.JustAfter(url, "v=", "&"), TextUtil.JustAfter(pageData, "&t=", "&hl=")));
25 }
26 }
27 }
Für get_video fehlt noch der wert für t, allerdings wird bei der Suche im Quelltext für &t= nichts gefunden (s. z. 24)