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
Products
TV-Server
XmlTV: Parse the <new /> tag to obtain air date when <date> tag is missing?
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="ChaosMageX" data-source="post: 1157543" data-attributes="member: 155771"><p>Well, what I meant by "parsing" the <new /> tag is that if that tag is detected, it is used to set the program's original air date from the start date/time data that has already been obtained from the attributes of the <programme> block. I apologize if using the term parsing was confusing because the <new /> tag doesn't contain any data to parse, but I couldn't think of a better term to use.</p><p></p><p></p><p></p><p>Well, unfortunately, I fear this is not the case, at least as far as mc2xml is concerned, because the XmlTV file that it outputs almost always uses the <new /> tag in place of a <date> tag in the <programme> block whenever the program's air date matches its start date. That's why I want this code implemented, in order to compensate for that.</p><p></p><p>Besides, there is really no harm that I can see in implementing this code. If, in other cases, the <new /> tag is only used for the first episode of the first season of a new TV show on the first time it airs, this code wouldn't make a difference because the program's <date> would already match the date portion of the "start" attribute of its <programme> tag block anyway, and again it's likely that the <new /> tag would come after the <date> tag and wouldn't override it anyway. Aside from that, yes, in those cases the code would become superfluous, but I doubt it would have any significant impact on the processing time for parsing XmlTV data, considering it's just another case in a switch statement, which I believe is O(1) in C# no matter how many cases it has. The only time it <em>might</em> affect the processing time is in cases where the <new /> tag is used more liberally than specified in the DTD and thus many programs would have both a <date> tag and a <new /> tag.</p></blockquote><p></p>
[QUOTE="ChaosMageX, post: 1157543, member: 155771"] Well, what I meant by "parsing" the <new /> tag is that if that tag is detected, it is used to set the program's original air date from the start date/time data that has already been obtained from the attributes of the <programme> block. I apologize if using the term parsing was confusing because the <new /> tag doesn't contain any data to parse, but I couldn't think of a better term to use. Well, unfortunately, I fear this is not the case, at least as far as mc2xml is concerned, because the XmlTV file that it outputs almost always uses the <new /> tag in place of a <date> tag in the <programme> block whenever the program's air date matches its start date. That's why I want this code implemented, in order to compensate for that. Besides, there is really no harm that I can see in implementing this code. If, in other cases, the <new /> tag is only used for the first episode of the first season of a new TV show on the first time it airs, this code wouldn't make a difference because the program's <date> would already match the date portion of the "start" attribute of its <programme> tag block anyway, and again it's likely that the <new /> tag would come after the <date> tag and wouldn't override it anyway. Aside from that, yes, in those cases the code would become superfluous, but I doubt it would have any significant impact on the processing time for parsing XmlTV data, considering it's just another case in a switch statement, which I believe is O(1) in C# no matter how many cases it has. The only time it [I]might[/I] affect the processing time is in cases where the <new /> tag is used more liberally than specified in the DTD and thus many programs would have both a <date> tag and a <new /> tag. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
XmlTV: Parse the <new /> tag to obtain air date when <date> tag is missing?
Contact us
RSS
Top
Bottom