PageRenderTime 80ms CodeModel.GetById 60ms app.highlight 13ms RepoModel.GetById 2ms app.codeStats 0ms

/TvdbScrapper/Episode.vb

#
Visual Basic | 76 lines | 43 code | 4 blank | 29 comment | 0 complexity | d50dc0ec09e523d57788746fe94f96e9 MD5 | raw file
 1Imports ProtoXML
 2Namespace Tvdb
 3    Public Class Episode
 4        Inherits ProtoPropertyGroup
 5
 6        '<id>332179</id>
 7        Public Property Id As New ProtoProperty(Me, "id")
 8        '<DVD_chapter></DVD_chapter>
 9        Public Property DvdChapter As New ProtoProperty(Me, "DVD_chapter")
10        '<DVD_discid></DVD_discid>
11        Public Property DvdDiscId As New ProtoProperty(Me, "DVD_discid")
12        '<DVD_episodenumber></DVD_episodenumber>
13        Public Property DvdEpisodeNumber As New ProtoProperty(Me, "DVD_episodenumber")
14        '<DVD_season></DVD_season>
15        Public Property DvdSeason As New ProtoProperty(Me, "DVD_season")
16        '<Director>|Joseph McGinty Nichol|</Director>
17        Public Property Director As New ProtoProperty(Me, "Director")
18        '<Credits>Bob Geldof</Credits>
19        Public Property Credits As New ProtoProperty(Me, "Credits")
20        '<EpisodeName>Chuck Versus the World</EpisodeName>
21        Public Property EpisodeName As New ProtoProperty(Me, "EpisodeName")
22        '<EpisodeNumber>1</EpisodeNumber>
23        Public Property EpisodeNumber As New ProtoProperty(Me, "EpisodeNumber")
24        '<FirstAired>2007-09-24</FirstAired>
25        Public Property FirstAired As New ProtoProperty(Me, "FirstAired")
26        '<GuestStars>|Julia Ling|Vik Sahay|Mieko Hillman|</GuestStars>
27        Public Property GuestStars As New ProtoProperty(Me, "GuestStars")
28        '<IMDB_ID></IMDB_ID>
29        Public Property ImdbId As New ProtoProperty(Me, "IMDB_ID")
30        '<Language>English</Language>
31        Public Property Language As New ProtoProperty(Me, "Language")
32        '<Overview>Chuck Bartowski is an average computer geek...</Overview>
33        Public Property Overview As New ProtoProperty(Me, "Overview")
34        '<ProductionCode></ProductionCode>
35        Public Property ProductionCode As New ProtoProperty(Me, "ProductionCode")
36        '<Rating>9.0</Rating>
37        Public Property Rating As New ProtoProperty(Me, "Rating")
38        '<RatingCount>75</RatingCount>
39        Public Property Votes As New ProtoProperty(Me, "RatingCount")
40        '<SeasonNumber>1</SeasonNumber>
41        Public Property SeasonNumber As New ProtoProperty(Me, "SeasonNumber")
42        '<Writer>|Josh Schwartz|Chris Fedak|</Writer>
43        Public Property Writer As New ProtoProperty(Me, "Writer")
44        '<absolute_number></absolute_number>
45        Public Property AbsoluteNumber As New ProtoProperty(Me, "absolute_number")
46        '<airsafter_season></airsafter_season>
47        Public Property AirsAfterSeason As New ProtoProperty(Me, "airsafter_season")
48        '<airsbefore_episode></airsbefore_episode>
49        Public Property AirsBeforeEpsisode As New ProtoProperty(Me, "airsbefore_episode")
50        '<airsbefore_season></airsbefore_season>
51        Public Property AirsBeforeSeason As New ProtoProperty(Me, "airsbefore_season")
52        '<filename>episodes/80348-332179.jpg</filename>
53        Public Property ThumbNail As New ProtoProperty(Me, "filename")
54        '<lastupdated>1201292806</lastupdated>
55        Public Property LastUpdated As New ProtoProperty(Me, "lastupdate")
56        '<seasonid>27985</seasonid>
57        Public Property SeasonId As New ProtoProperty(Me, "seasonid")
58        '<seriesid>80348</seriesid>
59        Public Property SeriesId As New ProtoProperty(Me, "seriesid")
60        '<videosource>bdrip</videosource>
61        Public Property Source As New ProtoProperty(Me, "videosource")
62        'Media Companion confirm load success
63        Public Property FailedLoad As Boolean
64
65        Public ReadOnly Property ScreenShotUrl As String
66            Get
67                Return "http://thetvdb.com/banners/_cache/" & Me.ThumbNail.Value
68            End Get
69        End Property
70
71
72        Public Overrides Function CreateNew() As ProtoXML.IProtoXChild
73            Return New Episode
74        End Function
75    End Class
76End Namespace