home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
MyTVSeries - Plugin that organizes TV Video Files
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="WeeToddDid" data-source="post: 32335" data-attributes="member: 16786"><p><strong>Alpha Working</strong></p><p></p><p>OK, </p><p></p><p>So far I have written the following:</p><p></p><p>1. A class called HTMLParser that downloads HTML pages to a string, compresses them. It has public functions to match sections of the html string against regular expressions, and to return all possible results.</p><p></p><p> public class HTMLParser</p><p> {</p><p> public HTMLParser(string QueryPage)</p><p> public bool SearchPage(string RegexPattern)</p><p> public MatchCollection Matches</p><p> }</p><p></p><p></p><p>2. Functions to parse the file name and determine if any useful information can be extracted from it.</p><p></p><p> private bool Filter_Series_SxE_Title_Format(string episodeDetails)</p><p> private bool Filter_Series_SxE_Format(string episodeDetails)</p><p> private bool Filter_Series_sSepE_Format(string episodeDetails)</p><p> private bool Filter_MediaPortal_Format(string episodeDetails)</p><p> private bool Filter_Series_Title_Format(string episodeDetails)</p><p> private bool Filter_SeriesDashTitle_Format(string episodeDetails)</p><p></p><p>Basically, these function will be called in order until one returns true. The goal is the have the following data: (series name, season number, and episode number) or (series name, episode title). At the very least we need the series name. if it cannot be determined by any of the filter function, a cleaned up version of the filename will be used.</p><p></p><p></p><p>3. A Function to look up the series name on tv.com and return the results </p><p></p><p> public bool LookupSeriesName()</p><p></p><p>the results are return into a class called "TVcomMatchingSeries". Here is its structure:</p><p></p><p> public class TVcomMatchingSeries</p><p> {</p><p> public TVcomMatchingSeries(string seriesName, string URL)</p><p> public string GetURL</p><p> public string GetSeriesName</p><p> }</p><p></p><p>If one of the results exactly matches the series name, it will automatically be selected. Otherise the user will be presented with a choice of series name (results) to choose from. The user will alaso have the ability to manually enter the name in.</p><p></p><p></p><p>4. A function to downloads the selected series details and store the information into a class called "TVcomSeriesDetails". Here is its structure:</p><p></p><p> public class TVcomSeriesDetails</p><p> {</p><p> public void AddGenre(string genre)</p><p> public string[] GetGenre</p><p> public void AddEpisodeInfo(TVcomEpisodeDetails episodeDetails)</p><p> public TVcomEpisodeDetails[] GetEpisodeDetails</p><p> public string Name</p><p> public string Airs</p><p> public string Network</p><p> public string Duration</p><p> public string Status</p><p> public string Premiered</p><p> public string Description</p><p> public string ImageURL</p><p> }</p><p></p><p></p><p>5. A function to download all of the episode listing for all season and store the reults in a class called 'TVcomEpisodeDetails'. Here is its structure:</p><p></p><p> public class TVcomEpisodeDetails</p><p> {</p><p> public void AddActor(string name, string character)</p><p> public void AddWriter(String writer)</p><p> public void AddDirector(String director)</p><p> public TVcomActor[] GetActors</p><p> public String[] GetDirectors</p><p> public String[] GetWriters</p><p> public String Description</p><p> public String Title</p><p> public String SummaryURL</p><p> public String AirDate</p><p> public String ProductCode</p><p> public int EpisodeNumber</p><p> public int SeasonNumber</p><p> }</p><p> </p><p>If the if their is a match to (episode season number and episode number) or (episode title) extracted from the file name, it is automatically selected. Otherwise the user must select an episode form a list.</p><p></p><p>6. Finally, n function to download all the episode details for the selected episode and store the results in the TVcomEpisodeDetails class.</p></blockquote><p></p>
[QUOTE="WeeToddDid, post: 32335, member: 16786"] [b]Alpha Working[/b] OK, So far I have written the following: 1. A class called HTMLParser that downloads HTML pages to a string, compresses them. It has public functions to match sections of the html string against regular expressions, and to return all possible results. public class HTMLParser { public HTMLParser(string QueryPage) public bool SearchPage(string RegexPattern) public MatchCollection Matches } 2. Functions to parse the file name and determine if any useful information can be extracted from it. private bool Filter_Series_SxE_Title_Format(string episodeDetails) private bool Filter_Series_SxE_Format(string episodeDetails) private bool Filter_Series_sSepE_Format(string episodeDetails) private bool Filter_MediaPortal_Format(string episodeDetails) private bool Filter_Series_Title_Format(string episodeDetails) private bool Filter_SeriesDashTitle_Format(string episodeDetails) Basically, these function will be called in order until one returns true. The goal is the have the following data: (series name, season number, and episode number) or (series name, episode title). At the very least we need the series name. if it cannot be determined by any of the filter function, a cleaned up version of the filename will be used. 3. A Function to look up the series name on tv.com and return the results public bool LookupSeriesName() the results are return into a class called "TVcomMatchingSeries". Here is its structure: public class TVcomMatchingSeries { public TVcomMatchingSeries(string seriesName, string URL) public string GetURL public string GetSeriesName } If one of the results exactly matches the series name, it will automatically be selected. Otherise the user will be presented with a choice of series name (results) to choose from. The user will alaso have the ability to manually enter the name in. 4. A function to downloads the selected series details and store the information into a class called "TVcomSeriesDetails". Here is its structure: public class TVcomSeriesDetails { public void AddGenre(string genre) public string[] GetGenre public void AddEpisodeInfo(TVcomEpisodeDetails episodeDetails) public TVcomEpisodeDetails[] GetEpisodeDetails public string Name public string Airs public string Network public string Duration public string Status public string Premiered public string Description public string ImageURL } 5. A function to download all of the episode listing for all season and store the reults in a class called 'TVcomEpisodeDetails'. Here is its structure: public class TVcomEpisodeDetails { public void AddActor(string name, string character) public void AddWriter(String writer) public void AddDirector(String director) public TVcomActor[] GetActors public String[] GetDirectors public String[] GetWriters public String Description public String Title public String SummaryURL public String AirDate public String ProductCode public int EpisodeNumber public int SeasonNumber } If the if their is a match to (episode season number and episode number) or (episode title) extracted from the file name, it is automatically selected. Otherwise the user must select an episode form a list. 6. Finally, n function to download all the episode details for the selected episode and store the results in the TVcomEpisodeDetails class. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MyTVSeries - Plugin that organizes TV Video Files
Contact us
RSS
Top
Bottom