Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'SOS KOD BY NOENTRYPHC'
- 'PHANTOMCREWS'
- '2011-2014'
- 'PROJEK : MYNAKAL DOWNLOADER VB.NET'
- Imports System.Net
- Imports System.Text.RegularExpressions
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If TextBox1.Text = "" Then
- gileha.Text = "Masukkan link video!!"
- Else
- TextBox2.Text = ""
- TextBox3.Text = ""
- gileha.Text = "Checking Video.."
- Dim request As HttpWebRequest = HttpWebRequest.Create(TextBox1.Text)
- request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)"
- Dim response As HttpWebResponse = request.GetResponse
- Dim source As String = New IO.StreamReader(response.GetResponseStream).ReadToEnd
- If source.Contains("This video cannot be found. Are you sure you typed in the correct url?") Then
- gileha.Text = "Video not founded"
- TextBox1.Text = ""
- Else
- gileha.Text = "Generating download link"
- If TextBox1.Text.Contains("http://www.mynakal.com/video/") Then
- TextBox1.Text = TextBox1.Text.Replace("http://www.mynakal.com/video/", "")
- If TextBox1.Text.Contains("/") Then
- TextBox1.Text = TextBox1.Text.Replace("/", "")
- End If
- Dim jaja As HttpWebRequest = HttpWebRequest.Create("http://www.mynakal.com/media/player/config.php?vkey=" + TextBox1.Text)
- jaja.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)"
- Dim response2 As HttpWebResponse = jaja.GetResponse
- Dim source2 As String = New IO.StreamReader(response2.GetResponseStream).ReadToEnd
- RichTextBox1.Text = source2
- Dim formula As String = "<src>([^<]*)</src>"
- For Each item As Match In (New Regex(formula)).Matches(RichTextBox1.Text)
- TextBox2.AppendText(item.Groups(1).Value)
- TextBox3.Text = TextBox1.Text
- gileha.Text = "Done"
- Next
- If TextBox2.Text.Contains("http://www.mynakal.com/media/player/ads.php") Then
- TextBox2.Text = TextBox2.Text.Replace("http://www.mynakal.com/media/player/ads.php", "")
- End If
- TextBox1.Text = "http://www.mynakal.com/video/" + TextBox1.Text
- End If
- End If
- End If
- End Sub
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- TextBox3.Enabled = False
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment