Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method for implementing a favorite program guide and a digital television receiving terminal, which can enable a user to easily find favorite programs.
In order to solve the above technical problem, an embodiment of the present invention provides a method for implementing a favorite program guide, including:
maintaining a favorite program keyword list of a user according to the program watching condition of the user, wherein the favorite program keyword list comprises: a keyword name;
searching for electronic program guide, EPG, information from a transport stream, the EPG information comprising: program information including a program name;
and matching the keyword name with the program name, and if the keyword name is contained in the program name, adding the program information containing the program name into a pre-established favorite program guide.
Wherein, the step of maintaining the favorite program keyword list of the user according to the program watching condition of the user comprises:
when the time for a user to continuously watch the same program exceeds a continuous watching time threshold value, judging the program as a favorite program of the user, and acquiring the program name of the favorite program of the user;
matching the program name with a keyword name in a favorite program keyword list;
if the proportion of the length of the continuous same part of the program name and the keyword name in the program name and the keyword name is larger than a preset same judgment threshold value, replacing the keyword name with the program name;
otherwise, the program name is used as a new keyword name and added into the favorite program keyword list.
Wherein, the favorite program keyword list further comprises: updating times and updating time, wherein the keyword name, the updating times and the updating time are in one-to-one correspondence;
the step of maintaining the favorite program keyword list of the user according to the program watching condition of the user further comprises:
when the program name is adopted to replace the keyword name, adding 1 to the updating times corresponding to the keyword name and modifying the updating time corresponding to the keyword name into the current time;
or,
and when the program name is added into the keyword list as a new keyword name, setting the updating times corresponding to the new keyword name as an initial updating time value and setting the updating time corresponding to the new keyword name as the current time.
Wherein, the step of maintaining the favorite program keyword list of the user according to the watching condition of the user further comprises:
after modifying the update time corresponding to the keyword name to the current time or setting the update time corresponding to the new keyword name to the current time,
and if the updating time corresponding to the keyword or the new keyword is not updated within one week, removing the keyword or the new keyword from the favorite program keyword list.
Wherein, after the step of adding the program information containing the program name to the pre-established favorite program guide, the method further comprises:
and determining the arrangement position of the program information containing the program name in the favorite program guide according to the updating times and/or the updating time of the keyword name contained in the program name in the favorite program keyword list.
Correspondingly, the embodiment of the invention also provides a digital television receiving terminal, which comprises:
the maintenance module is used for maintaining a favorite program keyword list of a user according to the program watching condition of the user, wherein the favorite program keyword list comprises: a keyword name;
a search module for searching for electronic program guide, EPG, information from a transport stream, the EPG information comprising: program information including a program name;
and the processing module is used for matching the keyword name with the program name, and adding the program information containing the program name into a pre-established favorite program guide if the keyword name is contained in the program name.
Wherein the maintenance module comprises:
the acquiring unit is used for judging the program as the favorite program of the user when the time for the user to continuously watch the same program exceeds a continuous watching time threshold value, and acquiring the program name of the favorite program of the user;
the matching unit is used for matching the program name with the keyword name in the favorite program keyword list;
and the maintenance unit is used for replacing the keyword name with the program name if the proportion of the length of the continuous same part of the program name and the keyword name in the program name and the keyword name is larger than a preset same judgment threshold value, and otherwise, adding the program name into the favorite program keyword list as a new keyword name.
Wherein, the favorite program keyword list further comprises: updating times and updating time, wherein the keyword name, the updating times and the updating time are in one-to-one correspondence;
the maintenance unit is further configured to add 1 to the update times corresponding to the keyword name and modify the update time corresponding to the keyword name to the current time when the program name is used to replace the keyword name; or,
and the program name is used as a new keyword name and is added into the keyword list, the updating times corresponding to the new keyword name are set as an initial updating time value, and the updating time corresponding to the new keyword name is set as the current time.
The maintenance unit is further configured to, after the update time corresponding to the keyword name is modified to be the current time or the update time corresponding to the new keyword name is set to be the current time, clear the keyword or the new keyword from the favorite program keyword list if the update time corresponding to the keyword or the new keyword is not updated within one week.
The processing module is further configured to determine an arrangement position of the program information including the program name in the favorite program guide according to the update times and/or update times of the keyword name included in the program name in the favorite program keyword table after the program information including the program name is added to the pre-established favorite program guide.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the keyword list of the favorite program of the user is maintained according to the program watching condition of the user, and the program information corresponding to the program name containing the keyword name in the EPG information is added to the favorite program guide, so that the user can know the information of the favorite program by directly checking the favorite program guide, and the user can easily find the favorite program through the favorite program guide.
Detailed Description
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.
Referring to fig. 1, a flow chart of an embodiment of a method for implementing a favorite program guide of the present invention is shown, the method includes:
step S11, maintaining the favorite keyword list of the user according to the watching condition of the user.
Wherein, the favorite program keyword list comprises: a keyword name. Step S11 is to add, update or delete the keyword name to the favorite keyword list according to the watching condition of the user for different programs when the user watches programs; for example, when the user continuously watches a certain program for half an hour, the program name of the program can be added to the favorite program keyword list. Further, the favorite program keyword list further comprises: the updating times and the updating time, the keyword name, the updating times and the updating time are in one-to-one correspondence, and generally, the larger the updating time value is, the closer the updating time is to the current time, the higher the user's liking degree of the program indexed by the keyword name will be. In one embodiment, the structure of the favorite program keyword list may be as follows:
list one, favorite program keyword list
Keyword name (character type, maximum 128 characters) |
Number of updates (numerical value between 1 and 66535) |
Update time (year, month, day, hour, minute, second) |
XXX |
XXX |
XXX |
Step S12, searching for EPG information from the transport stream, the EPG information including: program information including a program name.
The EPG information may include one or more program information, and the program information may include, in addition to the program name: program type, playing time, playing frequency point and other information.
Step S13, matching the keyword name in the favorite program keyword list with the program name in the EPG information, and if the keyword name is included in the program name, adding the program information including the program name to a favorite program guide established in advance.
Step S13 may sequentially extract keywords from the favorite program keyword list, and match the keywords with all program names in the EPG information; and when the key words are contained in a certain program name, adding the program information corresponding to the program name into the favorite program guide. By the method, the program information of the favorite programs of the user can be searched from the EPG information, so that the user can obtain the program information of the favorite programs by directly browsing a favorite program guide.
Further, after the program information is added to the pre-established favorite program guide in step S13, the arrangement position of the program information in the favorite program guide may be determined according to the update times and/or the update times corresponding to the keyword names included in the program names, for example, the program information corresponding to the keyword names whose update times are closer to the current time has a higher position in the favorite program list when the update times have a higher value.
According to the embodiment of the invention, the keyword list of the favorite program of the user is maintained according to the program watching condition of the user, and the program information corresponding to the program name containing the keyword name in the EPG information is added to the favorite program guide, so that the user can know the information of the favorite program by directly checking the favorite program guide, and the user can easily find the favorite program through the favorite program guide.
Referring to fig. 2, a flowchart of an embodiment of step S11 in fig. 1 is shown, where the step S11 includes:
step S21, when the time for the user to continuously watch the same program exceeds the continuous watching time threshold, determining that the program is the favorite program of the user, and obtaining the program name of the favorite program of the user.
Here, the continuous viewing time threshold may be set to 30 minutes or 35 minutes or the like.
Step S22, matching the program name with the keyword name in the favorite program keyword list.
Step S22 may sequentially extract keyword names from the keyword list, and match the keyword names with the program names obtained in step S21, if the lengths of the two consecutive identical portions are greater than the same predetermined determination threshold (e.g., 80% or 85%) in the program name and the keyword name obtained in step S21, the program name obtained in step S21 is considered to match the keyword name, and the process goes to step S23, otherwise, the process goes to step S24. This step is illustrated below by way of example:
assuming that the preset identity judgment threshold is 80%, the program name acquired in step S21 is "ABCDEFGH", and the keyword list of the favorite program includes three keywords, which are "ABCJKLMG", "JKLXYZWY", and "ABCDEFGK", respectively, since the consecutive identity part of "ABCDEFGH" and "ABCDEFGK" is "ABCDEFG", and the proportion of the same to "ABCDEFGK" is 87.5% greater than the identity judgment threshold 80%, it can be considered that "ABCDEFGH" matches "ABCDEFGK".
Further, if there are a plurality of program names matched in step S21, the keyword name with the highest matching accuracy is selected as the keyword name that is finally matched with the program name.
Step S23, replacing the keyword name with the program name.
Further, after the step S23 is executed, the process goes to step S25.
Step S24, adding the program name as a new keyword name into the favorite program keyword list.
Further, after the step S23 is executed, the process goes to step S26.
Step S25, adding 1 to the update times corresponding to the keyword name, and modifying the update time corresponding to the keyword name to the current time.
Further, after the step S25 is executed, the process goes to step S27.
In step S26, the update time corresponding to the new keyword name is set to the initial value of the update time (e.g., "1"), and the update time corresponding to the new keyword name is set to the current time.
Further, after the step S26 is executed, the process goes to step S27.
Step S27, if the update time corresponding to the keyword name or the new keyword name is not updated within one week, removing the keyword name or the new keyword name from the favorite keyword list.
It should be noted that, in the favorite program keyword table, the arrangement position of the keyword name may be determined according to the number of updates and/or the update time corresponding to the keyword name.
In the embodiment, a favorite program keyword list is maintained (including adding new keyword names, updating keyword names or deleting keyword names) according to the program watching condition of a user; by maintaining the favorite program keyword list, the favorite program keyword list can reflect the program favorite condition of the user in real time, so that the favorite program searched by the favorite program keyword list is really the favorite program of the user, and the program information which is not the favorite program of the user is prevented from being added into the favorite program guide.
The method for implementing the favorite program guide according to the embodiment of the present invention is described in detail in the above method flow, and the digital television receiving terminal 3 according to the embodiment of the present invention is initiated with reference to fig. 3, where the digital television receiving terminal 3 may be configured to execute the above method flow, and the digital television receiving terminal 3 may be a set-top box, a network protocol television, a television handset, a digital television all-in-one machine, and the like.
Referring to fig. 3, it is a schematic structural diagram of a digital television receiving terminal 3 according to an embodiment of the present invention, where the digital television receiving terminal 3 includes:
the maintaining module 31 is configured to maintain a favorite keyword list of the user according to the program watching situation of the user.
Wherein, the favorite program keyword list comprises: a keyword name. The maintenance module 31 may add, update or delete the keyword name to the favorite program keyword list according to the watching condition of the user on different programs when the user watches programs; for example, when the user continuously watches a certain program for half an hour, the program name of the program can be added to the favorite program keyword list. Further, the favorite program keyword list further comprises: the updating times and the updating time, the keyword name, the updating times and the updating time are in one-to-one correspondence, and generally, the larger the updating time value is, the closer the updating time is to the current time, the higher the user's liking degree of the program indexed by the keyword name will be. In one embodiment, the structure of the favorite program keyword list may be as follows:
list two, favorite program keyword list
Keyword name (character type, maximum 128 characters) |
Number of updates (numerical value between 1 and 66535) |
Update time (year, month, day, hour, minute, second) |
XXX |
XXX |
XXX |
A search module 32 for searching an electronic program guide EPG information from a transport stream, the EPG information comprising: program information including a program name.
The EPG information may include one or more program information, and the program information may include, in addition to the program name: information such as program type, playing time, playing frequency point and the like; the search module 32 may perform an operation of searching for EPG information each time the digital television receiving terminal 3 is started up or detects a change in EPG information in the transport stream.
The processing module 33 is configured to match a keyword name in a favorite program keyword list with a program name in the EPG information, and add the program information including the program name to a favorite program guide established in advance if the keyword name is included in the program name.
The processing module 33 may sequentially extract keywords from the favorite program keyword list, and match the keywords with all program names in the EPG information; and when the key words are contained in a certain program name, adding the program information corresponding to the program name into the favorite program guide. By the method, the program information of the favorite programs of the user can be searched from the EPG information, so that the user can obtain the program information of the favorite programs by directly browsing a favorite program guide.
Further, after the processing module 33 adds the program information to the pre-established favorite program guide, the arrangement position of the program information in the favorite program guide may be determined according to the update times and/or the update times corresponding to the keyword names included in the program names, for example, the program information corresponding to the keyword name whose update time is closer to the current time has a higher position in the favorite program list when the update time value is larger.
According to the embodiment of the invention, the keyword list of the favorite program of the user is maintained according to the program watching condition of the user, and the program information corresponding to the program name containing the keyword name in the EPG information is added to the favorite program guide, so that the user can know the information of the favorite program by directly checking the favorite program guide, and the user can easily find the favorite program through the favorite program guide.
Continuing to refer to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of the maintenance module 31, and the maintenance module 31 includes:
the obtaining unit 311 is configured to, when a time that a user continuously watches a same program exceeds a continuous watching time threshold, determine that the program is a favorite program of the user, and obtain a program name of the favorite program of the user.
Here, the continuous viewing time threshold may be set to 30 minutes or 35 minutes or the like.
The matching unit 312 is configured to match the program name with a keyword name in a favorite program keyword list.
The matching unit 312 may sequentially extract keyword names from the keyword list, and match the keyword names with the program names acquired in step S21, respectively, if the lengths of the two consecutive identical portions are greater than the preset identical determination threshold (for example, 80% or 85%) in the program name and the keyword name acquired by the acquiring unit 311, the program name acquired by the acquiring unit 311 is considered to be matched with the keyword name, the maintenance unit 313 is instructed to perform the operation of replacing the keyword name with the program name, otherwise, the maintenance unit 313 is instructed to perform the operation of adding the program name as a new keyword name into the favorite program keyword list. The following description exemplifies the matching process of the matching module 312:
assuming that the preset identity judgment threshold is 80%, the program name acquired in step S21 is "ABCDEFGH", and the keyword list of the favorite program includes three keywords, which are "ABCJKLMG", "JKLXYZWY", and "ABCDEFGK", respectively, since the consecutive identity part of "ABCDEFGH" and "ABCDEFGK" is "ABCDEFG", and the proportion of the same to "ABCDEFGK" is 87.5% greater than the identity judgment threshold 80%, it can be considered that "ABCDEFGH" matches "ABCDEFGK".
Further, if there are a plurality of program names matched with the matching unit 312, the keyword name with the highest matching accuracy is selected as the keyword name finally matched with the program name.
When the maintenance unit 313 performs an operation of replacing the keyword name with the program name, the processing module 313 is further configured to add 1 to the update time corresponding to the keyword name and modify the update time corresponding to the keyword name to the current time.
When the maintenance unit 313 performs an operation of adding the program name as a new keyword name to the favorite program keyword table, the maintenance unit 313 is further configured to set the update number corresponding to the new keyword name to an update number initial value (e.g., "1"), and set the update time corresponding to the new keyword name to the current time.
Further, the maintenance unit 313 is further configured to, after the update time corresponding to the keyword name is modified to the current time or the update time corresponding to the new keyword name is set to the current time, clear the keyword or the new keyword from the favorite keyword list if the update time corresponding to the keyword or the new keyword is not updated within one week.
It should be noted that the maintenance unit 313 may determine the arrangement position of the keyword name in the favorite program keyword list according to the number of updates and/or the update time corresponding to the keyword name.
In the embodiment, a favorite program keyword list is maintained (including adding new keyword names, updating keyword names or deleting keyword names) according to the program watching condition of a user; by maintaining the favorite program keyword list, the favorite program keyword list can reflect the program favorite condition of the user in real time, so that the favorite program searched by the favorite program keyword list is really the favorite program of the user, and the program information which is not the favorite program of the user is prevented from being added into the favorite program guide.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-only memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.