Disclosure of Invention
The invention mainly aims to provide a processing method of electronic program guide navigation data and computer equipment, so as to realize compatibility with different types of EPG systems.
In a first aspect, the present invention provides a method for processing navigation data of an electronic program guide, where the method includes:
determining a target type of an electronic program guide navigation system corresponding to a target channel;
reading a processing mode corresponding to the target type, and acquiring electronic program guide navigation data corresponding to the target type according to the processing mode;
and generating an event unit with a preset target format according to the navigation data of the electronic program list.
As a further improved technical solution, the determining a target type of the electronic program guide navigation system corresponding to the target channel specifically includes:
responding to a switching instruction, and acquiring channel information corresponding to a target channel, wherein the switching instruction is an instruction for switching to the target channel;
and determining the target type of the electronic program guide navigation system according to the channel information.
As a further improved technical solution, the processing modes are stored in a pre-stored processing mode database, the processing mode database includes a plurality of processing modes, each processing mode of the plurality of processing modes corresponds to a target type, and the target types respectively corresponding to any two processing modes of the plurality of processing modes are different.
As a further improved technical solution, the obtaining of the electronic program guide navigation data corresponding to the target type according to the processing manner specifically includes:
acquiring electronic program guide navigation data corresponding to the target type according to the processing mode;
judging whether the area of the terminal playing the target channel supports network electronic program guide navigation or not;
if the area where the terminal of the playing target channel is located supports network electronic program guide navigation, acquiring network electronic program guide navigation data;
and adding the network electronic program guide navigation data to the electronic program guide navigation data to update the electronic program guide navigation data.
As a further improved technical solution, the event unit in the preset target format includes a name field, a start time field, an end time field, and a description information field arranged in a preset order, and the event unit in the preset target format generated according to the electronic program guide navigation data includes:
acquiring an event name, an event starting time, an event ending time and event description information from the electronic program guide navigation data;
writing the event name into a name field in the event unit, writing the event starting time into a starting time field in the event unit, writing the event ending time into an ending time field in the event unit, and sucking the event description information into a description information field in the event unit to obtain the event unit.
As a further improved technical solution, after generating the event unit in the preset target format according to the electronic program guide navigation data, the method further includes:
and receiving a query instruction, querying each event unit corresponding to the query instruction, and generating electronic program guide navigation information corresponding to the query instruction.
As a further improved technical solution, the query instruction includes a channel identifier, a first time and a second time; the receiving of the query instruction, the target event units corresponding to the query instruction, and the generating of the electronic program guide navigation information corresponding to the query instruction include:
acquiring each event unit corresponding to the channel identifier;
querying each target event unit between the first time and the second time in each event unit;
and generating electronic program guide navigation information corresponding to the query instruction according to each target event unit.
As a further improved technical solution, the generating of the electronic program guide navigation information corresponding to the query instruction according to each target event unit includes:
sequencing the target event units according to the event starting time corresponding to each target event unit to obtain a target event unit list, wherein the event starting time of the target event unit arranged in the front is earlier than that of the target event unit arranged in the back, the event starting time of the target event unit arranged in the first position is greater than or equal to the first time, and the event starting time of the target event unit arranged in the last position is less than or equal to the second time;
and displaying the event name, the event starting time, the event ending time and the event description information which respectively correspond to each target event unit in the target event unit list so as to obtain the navigation information of the electronic program list.
In a second aspect, the present invention provides a computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the following steps when executing the computer program:
determining a target type of an electronic program guide navigation system corresponding to a target channel;
reading a processing mode corresponding to the target type, and acquiring electronic program guide navigation data corresponding to the target type according to the processing mode;
and generating an event unit with a preset target format according to the navigation data of the electronic program list.
In a third aspect, the present invention provides a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of:
determining a target type of an electronic program guide navigation system corresponding to a target channel;
reading a processing mode corresponding to the target type, and acquiring electronic program guide navigation data corresponding to the target type according to the processing mode;
and generating an event unit with a preset target format according to the navigation data of the electronic program list.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, the target type of the electronic program guide navigation system corresponding to the target channel is determined, wherein different target types respectively correspond to different electronic program guide navigation systems; determining electronic program guide navigation data corresponding to the target type according to the target type, wherein different electronic program guide navigation data correspond to different data formats respectively; and converting the electronic program guide navigation data into an event unit with a preset target format, wherein the event unit is used for generating electronic program guide navigation information. Firstly, determining a target type corresponding to a target channel, wherein different target types respectively correspond to different electronic program guide navigation systems, and converting electronic program guide navigation data into an event unit with a preset target format; the electronic program guide navigation data with different target types respectively correspond to different data formats, so that the electronic program guide navigation data with different data formats can be converted into event units with preset target formats, unified management is facilitated, one terminal can be compatible with a plurality of electronic program guide navigation systems with different target types, and user experience is improved.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor finds that, along with the continuous updating iteration of the digital television transmission system standard, different standard systems appear in the EPG system along with the change of the digital television transmission system, the different electronic program guide navigation systems respectively correspond to different standards and data formats, and different channels may correspond to different electronic program guide navigation systems.
In order to solve the above problems, in the embodiment of the present invention, first, a target type corresponding to a target channel is determined, different target types respectively correspond to different epg navigation systems, and epg navigation data is converted into an event unit in a preset target format; the electronic program guide navigation data with different target types respectively correspond to different data formats, so that the electronic program guide navigation data with different data formats can be converted into event units with preset target formats, unified management is facilitated, one terminal can be compatible with a plurality of electronic program guide navigation systems with different target types, and user experience is improved.
The processing method of the electronic program guide navigation data provided by the application is applied to a television terminal, and the television terminal comprises but is not limited to: a Television terminal for transmitting the navigation data of the electronic program guide based on the Digital Video Broadcasting (DVB) standard and a Television terminal for transmitting the navigation data of the electronic program guide based on the Advanced Television Systems Committee (ATSC) standard.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a method for processing navigation data of an electronic program guide in an embodiment of the present invention is shown, where the method includes:
and S1, determining the target type of the electronic program guide navigation system corresponding to the target channel, wherein different target types respectively correspond to different electronic program guide navigation systems.
In the embodiment of the present invention, the target channel is a channel displayed after the television switches channels, and different channels may support different EPG systems, switch the channel to the target channel, and determine the type of EPG system corresponding to the target channel, which is recorded as the target type. The two different target types respectively correspond to two different electronic program guide navigation systems.
Specifically, step S1 includes:
s11, responding to a switching instruction, and acquiring channel information corresponding to a target channel, wherein the switching instruction is an instruction for switching to the target channel.
In the embodiment of the invention, a switching instruction is received firstly, and then the switching instruction is responded; the switching instruction may be sent to the terminal by the control device, for example, sending the switching instruction to the terminal through a remote controller or a set-top box; the switching instruction can also be that the television terminal receives the switching instruction by identifying the received voice information; the embodiment of the present invention does not limit the manner of receiving the switching instruction. And the terminal switches the channel to the target channel according to the received switching instruction.
In the embodiment of the invention, after the terminal receives the switching instruction, the switching instruction triggers and acquires the channel information of the target channel. The switching instruction comprises a target channel ID, the channel of the target channel can be determined according to the target channel ID in a pre-stored channel library, the channel ID and the channel information are stored in the channel library in an associated mode, and the target channel ID is the channel ID of the target channel. The channel ID is a unique identifier of a channel, and the channel IDs of any two channels are different, where the channel ID may be a serial number of the channel, for example, if the 1 st channel is center 1 station, the channel ID corresponding to the center 1 station is 1, and if the 13 th channel is center 13 station, the channel ID corresponding to the center 13 station is 13. And acquiring a target channel ID in the switching instruction, and searching channel information corresponding to the target channel ID in the channel library according to the target channel ID.
And S12, determining the target type of the electronic program guide navigation system corresponding to the target channel according to the channel information.
In the embodiment of the invention, the target type of the target channel EPG system can be directly represented by the channel information. The target types include at least the Advanced Television Systems Committee 1.0 (ATSC 1.0) type, and the Digital Video Broadcasting-Terrestrial (DVB-T) type. The EPG system with the target type of ATSC1.0 type transmits the electronic program guide navigation data based on the ATSC1.0 standard, and the EPG system with the target type of DVB-T type transmits the electronic program guide navigation data based on the DVB-T standard.
For example, the channel information is: ATSC1.0, it indicates that the electronic program guide navigation type corresponding to the target channel is ATSC1.0 type. The channel information is: ATSC3.0, then the target type is ATSC3.0 type (ATSC1.0 and ATSC3.0 are standards for different versions of ATSC). The channel information is: DVB-T, the target type is DVB-T type.
Prior to step S1, the method further comprises:
and S0, pre-storing a plurality of processing modes corresponding to the plurality of target types respectively, wherein each processing mode in the plurality of processing modes corresponds to one target type, and any two processing modes in the plurality of processing modes correspond to two different target types respectively.
In the embodiment of the present invention, the processing method has been stored in a processing method database in advance, the processing method database further includes a correspondence between the processing method and the target type, and a processing method corresponding to a target type can be queried by the processing method database.
In the embodiment of the invention, a plurality of processing modes are stored in the processing mode database in advance, and in actual use, after the target type corresponding to the target channel is determined, the processing mode corresponding to the target type is directly called from the processing mode database. Different EPG systems respectively correspond to different data formats, and target types corresponding to the EPG systems are not limited to ATSC types and DVB types; when other newly added target types exist, only the processing mode corresponding to the newly added target type needs to be stored in the processing mode database in advance, and the processing mode corresponding to the newly added target type is called when the processing mode is used, so that the compatibility with various different EPG systems can be realized.
And S2, determining the electronic program guide navigation data corresponding to the target type according to the target type, wherein different electronic program guide navigation data correspond to different data formats respectively.
In the embodiment of the invention, different electronic program guide navigation data correspond to different data formats respectively, so different data processing modes are required to process different data. After the target type is determined, the processing mode for processing the received data is determined through the processing mode database, and then the input data is processed through the processing mode to obtain the electronic program guide navigation data.
Specifically, step S2 includes:
and S21, determining the target type, determining a corresponding processing mode, and acquiring the electronic program guide navigation data corresponding to the target type according to the processing mode.
In an embodiment of the present invention, the target types include a first type and a second type, the first type is a type for transmitting data based on the ATSC standard, and the first type includes at least an ATSC1.0 type and an ATSC3.0 type. The second type is a type for transmitting data based on the DVB standard, and the second type includes at least a DVB-C type (cable transmission), a DVB-T type (terrestrial wireless transmission), and a DVB-S type (satellite transmission).
In the embodiment of the invention, the input data is processed in a processing mode to obtain the navigation data of the electronic program list, wherein the processing mode comprises a receiving mode and an analyzing mode. And after the target type is determined, determining a receiving mode and an analyzing mode corresponding to the target type, receiving input data according to the receiving mode corresponding to the target type, and analyzing the input data in the analyzing mode to obtain the navigation data of the electronic program list.
Specifically, step S21 includes:
s211, when the target type is a first type, determining that the processing mode corresponding to the first type is a mode of processing extensible markup language, and acquiring navigation data of the electronic program guide according to the mode of the extensible markup language.
In an embodiment of the present invention, the first type is a type of data transmitted based on an ATSC standard, the data transmitted by the ATSC standard is Electronic Service Guide (ESG) data, and the ESG data is data in an Extensible Markup Language (XML) format. After the target type is determined to be the first type, the format of the received data is known to be an XML format, a data processing interface corresponding to the first type needs to be called, the input data is received in a mode of processing extensible markup language, and the input data is analyzed to obtain electronic program guide navigation data.
And S212, when the target type is a second type, determining that the processing mode corresponding to the second type is a mode for processing binary data, and acquiring the navigation data of the electronic program guide according to the mode for processing the binary data.
In this embodiment of the present invention, the second type is a type of data transmitted based on the DVB standard, the data transmitted by the DVB standard is DVB data, and the DVB data is data in a binary format. After the target type is determined to be the second type, it can be known that the format of the input data is a binary format, a data processing interface corresponding to the second type needs to be called, the input data is received in a manner of processing the binary data, and the input data is analyzed to obtain the navigation data of the electronic program guide.
For a channel, the target type of its corresponding EPG system is either the first type or the second type. In another implementation manner, if the television side that plays the target channel supports the network EPG system, the network EPG system may be used as an auxiliary system for receiving input data. Specifically, step S21 is followed by:
s22, obtaining the position information of the terminal playing the target channel, and determining whether the terminal playing the target channel supports the network electronic program guide navigation system according to the position information.
In the embodiment of the invention, in digital television operation, because areas are different and users facing the areas are all different, some areas may not support the network EPG system, for example, for an economically developed area, a television network for transmitting network EPG data is laid, and a terminal in a city can access the television network to receive the network EPG data. For an area with laggard economic development, the network EPG data can not be received without the coverage of a television network.
In the embodiment of the invention, the position information of the terminal playing the target channel is obtained, the area where the terminal is located is determined according to the position information, and whether the area corresponding to the position information supports a network EPG system or not is judged.
And S23, if the terminal supports the network electronic program guide navigation system, acquiring the network electronic program guide navigation data corresponding to the target channel.
In the embodiment of the invention, the terminal stores a region list supporting a network EPG system, determines the region of the terminal according to the position information, inquires whether the region of the terminal exists in the region list, and if the region of the terminal is in the region list, the terminal is determined to support a network EPG navigation system, and then network EPG data is started. The format of the network EPG data is XML format, the data transmitted by the network is received by processing the extensible markup language, and the data transmitted by the network is analyzed to obtain the navigation data of the network electronic program list.
And S24, adding the network electronic program guide navigation data to the electronic program guide navigation data corresponding to the target type to update the electronic program guide navigation data.
In the embodiment of the present invention, the electronic program guide navigation data obtained in step S21 is added to the electronic program guide navigation data to update the electronic program guide navigation data, so as to obtain updated electronic program guide navigation data.
In the embodiment of the invention, if the terminal for playing the target channel supports the network electronic program guide navigation system, two different data can be acquired. For example, if the target channel is a first type of data transmitted based on the ATSC standard and the terminal broadcasting the target channel supports a network EPG (electronic program guide) system, the target channel may receive ESG data and network EPG data to obtain EPG data. For example, if the target channel is of the second type for transmitting data based on the DVB standard and the terminal playing the target channel supports the network EPG, the target channel may receive the DVB data and the network EPG data to obtain the EPG data.
And S3, converting the electronic program guide navigation data into an event unit with a preset target format, wherein the event unit is used for generating electronic program guide navigation information.
In the embodiment of the present invention, the electronic program guide navigation data is used to generate electronic program guide navigation information corresponding to the target channel, and the electronic program guide navigation information can preview programs to be played in the next several days. In the prior art, electronic program guide navigation data with different formats corresponding to an ATSC type and a DVB type respectively cannot be managed in a unified way. In the embodiment of the invention, a format is preset, electronic program guide navigation data in different formats are converted into the preset target format to obtain each event unit, and the event units are uniformly managed.
The electronic program guide navigation information may include a plurality of event units, and each program to be played may be represented by an event unit. For example, an event cell represents 12: 00-12: 30 play the news.
In the embodiment of the present invention, the event unit in the preset target format includes a name field, a start time field, an end time field, and a description information field, which are arranged in a preset order; specifically, step S3 includes:
and S31, acquiring the event name, the event starting time, the event ending time and the event description information from the electronic program guide navigation data.
In the embodiment of the present invention, an event name, an event start time, an event end time, and event description information are acquired from electronic program guide navigation data, for example, for one time unit, the event name is: the lunch news, the event start time is: 2020.01.0112: 00, time end time 2020.01.0112: 30, event description information is: broadcast is fixed every week.
And S32, taking the event name as a name field in the event unit, taking the event starting time as a starting time field in the event unit, taking the event ending time as an ending time field in the event unit, and taking the event description information as a description information field in the event unit to obtain the event unit.
In the embodiment of the present invention, the event unit at least includes an event name, an event start time, and an event end time. And information such as event ID, event type, event duration, event extension description information, event parent lock level, event content type, event private information length and the like can also be acquired from the electronic program guide navigation data. That is, the event unit may further include an event ID field, an event type field, an event duration field, an event extension description information field, an event parental lock level field, an event content type field, an event private information field, and an event private information length field. Sequencing the fields in the event unit according to a preset sequence (the preset sequence can be set by a user), so as to obtain the following preset target format:
-event_id:int=0
-event_source:int=0
-channel_id:int=0
-start_time:int=0
-duration:int=0
-component:int=0
-short_name:int=0
-short_detail:int=0
-extend_detail:int=0
-parental_rate:int=0
-content_type:int=0
-private:int=0
-private_len:int=0
wherein, event _ ID is the ID of the event and is the unique identifier of the event of one channel; event _ source is an event type, and represents that the target type corresponding to the event is a DVB type, an ATSC type or a network EPG type; channel _ ID is a channel ID, which represents a target channel corresponding to an event; start _ time is the event start time; duration is the event duration; the component refers to a component corresponding to an event, and only has a standard field of a DVB type; short _ name is an event short name; short _ detail is event description information used for briefly summarizing the event content; the extended _ detail refers to event extension description information, which is used for more specifically describing the event content; the parent _ rate refers to the event parental lock level, indicating the age rating of the event, e.g., only the 9's old or older population of the event may view; content _ type refers to the event content type, e.g., the event is of type of laugh, violence, or suspicion; the private information is event private information and is some private information description of different EPG data; private _ len is the event private information length.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for processing navigation data of an electronic program guide in an embodiment of specific application, where the method includes:
s201, switching to a target channel;
s202, determining a target type corresponding to a target channel;
s2031, if the target type is a second type (DVB type), receiving DVB data;
s2041, analyzing the received data corresponding to the DVB type in a mode of processing binary data to obtain electronic program guide navigation data;
s20411, judging whether the television end playing the target channel supports a network electronic program guide navigation system;
s20412, if the terminal playing the target channel supports the network electronic program guide navigation system, acquiring the navigation data of the network electronic program guide;
s2051, adding the network electronic program guide navigation data to the electronic program guide navigation data to obtain updated electronic program guide navigation data;
and S206, generating an event unit with a preset target format according to the electronic program guide navigation data.
In another implementation, the process of generating an event unit includes: the method comprises the following steps:
s201, switching to a target channel;
s202, determining a target type corresponding to a target channel;
s2032, if the target type is a first type (ATSC type), receiving ESG data;
s2042, analyzing the received ESG data in a mode of processing extensible markup language data to obtain electronic program guide navigation data;
s20421, judging whether the television end playing the target channel supports a network electronic program guide navigation system;
s20422, if the terminal playing the target channel supports network electronic program guide navigation, acquiring network electronic program guide navigation data;
s2052, adding the navigation data of the network electronic program list to the navigation data of the electronic program list to obtain updated navigation data of the electronic program list;
and S206, generating an event unit with a preset target format according to the electronic program guide navigation data.
In the embodiment of the invention, the target type of the electronic program guide navigation system corresponding to the target channel is determined, wherein different target types respectively correspond to different electronic program guide navigation systems; determining electronic program guide navigation data corresponding to the target type according to the target type, wherein different electronic program guide navigation data correspond to different data formats respectively; and converting the electronic program guide navigation data into an event unit with a preset target format, wherein the event unit is used for generating electronic program guide navigation information. Firstly, determining a target type corresponding to a target channel, wherein different target types respectively correspond to different electronic program guide navigation systems, and converting electronic program guide navigation data into an event unit with a preset target format; the electronic program guide navigation data with different target types respectively correspond to different data formats, so that the electronic program guide navigation data with different data formats can be converted into event units with preset target formats, unified management is facilitated, one terminal can be compatible with a plurality of electronic program guide navigation systems with different target types, and user experience is improved.
In another implementation manner, the electronic program guide navigation data in different data formats is mapped to the event unit in the preset target format, the event unit is cached in the database, and when the program preview is required, the event unit can be searched from the database to generate the electronic program guide navigation information.
Specifically, step S3 is followed by:
and S4, receiving a query instruction, querying each event unit corresponding to the query instruction, and generating electronic program guide navigation information corresponding to the query instruction.
In the embodiment of the invention, when the television end plays the target channel, the electronic program guide navigation information of the target channel can be inquired through an inquiry instruction, wherein the inquiry instruction can be sent by control equipment of the terminal, such as a remote controller or a set top box; the query instruction can also be sent by a third-party device, for example, a mobile phone and a computer have the control authority of the terminal, and send the query instruction to the terminal; the query instruction may also be receiving voice information, and the query instruction is received by recognizing the voice information. The query instruction comprises a channel identification, a query start time and a query end time.
Specifically, step S4 includes:
and S41, determining a target channel corresponding to the channel identifier, and acquiring all event units corresponding to the target channel.
In the embodiment of the present invention, after step S3, the obtained event unit and the association of the channel identifier, which is the number of the target channel identifier, are saved in the database. And when receiving a query instruction, selecting all event units corresponding to the target channel in a database according to the channel identification.
And S42, determining each target event unit in all event units corresponding to the target channel, wherein the event start time of any event unit in each target event unit is greater than or equal to the query start time, and the event end time of any event unit in each target event unit is less than or equal to the query end time.
In the embodiment of the invention, event units with the event starting time and the event ending time both being in the interval from the query starting time to the query ending time are selected from all event units corresponding to the target channel, so as to obtain the target event units. That is, in each target event unit, the event start time of any target event unit is greater than or equal to the query start time, and the event end time of any target event unit is less than or equal to the query end time.
In the embodiment of the present invention, two event start times within 24 hours (00:00 to 24:00) indicate that the first event start time is greater than (equal to \ less than) the second event start time if the value corresponding to the first event start time is greater than (equal to \ less than) the value corresponding to the second event start time.
For example, if the first event start time of the two event start times is 11:01, the second event start time of the two event start times is 11:36, the value corresponding to the first event start time is 1101, and the value corresponding to the second event start time is 1136, then the first event start time is less than the second event start time.
In the embodiment of the present invention, it is assumed that the query start time is 12:00 and the value corresponding to the query start time is 1200, the value corresponding to the event start time of any target event unit is not less than 1200, otherwise, the value corresponding to the event start time of an event unit is less than 1200, and the event unit is not the target event unit.
Similarly, if the query end time is 22:00 and the value corresponding to the query end time is 2200, the value corresponding to the event end time of any target event unit is not greater than 2200, otherwise, the value corresponding to the event end time of an event unit is greater than 2200, and the event unit is not the target event unit.
For example, the query start time is 12:00 (corresponding to a value of 1200), the query end time is 22:00 (corresponding to a value of 2200); assuming that the event start time of an event unit is 10:00, the corresponding value of the event start time of the event unit is 1000, and 1000 is less than 1200, the event unit is not the target event unit; assuming that the time end time of an event unit is 22:01, the time end time of the event unit is 2201, and 2201 is greater than 2200, then the event unit is not the target event unit.
And S43, generating electronic program guide navigation information corresponding to the query instruction according to each target event unit.
In the embodiment of the present invention, after each target event unit is queried, in order to more intuitively and clearly display the situation of each event in the time period to be queried, each target event unit is sorted.
In the embodiment of the present invention, the target event units may be sorted according to the start times of the events respectively corresponding to the target event units, so as to obtain a target event unit list. For example, the target events may be sorted in the order of the event start time of the target event unit from front to back.
For example, for two event start times within one 24 hour period (00:00 to 24:00), assuming that the first of the two event start times is 4:00 and the second of the two event start times is 5:00, the time reaches 4:00 first and then 5:00, 4:00 before 5:00, then the first event start time is before the second event start time and the second event start time is after the first event start time; the target event unit corresponding to the first event start time may be arranged before the target time unit corresponding to the second event start time in the order from the first event start time to the second event start time.
Specifically, for two target event units, if the event start time of the first target event unit in the two target event units is before the event start time of the second target event unit in the two target event units, the first target event unit is arranged before the second target event unit; since two different programs cannot be played simultaneously at the same time, the event end time of the first target event cell is not after the event start time of the second target event cell.
For example, if the event start time of the first target event unit is 8:00 and the event start time of the second target event unit is 9:00, the first target event unit is arranged before the second target event unit in the target event unit list.
In the embodiment of the present invention, the target event units may also be sorted according to the event end times corresponding to the target event units, so as to obtain a target event unit list. For example, the target events may be sorted in the order from the front to the back of the event end time of the target event unit to obtain a target event unit list.
Specifically, for two target event units in the target event unit list, if the event end time of a first target event unit in the two target event units is before the event end time of a second target event unit in the two target event units, the first target event unit is arranged before the second target event unit.
For example, if the event end time of the first target event unit is 15:00 and the event end time of the second target event unit is 16:00, the first target event unit is arranged before the second target event unit in the target event unit list.
In the embodiment of the invention, the event name, the event start time, the event name and the event description information which correspond to each target event unit are displayed in the target event unit list so as to obtain the navigation information of the electronic program list.
In the embodiment of the invention, the electronic program guide navigation information displays all target event units between the query starting time and the query ending time according to the time sequence, and displays the specific content of each target event unit. For example, the time name of a target event unit is "ghost house", the event start time is 9:00, and the event end time is: 11:00, the event description information is: a movie.
In the prior art, different EPG systems correspond to different electronic program guide navigation data with different data formats, and different query modes are required for different EPG systems when querying the electronic program guide navigation information. In the embodiment of the invention, the electronic program guide navigation data respectively corresponding to different EPG systems are all stored in the form of event units, so that different EPG systems can adopt the same query mode to generate the electronic program guide navigation information through the event units, and the compatibility with different EPG systems is realized.
In the embodiment of the present invention, based on a method for processing navigation data of an electronic program guide, the present invention also provides a computer device, which may be a terminal, and the internal structure of which is shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an in-system memory. The non-volatile storage medium stores an operating system and a computer program. The in-system memory provides an environment for the operating system and the computer programs in the non-volatile storage medium to run. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of processing electronic program guide navigation data. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the illustration in fig. 3 is merely a block diagram of a portion of the structure associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer equipment is characterized in that the processor executes the computer program and realizes the following steps:
determining a target type of an electronic program guide navigation system corresponding to a target channel, wherein different target types respectively correspond to different electronic program guide navigation systems;
determining electronic program guide navigation data corresponding to the target type according to the target type, wherein different electronic program guide navigation data correspond to different data formats respectively;
and converting the electronic program guide navigation data into an event unit with a preset target format, wherein the event unit is used for generating electronic program guide navigation information.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
determining a target type of an electronic program guide navigation system corresponding to a target channel, wherein different target types respectively correspond to different electronic program guide navigation systems;
determining electronic program guide navigation data corresponding to the target type according to the target type, wherein different electronic program guide navigation data correspond to different data formats respectively;
and converting the electronic program guide navigation data into an event unit with a preset target format, wherein the event unit is used for generating electronic program guide navigation information.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.