Summary of the invention
In view of this, the purpose of the embodiment of the invention is obtaining and update method, device and system of EPG content is provided, and alleviates the pressure of EPG server, makes things convenient for, to the user EPG is provided content reliably.
For realizing above-mentioned purpose, the embodiment of the invention provides following technical scheme:
A kind of electric program menu EPG content acquisition method comprises:
The EPG terminal downloads to this locality with the EPG packet in the EPG server, and said EPG packet is formed according to preset document format data encapsulation by the EPG content of said EPG server with self;
Said EPG terminal resolves to EPG content and storage with said EPG packet;
Said EPG terminal is shown to the user with said EPG content.
This method also comprises:
The EPG terminal is upgraded the EPG content of self storage.
Said EPG content comprises EPG content indexing file and at least one EPG resource brief introduction file, wherein, and the chained address of the EPG resource brief introduction file of each child node record in the said EPG content indexing file;
Said EPG terminal is upgraded said EPG content and is comprised:
Said EPG terminal is sent first to said EPG server and is upgraded request, upgrades the latest update time of carrying EPG terminal content index file in the request said first;
Said EPG server upgrades request according to said first and confirms that the EPG content needs at said EPG terminal upgrade the back and return new EPG content indexing file to said EPG terminal;
EPG content indexing file and the EPG resource brief introduction file of self storing upgraded according to said new EPG content indexing file in said EPG terminal.
Said EPG server upgrades request according to said first and confirms that the EPG content needs renewal at said EPG terminal comprises:
Said EPG server upgrades the latest update time of extracting said EPG terminal content index file the request from said first;
Said EPG server compares the latest update time of said EPG terminal content index file and the latest update time of the EPG content indexing file of self;
If both are different, confirm that then said EPG terminal content index file needs to upgrade.
Said EPG terminal is upgraded the EPG resource brief introduction file of self storing according to said new EPG content indexing file and is comprised:
Said EPG confirms at the terminal child node of the current said new EPG content indexing file that will handle;
When confirming that according to the chained address of the EPG resource brief introduction file that said child node write down this locality the EPG resource brief introduction file corresponding with this chained address, download said EPG resource brief introduction file and preservation from said EPG server according to said chained address;
When confirming that according to the chained address of the EPG resource brief introduction file that said child node write down there is the EPG resource brief introduction file corresponding with this chained address this locality; The EPG resource brief introduction file that new EPG resource brief introduction file upgrades local storage is downloaded from said EPG server in said EPG terminal when confirming that according to the up-to-date modification time of the EPG resource brief introduction file of this locality local EPG resource brief introduction file needs upgrade;
Return the step of the child node of confirming the current said new EPG content indexing file that will handle, all travel through completion up to all child nodes.
This method also comprises:
When more kainogenesis was interrupted, the child node that will work as pre-treatment was designated as breakpoint, and wherein said breakpoint comprises:
EPG confirms at the terminal child node of the current said new EPG content indexing file that will handle, the breakpoint that produces during the chained address that obtains the EPG resource brief introduction file that said child node writes down;
Perhaps, said EPG terminal produces breakpoint according to the child node chained address when said EPG server is downloaded the failure of EPG resource brief introduction file;
When said EPG server upgraded request and confirms the EPG content at said EPG terminal needs upgrade according to said first, this method also comprised:
Whether said EPG terminal is detected self has breakpoint to exist;
If there is in the said EPG terminal breakpoint to exist, then confirm current breakpoint, with said current breakpoint as the current child node that will handle;
Confirm the child node of the current EPG content indexing file of self storing that will handle;
According to the chained address of the EPG resource brief introduction file that said child node write down behind the said EPG server down loading updating EPG resource brief introduction file and preserve;
Return the step of confirming the current child node that will handle, all travel through completion up to all pending child nodes.
A kind of EPG content update method comprises:
The EPG terminal is sent first to the EPG server and is upgraded request, upgrades the latest update time of carrying EPG terminal content index file in the request said first;
Said EPG server upgrades request according to said first and confirms that the EPG content needs at said EPG terminal upgrade the back and return new EPG content indexing file to said EPG terminal;
EPG content indexing file and the EPG resource brief introduction file of self storing upgraded according to said new EPG content indexing file in said EPG terminal; When renewal process takes place to interrupt; The child node that to work as pre-treatment is designated as breakpoint; Wherein said breakpoint comprises: EPG confirms at the terminal child node of the current said new EPG content indexing file that will handle, the breakpoint that produces during the chained address that obtains the EPG resource brief introduction file that said child node writes down; Perhaps, the breakpoint that when said EPG server is downloaded the failure of EPG resource brief introduction file, produces according to the child node chained address of said EPG terminal.
Said EPG terminal is upgraded EPG content indexing file and the EPG resource brief introduction file self stored according to said new EPG content indexing file and is comprised:
Said EPG confirms at the terminal child node of the current said new EPG content indexing file that will handle;
When confirming that according to the chained address of the EPG resource brief introduction file that said child node write down this locality the EPG resource brief introduction file corresponding with this chained address, download said EPG resource brief introduction file and preservation from said EPG server according to said chained address;
When confirming that according to the chained address of the EPG resource brief introduction file that said child node write down there is the EPG resource brief introduction file corresponding with this chained address this locality; The EPG resource brief introduction file that new EPG resource brief introduction file upgrades local storage is downloaded from said EPG server in said EPG terminal when confirming that according to the up-to-date modification time of the EPG resource brief introduction file of this locality local EPG resource brief introduction file needs upgrade;
Return the step of the child node of confirming the current said new EPG content indexing file that will handle, all travel through completion up to all child nodes.
When said EPG server upgraded request and confirms the EPG content at said EPG terminal needs upgrade according to said first, this method also comprised:
Whether said EPG terminal is detected self has breakpoint to exist;
If there is in the said EPG terminal breakpoint to exist, then confirm current breakpoint, with said current breakpoint as the current child node that will handle;
Confirm the child node of the current EPG content indexing file of self storing that will handle;
According to the chained address of the EPG resource brief introduction file that said child node write down behind the said EPG server down loading updating EPG resource brief introduction file and preserve;
Return the step of confirming the current child node that will handle, all travel through completion up to all pending child nodes.
A kind of EPG content is obtained system, comprising:
Download unit is used for the EPG packet of EPG server is downloaded to this locality, and said EPG packet is formed according to preset document format data encapsulation by the said EPG server EPG content that self is all;
Resolution unit is used in this locality said EPG packet being resolved to the EPG content;
Memory cell is used for that said resolution unit is resolved the said EPG content that obtains and stores;
Display unit is used for the said EPG content of cell stores is shown to the user.
This system also comprises:
Updating block is used for the said EPG content of cell stores is upgraded.
Said EPG content comprises EPG content indexing file and at least one EPG resource brief introduction file, and wherein, the chained address of the EPG resource brief introduction file of each child node record in the said EPG content indexing file is corresponding;
Said updating block comprises:
Obtain subelement, be used for according to obtaining new EPG content indexing file from the EPG server update time of the EPG terminal content index file of cell stores;
Upgrade subelement, be used for upgrading according to obtaining EPG content indexing file and the EPG resource brief introduction file that said new EPG content indexing file that subelement obtains stores said memory cell.
Said renewal subelement comprises:
Acquisition module is used for confirming the child node of the current said new EPG content indexing file that will handle, obtains the chained address of the EPG resource brief introduction file that said child node writes down;
First update module; Do not download said EPG resource brief introduction file according to this chained address from said EPG server when the definite this locality, chained address that is used for obtaining according to acquisition module the EPG resource brief introduction file corresponding with this chained address, and in said memory cell, store;
Second update module; When being used for confirming that according to the chained address that acquisition module obtains there is the EPG resource brief introduction file corresponding with this chained address this locality; When confirming that according to the up-to-date modification time of the EPG resource brief introduction file of cell stores local EPG resource brief introduction file needs upgrade, download new EPG resource brief introduction file from said EPG server the resource brief introduction file of said cell stores is upgraded.
Said renewal subelement also comprises:
Logging modle; Be used for when said acquisition module, first update module or second update module process of executing the task takes place to interrupt; The child node that to work as pre-treatment is designated as breakpoint, and wherein said breakpoint comprises: the breakpoint that produces during chained address failure that acquisition module obtains the EPG resource brief introduction file that said child node writes down; The breakpoint that produces when perhaps, said first update module or said second update module are downloaded the failure of EPG resource brief introduction file;
Choose module, be used for choosing current breakpoint from said logging modle, with said current breakpoint as the current child node that will handle;
Said acquisition module, also be used for said choose module and choose the current child node that will handle after, the chained address that obtains the EPG resource brief introduction file that said child node writes down;
Said second update module, the chained address of the EPG resource brief introduction file that said child node write down that also is used for obtaining according to said acquisition module are obtained the EPG resource brief introduction file that the EPG resource brief introduction file after the renewal preserves said memory cell from said EPG server and are upgraded.
A kind of device that upgrades the EPG content comprises:
Acquiring unit is used for according to obtaining new EPG content indexing file from the EPG server update time of the EPG terminal content index file of this locality storage;
Updating block; EPG content indexing file and EPG resource brief introduction file that the said new EPG content indexing file that is used for obtaining according to acquiring unit is stored said memory cell upgrade; When more kainogenesis was interrupted, the child node that will work as pre-treatment was designated as breakpoint.
Said updating block comprises:
Acquisition module is used for confirming the child node of the current said new EPG content indexing file that will handle, obtains the chained address of the EPG resource brief introduction file that said child node writes down;
First update module is not downloaded said EPG resource brief introduction file according to this chained address from said EPG server when the definite this locality, chained address that is used for obtaining according to acquisition module the EPG resource brief introduction file corresponding with this chained address;
Second update module; When being used for confirming that according to the chained address that acquisition module obtains there is the EPG resource brief introduction file corresponding with this chained address this locality; When confirming that according to the up-to-date modification time of the EPG resource brief introduction file of this locality storage local EPG resource brief introduction file needs upgrade, obtain new EPG resource brief introduction file from said EPG server the resource brief introduction file of said cell stores is upgraded.
Said updating block also comprises:
Logging modle; Be used for when said acquisition module, first update module or second update module process of executing the task takes place to interrupt; The child node that to work as pre-treatment is designated as breakpoint, and wherein said breakpoint comprises: the breakpoint that produces during chained address failure that acquisition module obtains the EPG resource brief introduction file that said child node writes down; Perhaps, said first update module or said second update module are being downloaded the breakpoint that produces when said EPG resource brief introduction file is failed;
Choose module, be used for choosing current breakpoint from said logging modle, with said current breakpoint as the current child node that will handle;
Said acquisition module also is used for said when choosing module and choosing the current child node that will handle, obtains the chained address of the EPG resource brief introduction file that said child node writes down;
Said second update module; Also be used for confirming the EPG resource brief introduction file that this chained address is corresponding according to the chained address that acquisition module obtains; When confirming that according to the up-to-date modification time of the EPG resource brief introduction file of this locality storage local EPG resource brief introduction file needs upgrade; Downloading new EPG resource brief introduction file from said EPG server upgrades visible to local stored resource brief introduction file; In embodiments of the present invention, the EPG terminal downloads to this locality with the EPG packet in the EPG server, and said EPG packet is formed according to preset document format data encapsulation by the EPG content of said EPG server with self; Said EPG terminal resolves to EPG content and storage with said EPG packet; Said EPG terminal is shown to the user with said EPG content, through the method that the embodiment of the invention provided, makes the user need not through remote controller input URL again, but can be directly from the EPG content mid point of the demonstration interested content of selecting oneself; When the user changes in the EPG content choose, need not again to have alleviated the EPG load of server to EPG server initiation request, practiced thrift Internet resources.
Embodiment
The embodiment of the invention discloses obtaining and update method, device and system of EPG content, for making the object of the invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is done further explain.
Referring to Fig. 1, the method that the embodiment of the invention provides the EPG content to obtain specifically comprises:
Step 101:EPG terminal downloads to this locality with the EPG packet in the EPG server.
Said EPG packet is formed according to preset document format data encapsulation by the said EPG server EPG content that self is all.
Said EPG terminal can be network machine top box+television set, also can said network machine top box be integrated in the television set, and this moment, this EPG terminal was exactly a television set, accomplishes the EPG terminal by this television set and accomplishes obtaining and demonstration work of EPG content.
Step 102: said EPG terminal resolves to EPG content and storage in this locality with said EPG packet.
Generally, EPG terminal and EPG server encapsulate the EPG content through definition uniform data file format, adopt the file format of extend markup language (XML, eXtensible Markup Language) here.The EPG content generally all through program is classified, classification is organized, and is a kind of tree in essence, the XML file also is a kind of tree, can intactly describe EPG.
Said EPG content comprises EPG content indexing file and EPG resource brief introduction file two parts.Wherein, said EPG content indexing file comes record through an XML file, for ease, called after index.opml, this document has carried out overall record to the EPG content in the EPG server.
Come record for the particular content in each concrete classification in the index.opml file through EPG resource brief introduction file; For convenience; This document called after rss.xml; The profile information that comprises the EPG resource in this document is an example with the film, comprises in this document that then movie name, movie file chained address, film show contents such as time, performers and clerks' information.
The rss.xml file of the correspondence that is stored in the EPG server promptly just can be found in the chained address of the rss.xml file of each child node record in the index.opml file through the chained address in the index.opml file.
Fig. 2 is the structural representation of index.opml file.From figure, find out, between the root node of index.opml file and child node, can have the multilayer intermediate node.As shown in Figure 2, root node index.opml and each node, promptly write down a TV play is arranged between the node of each rss.xml chained address intermediate node this through to the centre; The two-stage intermediate node that film and film types are perhaps arranged.Intermediate node can make the content of each child node more clear, and concrete level can be provided with according to actual needs, and the present invention does not do qualification to this.
Step 103: said EPG terminal is shown to the user with said EPG content.
After the EPG Context resolution that will obtain from the EPG server when said EGP terminal, can be shown to the user through the mode of graphic user interface.
Through the method that the embodiment of the invention provided, make the user need not again through remote controller input URL, but can be directly from the EPG content mid point of the demonstration interested content of selecting oneself; Because in the method that the embodiment of the invention provided; Said EPG index file and said EPG resource brief introduction file all have been kept at this locality, so when the user changes the EPG content of choosing, need not again to EPG server initiation request; Alleviate the EPG load of server, practiced thrift Internet resources.
In another embodiment, method shown in Figure 1 also comprises:
The EPG terminal is upgraded the EPG content of self storage.
The method that the embodiment of the invention provided is the EPG content in the EPG server to be downloaded to this locality offer user's use; So in order intactly EPG information to be presented to the user; In time the EPG content of this locality storage is upgraded with regard to needing, to guarantee the local EPG content of being preserved and the synchronism of EPG server.
Referring to Fig. 3, the EPG terminal is upgraded the EPG content of self storing and is comprised:
Step 301:EPG terminal is sent first to the EPG server and is upgraded request, upgrades the latest update time of carrying EPG terminal content index file in the request said first.
Wherein, in order to realize the effectively synchronous of EPG terminal and EPG server, said EPG terminal can regularly be sent said first update inquiry information to said EPG server and started the renewal process.The time interval of regular update can be set according to actual needs.Certainly, also can start as required by the user.
Each index.opml file all can have formation time in forming; When the EPG terminal downloads to this locality with this document; The local formation time that can write down this index.opml file, this formation time is the latest update time of the said index.opml file of this storage.
Step 302: said EPG server upgrades request according to said first and judges whether needs upgrade for the EPG content at said EPG terminal, and renewal then getting into step 303 if desired; If need not to upgrade, then process ends.
After the EPG server is received the said first renewal request; The latest update time of from the said first renewal request, extracting said EPG terminal content index file, the latest update time of said EPG terminal content index file and the latest update time of the EPG content indexing file of self are compared.
If both are identical, confirm that then said EPG terminal content index file does not need to upgrade.
If both are different, confirm that then said EPG terminal content index file needs to upgrade.
Step 303: said EPG server returns new EPG content indexing file to said EPG terminal.
Step 304: EPG content indexing file and the EPG resource brief introduction file of self storing upgraded according to said new EPG content indexing file in said EPG terminal.
Referring to Fig. 4, step 304 comprises:
Step 401: after confirming the current said new EPG content child node that will handle according to the child node index value; Obtain the chained address of the EPG resource brief introduction file that said child node writes down; When in said EPG terminal, not writing down first breakpoint, current child node is designated as first breakpoint.
Comprise at least one child node in the said new EPG content indexing file, the amount of the child node that comprises in the index.opml file in the practical application is very large.The chained address of an EPG resource brief introduction file of said each child node record.In embodiments of the present invention, serve as to upgrade unit with single child node, the EPG resource brief introduction file that this locality is stored upgrades.For the order that guarantees to upgrade, accomplish not repeat not omit, in embodiments of the present invention, begin from initial child node, increase progressively or the order of successively decreasing is upgraded according to the index value of each node.
In embodiments of the present invention, the order that increases progressively according to index value is upgraded the corresponding EPG resource brief introduction file of each node.
Step 402: judge through the chained address of the EPG resource brief introduction file that current child node write down whether this locality has the EPG resource brief introduction file corresponding with this chained address,, get into step 403 if do not have; If have, get into step 404.
Step 403: said EPG terminal is downloaded said EPG resource brief introduction file and preservation according to this chained address from said EPG server; If failed download when in said EPG terminal, not writing down second breakpoint, is designated as second breakpoint with current child node.
At this moment, explain that this rss.xml is the newly-increased EPG resource of said EPG server, so should it be updated to this locality.
Step 404: the up-to-date modification time that obtains the EPG resource brief introduction file at EPG terminal.
When the EPG resource brief introduction file corresponding with the said chained address of said current child node record preserved in this locality; Just need to judge whether the rss.xml file of the correspondence in the server upgraded; In embodiments of the present invention, still be through relatively the latest update time of two rss.xml files accomplishes.
The rss.xml file of local storage can write down the creation-time of this document when storing in this locality, in embodiments of the present invention should the time as the up-to-date modification time of this document.
Step 405: said EPG terminal is sent second to said EPG server and is upgraded request, upgrades the up-to-date modification time that carries the EPG resource brief introduction file at EPG terminal in the request said second.
Step 406: said EPG server upgrades the EPG resource brief introduction file of asking definite said EPG terminal according to said second, and whether needs upgrade, if then get into step 407; If, do not get into step 409.
New EPG resource brief introduction file is downloaded from said EPG server in step 407:EPG terminal, if take defeat, when in said EPG terminal, not writing down the 3rd breakpoint, just current child node is designated as the 3rd breakpoint.
Step 408: said EPG terminal utilizes said new EPG resource brief introduction file to upgrade the EPG resource brief introduction file of self storing, and gets into step 409.
Step 409: the child node index value add 1 and current index value effective, get into step 401.
Wherein, the validity of index value is through pre-conditioned control, as, in embodiments of the present invention, be child node to be upgraded through the order that index value increases progressively, as long as being not more than the maximum index value of child node, current index value is effectively so.
All to be said EGP portable terminal produce when downloading EPG resource brief introduction file from said EPG server for said second breakpoint that in said process, produces and the 3rd breakpoint, belongs to the breakpoint of unified type.
In the method that the embodiment of the invention provided, the EPG terminal obtains the index.opml file earlier, then to the index.opml file traversal; Obtain each concrete rss.xml file of server end; When the top up-to-date modification time of index.opml file does not change, think that its subordinate's concrete rss.xml file does not change yet, decide lower floor's file whether to revise through judging whether top document is revised; With reducing unnecessary traversal greatly; Improved the efficient of EPG content update, made the EPG terminal to realize synchronously through upgrading with the EPG server, thereby for to provide comprehensive EPG content that assurance is provided to the user.
In practical application; If in the process that once traversal is upgraded,, cause the child node corresponding file not obtain complete renewal because network interrupts or program exception withdraws from; In the process of next update; If top document does not change, at this moment there is not a kind of breakpoint update mechanism to guarantee the renewal of the pairing file of child node again, will cause the pairing file of child node not have the chance of upgrading., top document just can have an opportunity to obtain when having latest update to upgrade.
For addressing the above problem, prevent local outage in renewal process, to occur or when withdrawing from unusually through writing down first breakpoint in embodiments of the present invention, when the situation of the information dropout of the child node of pre-treatment; Through writing down second breakpoint and the 3rd breakpoint; Can prevent that local system is failed in the process of obtaining rss.xml through network loses the situation of current child node information; Particularly; Referring to Fig. 5, when said EPG server upgraded request and confirms the EPG content at said EPG terminal needs upgrade according to said first, this method also comprised:
Step 501: whether said EPG terminal is detected self has breakpoint to exist, if, get into step 502, if not, process ends.
Said breakpoint comprises: first breakpoint, second breakpoint or the 3rd breakpoint.
Step 502:, confirm current breakpoint according to local breakpoint situation.
Wherein, step 502 comprises:
A:, then this breakpoint is designated as current breakpoint if said EPG terminal has only a kind of breakpoint in said first breakpoint, second breakpoint or the 3rd breakpoint;
B: when having two or more breakpoints simultaneously as if said EPG terminal, therefrom choosing a breakpoint is current breakpoint.
Choose breakpoint and also can carry out according to index value, as, in the present embodiment, can choose a minimum breakpoint of index value as current breakpoint.
Step 503: obtain the pairing child node index value of current breakpoint.
Step 504: confirm the child node in the EPG content indexing file of current self storage that will handle according to the child node index value after, the chained address that obtains the EPG resource brief introduction file that current child node writes down.
Step 505: the up-to-date modification time that obtains the EPG resource brief introduction file of self storing according to said chained address.
Step 506: send the 3rd to said EPG server and upgrade request, upgrade the up-to-date modification time that carries the EPG resource brief introduction file at EPG terminal in the request the said the 3rd.
Step 507: said EPG server upgrades the EPG resource brief introduction file of asking definite said EPG terminal according to the said the 3rd, and whether needs upgrade, if then get into step 508; If, do not get into step 510.
Step 508:EPG terminal receives the new EPG resource brief introduction file that said EPG server returns.
Step 509: said EPG terminal utilizes said new EPG resource brief introduction file to upgrade the EPG resource brief introduction file of self storing, and gets into step 510.
Step 510: the child node index value adds 1 and current index value when effective, gets into step 504.
The method that the embodiment of the invention provided; Through the utilization of breakpoint effectively having been avoided occur in renewal process unexpected causing when upgrading the top information of interrupting causing index.opml and can't reflect the rss.xml lastest imformation truly; The problem that said rss.xml file can't upgrade in time is for reliably, the renewal to the EPG content in the EPG terminal provides guarantee all sidedly.
Embodiment is corresponding with method, and the embodiment of the invention also provides a kind of EPG content to obtain system, and referring to Fig. 6, said system comprises:
Download unit 601 is used for the EPG packet of EPG server is downloaded to this locality.
Said EPG packet is formed according to preset document format data encapsulation by the said EPG server EPG content that self is all.Said EPG content comprises EPG content indexing file and at least one EPG resource brief introduction file, and wherein, the chained address of the EPG resource brief introduction file of each child node record in the said EPG content indexing file is corresponding.
Resolution unit 602 is used in this locality said EPG packet being resolved to the EPG content.
Memory cell 603 is used for that said resolution unit is resolved the said EPG content that obtains and stores.
Display unit 604 is used for the said EPG content of cell stores is shown to the user.
Through the system that the embodiment of the invention provided, make the user need not again through remote controller input URL, but can be directly from the EPG content mid point of the demonstration interested content of selecting oneself; Because in the method that the embodiment of the invention provided; Said EPG index file and said EPG resource brief introduction file all have been kept at this locality, so change in the EPG content of choosing as the user, need not again to EPG server initiation request; Alleviate the EPG load of server, practiced thrift Internet resources.
In order to realize the synchronous of EPG terminal and EPG server, system shown in Figure 6 also comprises:
Updating block 605 is used for the said EPG content of cell stores is upgraded.
Referring to Fig. 7, said updating block 605 comprises:
Obtain subelement 6051, be used for according to obtaining new EPG content indexing file from the EPG server update time of the EPG terminal content index file of memory cell 603 storage.
The said course of work of obtaining subelement 6051 comprises: the update time of from the memory cell of this system, obtaining EPG terminal content index file; And with sending to the EPG server this update time; The EPG server should the time and latest update time of the EPG content indexing file of self storage compare; If different, just explain that the content indexing file of storing in this EPG server has renewal, the said subelement that obtains receives the new EPG content indexing file that the EPG server sends.
Upgrade subelement 6052, be used for upgrading according to obtaining EPG content indexing file and the EPG resource brief introduction file that said new EPG content indexing file that subelement obtains stores said memory cell.
Wherein, referring to Fig. 8, said renewal subelement 6052 comprises:
Acquisition module 801 is used for confirming the child node of the current said new EPG content indexing file that will handle, obtains the chained address of the EPG resource brief introduction file that said child node writes down;
First update module 802; Download said EPG resource brief introduction file according to this chained address from said EPG server when local not corresponding with this chained address EPG resource brief introduction file is confirmed in the chained address that obtains according to acquisition module, and in said memory cell, store;
Second update module 803; When being used for confirming that according to the chained address that acquisition module obtains there is the EPG resource brief introduction file corresponding with this chained address this locality; When confirming that according to the up-to-date modification time of the EPG resource brief introduction file of cell stores local EPG resource brief introduction file needs upgrade, download new EPG resource brief introduction file from said EPG server the resource brief introduction file of said cell stores is upgraded.
Wherein, The course of work of said second update module 803 is: when the chained address that obtains according to acquisition module confirms that there is the EPG resource brief introduction file corresponding with this chained address this locality; From the memory cell of this system, obtain the latest update time of the EPG resource brief introduction file of current child node; And with sending to the EPG server this update time; The EPG server should the time and latest update time of the EPG resource brief introduction file of self storage compare, if different, just explain that the EPG resource brief introduction file of storing in this EPG server has renewal; Said second update module 803 is downloaded new EPG resource brief introduction file from the EPG server, and the resource brief introduction file of said cell stores is upgraded.In the system that the embodiment of the invention provided; Decide lower floor's file whether to revise through judging whether top document is revised; With reducing unnecessary traversal greatly; Improved the efficient of EPG content update, made the EPG terminal to realize synchronously through upgrading with the EPG server, thereby for to provide comprehensive EPG content that assurance is provided to the user.
In practical application; If in the process that once traversal is upgraded,, cause the child node corresponding file not obtain complete renewal because network interrupts or program exception withdraws from; In the process of next update; If top document does not change, at this moment there is not a kind of breakpoint update mechanism to guarantee the renewal of the pairing file of child node again, will cause the pairing file of child node not have the chance of upgrading., top document just can have an opportunity to obtain when having latest update to upgrade.
For addressing the above problem, the described renewal subelement of Fig. 8 also comprises:
Logging modle 804; Be used for when said acquisition module 801, first update module 802 or second update module 803 process of executing the task takes place to interrupt; The child node that to work as pre-treatment is designated as breakpoint, and wherein said breakpoint comprises: the breakpoint that produces during chained address failure that acquisition module 801 obtains the EPG resource brief introduction file that said child node writes down; The breakpoint that produces when perhaps, said first update module 802 or said second update module 803 are downloaded the failure of EPG resource brief introduction file;
Choose module 805, be used for choosing current breakpoint from said logging modle 804, with said current breakpoint as the current child node that will handle;
Said acquisition module 801, also be used for said choose module 805 and choose the current child node that will handle after, the chained address that obtains the EPG resource brief introduction file that said child node writes down;
Said second update module 803, the chained address of the EPG resource brief introduction file that said child node write down that also is used for obtaining according to said acquisition module are obtained the EPG resource brief introduction file that the EPG resource brief introduction file after the renewal preserves said memory cell from said EPG server and are upgraded.
The system that the embodiment of the invention provided; Through the utilization of breakpoint effectively having been avoided occur in renewal process unexpected causing when upgrading the top information of interrupting causing index.opml and can't reflect the rss.xml lastest imformation truly; The problem that said rss.xml file can't upgrade in time is for reliably, the renewal to the EPG content in the EPG terminal provides guarantee all sidedly.
Referring to Fig. 9, the embodiment of the invention also provides a kind of device of the EPG of renewal content, comprising:
Acquiring unit 901 is used for according to obtaining new EPG content indexing file from the EPG server update time of the EPG terminal content index file of this locality storage;
Updating block 902; EPG content indexing file and EPG resource brief introduction file that the said new EPG content indexing file that is used for obtaining according to acquiring unit is stored said memory cell upgrade; When more kainogenesis was interrupted, the child node that will work as pre-treatment was designated as breakpoint.
Referring to Figure 10, said updating block 902 comprises:
Acquisition module 9021 is used for confirming the child node of the current said new EPG content indexing file that will handle, obtains the chained address of the EPG resource brief introduction file that said child node writes down;
First update module 9022 is not downloaded said EPG resource brief introduction file according to this chained address from said EPG server when the definite this locality, chained address that is used for obtaining according to acquisition module the EPG resource brief introduction file corresponding with this chained address;
Second update module 9023; When being used for confirming that according to the chained address that acquisition module obtains there is the EPG resource brief introduction file corresponding with this chained address this locality; When confirming that according to the up-to-date modification time of the EPG resource brief introduction file of this locality storage local EPG resource brief introduction file needs upgrade, obtain new EPG resource brief introduction file from said EPG server the resource brief introduction file of said cell stores is upgraded.
In another embodiment of the present invention, said updating block also comprises:
Logging modle 9024; Be used for when said acquisition module, first update module or second update module process of executing the task takes place to interrupt; The child node that to work as pre-treatment is designated as breakpoint, and wherein said breakpoint comprises: the breakpoint that produces during chained address failure that acquisition module obtains the EPG resource brief introduction file that said child node writes down; Perhaps, said first update module or said second update module are being downloaded the breakpoint that produces when said EPG resource brief introduction file is failed;
Choose module 9025, be used for choosing current breakpoint from said logging modle, with said current breakpoint as the current child node that will handle;
Said acquisition module 9021 also is used for said when choosing module and choosing the current child node that will handle, obtains the chained address of the EPG resource brief introduction file that said child node writes down;
Said second update module 9023; Also be used for confirming the EPG resource brief introduction file that this chained address is corresponding according to the chained address that acquisition module obtains; When confirming that according to the up-to-date modification time of the EPG resource brief introduction file of this locality storage local EPG resource brief introduction file needs upgrade, download new EPG resource brief introduction file from said EPG server local stored resource brief introduction file is upgraded.
The present invention can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.