MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2006-04-19, 18:45   #1 (permalink)
Portal Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default My first plugin!! plz help

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
Craig is offline   Reply With Quote
Old 2006-04-19, 23:04   #2 (permalink)
Portal Member
 
Join Date: Jul 2005
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

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
jake78 is offline   Reply With Quote
Old 2006-04-19, 23:58   #3 (permalink)
Portal Member
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Wow, thanks for the help man

I will look around to try freshen up my VB

Then i will try and make sense of all that

Thanks again

Craig
Craig is offline   Reply With Quote
Reply

Bookmarks

Tags
plugin, plz

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT +1. The time now is 03:44.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress