| |||||||
| Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here. |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
| Hey guys, I have started making my first plugin. I am doing a "my movies" type plugin where it gets the info from imdb. I know this functionality is already available, but i want to make it suite my computer setup a bit better and at the same time learn the basics about writing plugins for MP. Anyhow, I have a few questions. 1. How do I change the size of the items in a thumbnail veiw. I want to set my own custon size, not small/large or whatever?? is it even possible? 2. Can someone direct me to a tutorial of some sort to help me retrieve info from IMDB? if not could someone post a brief discription of the process or give any help or suggestions? 3. How do i play a video file? once I click or push ok on a thumbnail, I want the movie to start playing? Thanks in advance guys ![]() |
| | |
| |
| | #2 (permalink) |
| Portal Member Join Date: Jul 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | Here is a snippet of code to retrieve information from IMDB, afterwards you would have to parse it. Imports System.Net Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim searchString As String = "da+vinci+code" 'example search keyword for a movie 'URL to search for a movie Dim request As WebRequest = WebRequest.Create("http://www.imdb.com/find?s=all&q=" & searchString) 'URL to get detailed information for a movie 'Dim request As WebRequest = WebRequest.Create("http://www.imdb.com/title/tt0382625/") request.Credentials = CredentialCache.DefaultCredentials Dim response As HttpWebResponse = CType(request.GetResponse(), HttpWebResponse) Dim dataStream As Stream = response.GetResponseStream() Dim reader As New StreamReader(dataStream) 'responseFromServer contains the HTML code for the page retrieved Dim responseFromServer As String = reader.ReadToEnd() dataStream.Close() response.Close() End Sub End Class |
| | |
![]() |
| Bookmarks |
| Tags |
| plugin, plz |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IPTV@UT Plugin | moiristo | Plugins | 116 | 2008-10-06 21:32 |
| Gathering topical infos about plugins (To: authors & use | tomtom21000 | Plugins | 2 | 2006-02-04 23:20 |
| Plugin example doesnt show in list | Anonymous | Plugins | 5 | 2005-08-13 11:12 |
| Plugin interface | Anonymous | Plugins | 13 | 2004-09-15 17:25 |