Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The program reservation function has become one of the common functions of multimedia devices such as televisions, set-top boxes and the like. The user can reserve a program at a designated time in the future through the program reservation function.
However, since the hardware resources of the multimedia device are limited and most of the wonderful programs are broadcast in the same time slot every day, when a user subscribes to a plurality of programs, there may be an overlap of the subscription time slots of two or more programs, which may cause a subscription conflict. The reservation conflict is explained in detail below from two aspects:
first, when the reserved program is a program for reserved recording, the reasons for causing the reservation conflict include two reasons: firstly, a tuning module is arranged in multimedia equipment such as a television and the like, the tuning module is used for locking a frequency point and acquiring a television signal of the frequency point, and the acquired television signal is a data basis for recording programs. One tuning module can only lock one frequency point at the same time, so that the number of frequency points related to program recording in one time period cannot be larger than that of the tuning modules, and once the number of reserved programs for recording is larger than that of the tuning modules, reservation conflict occurs. Illustratively, two tuning modules are provided in the television set. In eight-point golden time period at night, programs played by three television channels are all wonderful, and a user performs reservation recording on the programs of the three television channels, but the three television channels belong to three different frequency points, and the number of the three television channels is larger than the total number of tuning modules, so that reservation conflict occurs. Secondly, due to the overall performance limitation of multimedia devices such as a television, for example, the limitation of resources such as a CPU (central processing unit) and a RAM (Random Access Memory), the number of channels simultaneously recorded at one frequency point is also limited. For example, there are 5 channels under one frequency point, and if programs corresponding to the 5 channels are recorded at the same time, the consumption performance may cause that the simultaneous recording of the 5 channels cannot be supported, and generally the number of the channels recorded at the same time is limited, for example, the number of the channels is limited to 3, so that if programs of more than three channels are reserved under the frequency point within the same time, a reservation conflict may occur.
Second, when the reserved program is a program for reserved viewing, the reasons for the reservation conflict are: the multimedia device can only play one program at the same time, so that the reservation conflict occurs when two or more reserved programs for reserved viewing overlap time periods.
Currently, reservation conflict handling methods generally include the following two methods: firstly, a reservation conflict prompt is sent out aiming at programs with reservation conflicts, a user is informed of which programs have reservation conflicts in a prompting mode, and when the user insists on selecting one of the programs for reservation, the unselected programs are cleared for reservation. According to the reservation conflict processing method, the user can only select one program from the programs with the reservation conflict to reserve, and other unselected programs cannot be reserved, so that poor reservation experience is brought to the user. Second, the hardware configuration of the multimedia device is increased, for example, the number of tuning modules is increased. However, this increases the hardware cost of the multimedia device, and most multimedia devices are not supported for hardware configuration upgrade after being shipped.
The embodiment of the application provides a program reservation conflict processing device and method, which are used for giving an optimized reservation suggestion to a program with a reservation conflict on the premise of not increasing hardware configuration of multimedia equipment, so that a user can reserve the program according to the reservation suggestion, the reservation success rate of the reserved program is improved, and the reservation experience of the user is further improved.
The program reservation conflict processing device and method of the embodiment of the application can be applied to any multimedia equipment which needs to perform program reservation conflict processing, and the embodiment of the application does not specifically limit the specific type of the multimedia equipment. Illustratively, the multimedia devices may include, but are not limited to, televisions and set-top boxes.
As shown in fig. 1, an embodiment of the present application provides a program reservation conflict processing apparatus, which mainly includes: a determination module 11, a detection module 12 and a prompt module 13. Wherein,
the determining module 11 is configured to determine the target reserved program or the current reserved program as the program to be replaced when it is determined that a target reserved program having a reservation conflict with the current reserved program exists in the existing reserved programs.
A detecting module 12 for detecting whether there is a first program for replacing a program to be replaced based on the electronic program guide data;
a prompt module 13, configured to, when the detection module 12 detects that the first program exists, send out a reservation modification prompt for a program to be replaced based on the detected first program.
The following describes the specific structure and interaction relationship of the components involved in the program reservation conflict processing apparatus:
the determining module 11:
the determining module 11 is mainly configured to determine the target reserved program or the current reserved program as the program to be replaced when it is determined that a target reserved program having a reservation conflict with the current reserved program exists in the existing reserved programs.
The reserved program mentioned in the embodiment of the present application includes the following two purposes: one is that the scheduled program is a scheduled program for recording, that is, the scheduled program is scheduled for recording at a specified time in the future; alternatively, the reserved program is a reserved program for viewing, that is, a reserved program reserved for being played at a designated time in the future.
The current reserved program is the latest reserved program, and the corresponding program information, program channels and reserved time periods exist in the current reserved program. The existing reserved program is a program reserved before the current reserved program, the existing reserved program has a corresponding reserved record, and program information, a program channel and a reserved time period corresponding to the reserved program are recorded in the reserved record.
The user can make a reservation by: the database of the multimedia device stores the latest current electronic program guide data, and the electronic program guide data comprises program information related to all frequency points, and broadcasting time periods and program channels corresponding to the program information. And when a reservation instruction sent by a user is received, displaying the latest electronic program guide data on an electronic program guide interface so that the user can select the program to be reserved. When a reserved program issued by a user based on the content displayed on the electronic program guide interface is received, the current reserved program is received. The currently reserved program has corresponding program information, program channel and reserved time slot, and it is identified whether the user is reserved for reserved recording or reserved viewing.
After acquiring the current reserved program, it is necessary to determine whether there is a target reserved program having a reservation conflict with the current reserved program in the existing reserved programs, where the determination method of the reservation conflict is related to the specific use of the reserved program and is described as follows:
first, as shown in fig. 2, the determination module 11 includes a first detection unit 111 and a first determination unit 112. A first detecting unit 111, configured to detect whether there is an idle tuning module in a reserved time period of a currently reserved program when the reserved program is used for recording; a first determining unit 112, configured to determine, when the first detecting unit 111 detects that there is no idle tuner module, all reserved programs occupying the tuner module within a reserved time period of a currently reserved program as target reserved programs.
The specific implementation procedures involved by the first detecting unit 111 and the first determining unit 112 when the scheduled program is for recording are explained by the following steps 101A to 101C:
101A, a first detection unit 111 detects whether an idle tuning module exists in a reserved time period of a currently reserved program; if no idle tuning module exists, executing step 101C; if there is an idle tuning module, step 101B is executed.
The tuning module is used for locking the frequency point and acquiring a television signal of the locked frequency point, wherein the acquired television signal is a data basis for recording programs. One tuning module can only lock one frequency point at the same time, so that the number of the frequency points related to the reserved programs in one time period cannot be larger than that of the tuning modules, and once the number of the reserved programs for recording is larger than that of the tuning modules, reservation conflict occurs. It is therefore desirable to detect whether there is a free tuner module within the reserved time period of the currently reserved program.
If it is detected that an idle tuning module exists in the reserved time period of the currently reserved program, it indicates that a tuning module capable of locking the frequency point to which the currently reserved program belongs still exists in the reserved time period of the currently reserved program, and no reservation conflict occurs, so step 101B is executed.
If it is detected that there is no idle tuning module in the reserved time period of the currently reserved program, it indicates that there is no tuning module capable of locking the frequency point to which the currently reserved program belongs in the reserved time period of the currently reserved program, and a reservation conflict occurs at a high probability, so step 101C is executed.
101B, according to the frequency point to which the current reserved program belongs, reserving the current reserved program in an idle tuning module, and ending the current flow.
The specific process of performing reservation processing on the current reserved program at the idle tuning module according to the frequency point to which the current reserved program belongs is as follows: selecting a tuning module which is idle in the reserved time period of the current reserved program, generating a reserved record based on the frequency point to which the current reserved program belongs, the identification of the selected tuning module, the program information corresponding to the current reserved program, the program channel and the reserved time period, and storing the reserved record in a database of the multimedia device. The multimedia device can trigger a corresponding tuning module to lock the frequency point of the current reserved program in the reserved time period according to the reserved record, and record the program information and the program channel corresponding to the current reserved program in the television program corresponding to the frequency point.
101C, the first determination unit 112 determines all the reserved programs occupying the tuning module in the reserved time period of the currently reserved program as the target reserved program.
If no idle tuning module exists in the reserved time period of the current reserved program, it is indicated that no tuning module capable of locking the frequency point to which the current reserved program belongs exists in the reserved time period of the current reserved program. The reserved programs occupying the tuning module in the reserved time period of the current reserved program are all programs with the overlapped time period with the current reserved program, so that the reserved programs occupying the tuning module in the reserved time period of the current reserved program are all determined as target reserved programs.
Considering that the frequency point to which the currently reserved program belongs may be locked in the reserved time slot corresponding to the frequency point, as shown in fig. 2, the determining module 11 further includes a first determining unit 113. A first judging unit 113, configured to, when the first detecting unit 111 detects that there is no idle tuning module, judge whether there is a frequency point to which a currently reserved program belongs in frequency points related to an occupied tuning module; if the reserved programs do not exist, the first determining unit 112 is triggered to determine all the reserved programs occupying the tuning module in the reserved time period of the current reserved program as the target reserved program. The determination module 11 further includes: a second detecting unit 114, configured to detect whether the number of reserved programs existing at a frequency point to which a currently reserved program belongs reaches a first target number when the first determining unit 113 determines that the frequency point to which the currently reserved program belongs exists in the frequency points related to the occupied tuning module; if yes, triggering the first determining unit 112 to determine all reserved programs occupying the tuning module in the reserved time period of the current reserved program as target reserved programs; if not, the current reserved program is reserved according to the frequency point to which the current reserved program belongs.
Specifically, the specific execution process of the first determining unit 113 and the second detecting unit 114 can be implemented by the following steps 101D to 101F, where the steps 101D to 101F are executed after the step 101A detects that there is no free tuner module, and before the step 101C determines all reserved programs occupying the tuner module in the reserved time period of the currently reserved program as the target reserved program:
101D, the first determining unit 113 determines whether a frequency point to which the current reserved program belongs exists in frequency points related to an occupied tuning module; if the frequency point to which the currently reserved program belongs does not exist in the frequency points related to the occupied tuning module, step 101C, namely the first determining unit 112 determines all reserved programs occupying the tuning module in the reserved time period of the currently reserved program as target reserved programs, is executed; and if the frequency point related to the occupied tuning module has the frequency point to which the current reserved program belongs, executing the step 101E.
Considering that the frequency point to which the current reserved program belongs may be locked by the tuning module in the corresponding reserved time period, it is necessary to determine whether the frequency point to which the current reserved program belongs exists in the frequency points related to the occupied tuning module.
If the frequency point to which the currently reserved program belongs does not exist in the frequency points related to the occupied tuning module, it indicates that the reserved program overlapping with the reserved time slot of the currently reserved program exists, and there is a reservation conflict with the currently reserved program, so step 101C is executed "the first determining unit 112 determines all the reserved programs occupying the tuning module in the reserved time slot of the currently reserved program as the target reserved program".
If the frequency point to which the current reserved program belongs exists in the frequency points related to the occupied tuning module, it is indicated that the occupied tuning module is occupied by other reserved modules in the reserved time period of the current reserved program, and the multimedia device can record the program information and the program channel corresponding to the current reserved program from the television signal acquired by the tuning module in the reserved time period of the current reserved program with a high probability, so that step 101E is executed.
101E, the second detecting unit 114 detects whether the number of reserved programs existing in the frequency point to which the current reserved program belongs reaches a first target number; if yes, go to step 101C, "first determining unit 112 determines all reserved programs occupying the tuning module in the reserved time period of the currently reserved program as target reserved programs"; if not, go to step 101F.
Because the performance of the whole multimedia devices such as a television is limited, and the number of channels simultaneously recorded at one frequency point is limited, whether the number of reserved programs existing at the frequency point to which the current reserved program belongs reaches the first target number needs to be detected.
If it is detected that the number of the reserved programs existing at the frequency point to which the current reserved program belongs reaches the first target number, it is indicated that the overall performance of the multimedia device cannot meet the requirement of recording the current reserved program at the frequency point, and therefore, the first determining unit 112 determines all the reserved programs occupying the tuning module in the reserved time period of the current reserved program as the target reserved programs.
If it is detected that the number of the reserved programs existing at the frequency point to which the current reserved program belongs does not reach the first target number, it is indicated that the overall performance of the multimedia device can meet the requirement of recording the current reserved program at the frequency point, and therefore step 101F is executed.
And 101F, reserving the current reserved program according to the frequency point of the current reserved program.
The specific process of reserving the current reserved program according to the frequency point to which the current reserved program belongs is as follows: and generating a reservation record based on the frequency point to which the current reserved program belongs, the identification of the tuning module occupied by the frequency point to which the current reserved program belongs, the program information, the program channel and the reservation time period corresponding to the current reserved program, and storing the reservation record in a database of the multimedia device. The multimedia device can trigger a corresponding tuning module to lock the frequency point of the current reserved program within the reserved time period according to the reserved record, and record the program information and the program channel corresponding to the current reserved program in the television programs in the frequency point.
Second, as shown in fig. 2, the determining module 11 includes: a third judging unit 115 and a second determining unit 116. A third judgment unit 115 for judging whether there is an overlap of the reserved time periods of the existing reserved program and the current reserved program when the reserved program is used for playing; a second determining unit 116 configured to determine, as the target reserved program, a reserved program whose reserved time period overlaps with the currently reserved program when the third judging unit 115 judges that there is an overlap.
When a program is reserved for playing, the specific implementation processes involved by the third judging unit 115 and the second determining unit 116 can be explained by the following steps 101G to 101J:
101G, a third judgment unit 115 judges whether there is an overlap between the reserved time periods of the existing reserved program and the current reserved program; if yes, go to step 101H; otherwise, step 101J is performed.
The multimedia device can only play one program at the same time, and when two or more reserved programs have overlapped time slots, a reservation conflict occurs, so that it is necessary to determine whether the reserved time slots of the existing reserved program and the current reserved program overlap.
If it is determined that there is no overlap between the reserved time periods of the existing reserved program and the current reserved program, it is determined that there is no reservation conflict between the existing reserved program and the current reserved program due to the difference between the future broadcast times of the existing reserved program and the current reserved program, and step 101J is executed.
If the reserved time periods of the existing reserved program and the current reserved program are overlapped, the existing reserved program and the current reserved program are overlapped in the future playing time. Since the multimedia device can only play one program at the same time, there is a reservation conflict between the two, so step 101H is performed.
101H, the second determination unit 116 determines a reserved program in which the reserved time zone overlaps with the currently reserved program as the target reserved program.
101J, performing reservation processing on the current reserved program according to the frequency point to which the current reserved program belongs.
The specific process of performing reservation processing on the current reserved program according to the frequency point to which the current reserved program belongs is as follows: selecting a tuning module which is idle in the reserved time period of the current reserved program, generating a reserved record based on the frequency point to which the current reserved program belongs, the identification of the selected tuning module, the program information corresponding to the current reserved program, the program channel and the reserved time period, and storing the reserved record in a database of the multimedia device. The multimedia device can trigger a corresponding tuning module to lock the frequency point of the current reserved program within the reserved time period according to the reserved record, and acquire and play the program information and the program channel corresponding to the current reserved program from the television programs in the frequency point.
And after the target reserved program is determined, determining the target reserved program or the current reserved program as a program to be replaced. The determination principle of the program to be replaced includes the following two principles: firstly, a reserved program with a low matching degree with the watching habits of the user determines a program to be replaced, for example, the current reserved program is determined as the program to be replaced because the matching degree with the watching habits of the user is low; and secondly, considering that the newly reserved program has the highest degree of meeting the requirements of the user, determining the current reserved program reserved later as the program to be replaced.
The detection module 12:
the detection module 12 is mainly configured to detect whether there is a first program for replacing the program to be replaced based on the electronic program guide data.
The electronic program guide data used by the detection module 12 includes program information and a broadcast time period and a program channel corresponding to the program information, which are the basis for optimizing program reservation.
The detection module 12 detects whether a specific procedure for replacing the first program of the program to be replaced exists in relation to the use of the reserved program and the program to be replaced, based on the electronic program guide data, as described below:
first, when the scheduled program is for recording and the program to be replaced is the currently scheduled program, as shown in fig. 2, the detecting module 12 includes: a setting unit 121 and a third detection unit 122. Wherein, the setting unit 121 is configured to set the determined ordering of the target scheduled programs when the program to be replaced is the current scheduled program; a third detecting unit 122, configured to detect, according to the target reserved program determined by the sequencing traversal, whether first program information exists in electronic program guide data corresponding to a frequency point to which the currently traversed target reserved program belongs; if the program information exists, determining the first program information as target program information, and determining a program corresponding to the target program information as a first program, wherein the electronic program guide data comprises program information related to the frequency point and a broadcasting time period corresponding to the program information, and the first program information is the same as the program information of the current reserved program; and if the first program information does not exist in the electronic program guide data corresponding to the frequency point to which the currently traversed target reserved program belongs, continuously traversing and sequencing the target reserved program positioned at the next position.
The specific implementation procedure involved by the setting unit 121 and the third detecting unit 122 is explained by the following steps 102A to 102D:
102A, the setting unit 121 sets the ranking of the determined target reserved program.
Because the number of the current reserved programs is one, the replacement programs are conveniently searched for, and therefore the current reserved programs are set as the programs to be replaced.
The specific method for setting the determined ordering of the target reserved program comprises the following steps:
first, the setting unit 121 determines the number of target reserved programs corresponding to the frequency point to which each target reserved program belongs, and sets the sequence of the target reserved programs according to the determined number.
Second, the setting unit 121 sorts in order of the reservation time of the target reservation program.
Third, the setting unit 121 randomly sets the ranking of the target reserved programs.
Fourthly, the setting unit 121 is specifically configured to group the target reserved programs belonging to the same frequency point; for each group, judging whether the number of the target reserved programs in the group reaches a corresponding third target number or not; if so, eliminating the target reserved programs in the group; and sequencing the target reserved programs which are not eliminated.
Because the performance of the whole multimedia equipment such as a television is limited, and the number of channels simultaneously recorded at one frequency point is limited, target reservation programs belonging to the same frequency point are divided into a group so as to count the number of the target reservation programs with time slot overlapping at the same frequency point.
For each group, judging whether the number of the target reserved programs in the group reaches a corresponding third target number or not; and if so, eliminating the target reserved programs in the group. If the number of the target reserved programs in the group is judged to reach the corresponding third target number, the performance of the whole multimedia equipment cannot meet the requirement that new reserved programs are added under the corresponding frequency points of the group in the time period related to the group, and therefore the target reserved programs in the group are removed. If the number of the target reserved programs in the group is judged not to reach the corresponding third target number, the performance of the whole multimedia equipment can also meet the requirement that new reserved programs are added under the corresponding frequency points of the group, and therefore the target reserved programs in the group are reserved. And sequencing the target reserved programs which are not eliminated.
After the setting unit 121 sets the ordering of the target scheduled programs, it is considered that the frequency point to which each target scheduled program belongs may have a first program replacing the currently scheduled program, and therefore the determined target scheduled programs need to be traversed according to the ordering.
102B and the third detecting unit 122 traverse the determined target reserved program according to the sorting, and if it is detected that the first program information exists in the electronic program guide data corresponding to the frequency point to which the currently traversed target reserved program belongs, determine the first program information as the target program information, and determine the program corresponding to the target program information as the first program.
The electronic program guide data used here includes program information related to the frequency point to which the currently traversed target reserved program belongs, and a broadcast time period and a program channel corresponding to the program information.
The first program information is the same as the program information of the currently scheduled program. Because a substitute program is found for the current reserved program in the frequency point to which the target reserved program traversed currently belongs, no reservation conflict is caused by no overlapping or overlapping of the reserved time periods of the current reserved program and the target reserved program, and therefore the broadcasting time period corresponding to the first program information can be either not overlapped or overlapped with the reserved time period of the current reserved program.
When searching electronic program guide data corresponding to a frequency point to which a currently traversed target reserved program belongs, firstly searching whether program information identical to the program information of the currently reserved program exists in the electronic program guide data; if the same program information exists, determining the same program information as the first program information, and continuously traversing the next target reserved program according to the sequence; and if the same program information does not exist, continuously traversing the next target reserved program directly according to the sequence.
In this way, the program which is the same as the currently reserved program is preferentially searched to meet the requirements of the user to the maximum extent.
102C and the third detecting unit 122 continue to traverse and sort the target scheduled programs located at the next position if it is detected that the first program information does not exist in the electronic program guide data corresponding to the frequency point to which the target scheduled program currently traversed belongs.
If the first program information does not exist in the electronic program guide data corresponding to the frequency point to which the currently traversed target program to be reserved belongs, which indicates that the currently traversed frequency point to which the target program to be reserved belongs does not have a program capable of replacing the currently reserved program, the target program to be reserved located at the next position needs to be continuously traversed and sequenced to continuously search for the first program.
And if all the target reserved programs in the sequence are traversed and the first program is not searched, sending a prompt that the reservation of the current reserved program fails.
In order to find an alternative for the currently reserved program as much as possible, the detection module 12 further comprises a fourth detection unit 123, as shown in fig. 2. A fourth detecting unit 123, configured to detect, when the first program information is not detected in all target reserved programs in the traversal order of the third detecting unit 122, whether second program information exists in the electronic program guide data corresponding to the frequency point to which the currently traversed target reserved program belongs according to the target reserved program determined by the traversal order; if the program information exists, determining the second program information as target program information, and determining a program corresponding to the target program information as a first program, wherein the second program information is different from the program information of the currently reserved program, but the semantic similarity between the second program information and the program information of the currently reserved program is greater than a first similarity threshold; and if the second program information does not exist in the electronic program guide data corresponding to the frequency point to which the currently traversed target reserved program belongs, continuously traversing and sequencing the target reserved program positioned at the next position.
The specific implementation process involved in the fourth detection unit 123 can be described by the following steps 102D to 102F:
102D, when the first program information is not detected in all target scheduled programs in the traversal and sorting of the third detecting unit 122, the fourth detecting unit 123 detects whether second program information exists in the electronic program guide data corresponding to the frequency point to which the currently traversed target scheduled program belongs according to the target scheduled program determined by the traversal and sorting; if yes, go to step 102E; if not, go to step 102F.
When there is no program identical to the currently reserved program, the fourth detecting unit 123 will search for a program similar to the currently reserved program as an alternative, and therefore, when all target reserved programs in the traversal sequence of the third detecting unit 122 do not detect the first program information, the fourth detecting unit 123 will detect whether there is second program information in the electronic program guide data corresponding to the frequency point to which the currently traversed target reserved program belongs according to the target reserved program determined by the traversal sequence.
The second program information is different from the program information of the currently scheduled program, but the second program information is similar to the program information of the currently scheduled program. The judgment standard that the second program information is similar to the program information of the current reserved program is as follows: the semantic similarity between the second program information and the program information of the current reserved program is greater than a first similarity threshold. The method for calculating the semantic similarity between the second program information and the program information of the currently reserved program may be: and inputting the second program information and the program information of the currently reserved program into a preset similarity recognition model, and determining the similarity input by the similarity recognition model as the semantic similarity of the second program information and the program information of the currently reserved program. The reason why the program information having the semantic similarity larger than the first similarity threshold is selected as the second program information is that: the program corresponding to the program information with the semantic similarity larger than the first similarity threshold is the program with the same type as the current reserved program in a high probability, and the probability of meeting the reservation requirement of the user is high.
Because a substitute program is found for the current reserved program in the frequency point to which the target reserved program traversed currently belongs, no reservation conflict is caused by no overlapping or overlapping of the reserved time periods of the current reserved program and the target reserved program, and therefore, the broadcasting time period corresponding to the second program information can be either not overlapped or overlapped with the reserved time period of the current reserved program.
102E, the fourth detecting unit 123 determines the second program information as the target program information, and determines the program corresponding to the target program information as the first program.
102F and the fourth detecting unit 123 continue to traverse and sort the target scheduled programs located at the next position if the second program information does not exist in the electronic program guide data corresponding to the frequency point to which the currently traversed target scheduled program belongs.
Further, as shown in fig. 2, the detection module 12 further includes: a fifth detection unit 124. A fifth detecting unit 124, configured to determine, after determining the target program information and before determining the program corresponding to the target program information as the first program, whether the number of reserved programs existing in the frequency point to which the target program information belongs in the broadcast time period corresponding to the target program information reaches a second target number; and if so, rejecting the target program information.
Because the performance of the whole multimedia equipment such as a television is limited, and the number of channels simultaneously recorded at one frequency point is limited, whether the number of reserved programs existing at the frequency point to which the target program information belongs in the broadcasting time period corresponding to the target program information reaches the second target number needs to be judged.
If the number of the reserved programs existing in the frequency point to which the target program information belongs reaches the second target number within the broadcasting time period corresponding to the target program information, the fact that the performance of the whole multimedia equipment cannot meet the requirement of recording the programs corresponding to the target program information at the frequency point is indicated, and therefore the target program information is removed.
If the number of the reserved programs at the frequency point to which the target program information belongs does not reach the second target number in the broadcasting time period corresponding to the target program information, the performance of the whole multimedia equipment is indicated to meet the requirement that the programs corresponding to the target program information are recorded in the broadcasting time period at the frequency point, and therefore the programs corresponding to the target program information are determined to be the first programs.
Secondly, when the reserved program is used for recording and the program to be replaced is the target reserved program, as shown in fig. 2, the detection module 12 includes: a setting unit 121 and a sixth detection unit 125. Wherein, the setting unit 121 is configured to set a ranking of the determined target reserved programs when the program to be replaced is the target reserved program; a sixth detecting unit 125, configured to traverse the determined target scheduled program according to the sorting; detecting whether third program information exists in electronic program guide data corresponding to the frequency point to which the current reserved program belongs; if the program information exists, determining the third program information as target program information, and determining a program corresponding to the third program information as a first program, wherein the electronic program guide data comprises program information related to the frequency point and a broadcasting time period corresponding to the program information, and the third program information is the same as the program information of the currently traversed target reserved program; and if the third program information does not exist in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, continuously traversing and sequencing the target reserved program positioned at the next position.
The specific implementation procedure involved by the setting unit 121 and the sixth detecting unit 125 is explained by the following steps 102G to 102I:
102G, the setting unit 121 sets the ranking of the determined target reserved program.
The detailed description of step 102G is substantially the same as that of step 102A, and therefore is not repeated here.
102H, the sixth detecting unit 125 traverses the determined target reserved program according to the sorting, and if it is detected that third program information exists in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, determines the third program information as the target program information, and determines the program corresponding to the third program information as the first program.
Since the current reserved program is the newly reserved program and has the highest matching degree with the requirements of the user, the determined target reserved program is set as the program to be replaced in order to meet the recording requirement of the current reserved program.
The electronic program guide data used here includes program information related to the frequency point to which the current reserved program belongs, and the broadcast time period and program channel corresponding to the program information.
The third program information is the same as the program information of the currently traversed target reserved program. Because the alternative program is found for the currently traversed target reserved program in the frequency point to which the current reserved program belongs, the reservation conflict cannot be caused by the fact that the reservation time periods of the current reserved program and the target reserved program are not overlapped or overlapped, and therefore the broadcasting time period corresponding to the third program information is not overlapped or overlapped with the reservation time period of the current reserved program.
When searching the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, firstly searching whether the electronic program guide data has program information which is the same as the program information of the currently traversed target reserved program; if the same program information exists, determining the same program information as third program information, and continuously traversing the next target reserved program according to the sequence; if the same program information does not exist, only the next target reserved program needs to be traversed directly according to the sequence.
In this way, the program which is the same as the currently traversed target reserved program is preferentially searched, so as to meet the requirements of the user to the maximum extent.
102I and a sixth detecting unit 125, if it is detected that the third program information does not exist in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, continue to traverse and sort the target reserved program located at the next position.
If it is detected that third program information does not exist in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, and it is indicated that the frequency point to which the current reserved program belongs does not have a program capable of replacing the currently traversed target reserved program, the target reserved program located at the next position needs to be continuously traversed and sorted to continuously search for the first program.
And if all the target reserved programs in the sequence are traversed and the first program is not searched out, sending a prompt that the reservation of the current reserved program fails.
In order to find an alternative for the currently traversed target scheduled program as much as possible, the detection module 12 further comprises a seventh detection unit 126, as shown in fig. 2. A seventh detecting unit 126, configured to detect whether fourth program information exists in the electronic program guide data corresponding to the frequency point to which the currently scheduled program belongs according to the target scheduled program determined by the traversal of the ranking when third program information is not detected in all target scheduled programs in the traversal of the ranking by the sixth detecting unit 125; if yes, determining fourth program information as target program information, and determining a program corresponding to the target program information as the first program, wherein the fourth program information is different from the program information of the currently traversed target program reservation, but the semantic similarity between the fourth program information and the program information of the currently traversed target program reservation is greater than a second similarity threshold; and if detecting that the fourth program information does not exist in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, continuously traversing and sequencing the target reserved program positioned at the next position.
The specific implementation procedure involved in the seventh detecting unit 126 can be illustrated by the following steps 102J to 102F:
102J, when the sixth detecting unit 125 traverses all the target scheduled programs in the sequence and does not detect the third program information, the seventh detecting unit 126 detects whether the fourth program information exists in the electronic program guide data corresponding to the frequency point to which the current scheduled program belongs according to the target scheduled program determined by the sequence traversal; if yes, go to step 102K; if not, go to step 102L.
When all the target scheduled programs in the traversal sequencing do not detect the third program information, the seventh detecting unit 126 will search for a program similar to the currently traversed target scheduled program as a replacement scheme, and therefore, when all the target scheduled programs in the traversal sequencing of the sixth detecting unit 125 do not detect the third program information, the seventh detecting unit 126 will detect whether the fourth program information exists in the electronic program guide data corresponding to the frequency point to which the currently scheduled program belongs according to the target scheduled program determined by the traversal sequencing.
The fourth program information is different from the program information of the currently traversed target reserved program, but the fourth program information is similar to the program information of the currently traversed target reserved program. The judgment standard that the fourth program information is similar to the currently traversed target reserved program is as follows: and the semantic similarity between the fourth program information and the program information of the currently traversed target reserved program is greater than a second similarity threshold. The method for calculating the semantic similarity between the fourth program information and the program information of the currently traversed target scheduled program may be: and inputting the fourth program information and the program information of the currently traversed target reserved program into a preset similarity recognition model, and determining the similarity input by the similarity recognition model as the semantic similarity between the fourth program information and the program information of the currently traversed target reserved program. The reason why the program information having the semantic similarity larger than the second similarity threshold is selected as the fourth program information is that: the program corresponding to the program information with the semantic similarity larger than the second similarity threshold value and the currently traversed target reserved program are the same in type with high probability, and the probability of meeting the reservation requirement of the user is high.
Because the alternative program is found for the currently traversed target reserved program in the frequency point to which the currently reserved program belongs, no reservation conflict is caused by no overlapping or overlapping of the reserved time periods of the currently reserved program and the currently traversed target reserved program, and therefore, the broadcast time period corresponding to the fourth program information and the reserved time period of the currently traversed target reserved program are not overlapped or overlapped.
102K, the seventh detecting unit 126 determines the fourth program information as the target program information, and determines the program corresponding to the target program information as the first program.
102L and the seventh detecting unit 126, if it is detected that the fourth program information does not exist in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, continue to traverse and sort the target reserved program located at the next position.
Further, as shown in fig. 2, the detection module 12 further includes: a fourth judging unit 127, configured to judge whether corresponding first programs exist in target reserved programs belonging to the same frequency point before sending a reservation modification prompt for a program to be replaced based on the detected first program after detecting whether the first program for replacing the program to be replaced exists based on the electronic program guide data; if yes, sending out a reservation modification prompt aiming at the program to be replaced based on the detected first program; otherwise, sending out the prompt of the reservation failure of the current reserved program.
Specifically, when the scheduled program is used for recording and the program to be replaced is the target scheduled program, after detecting whether there is a first program for replacing the program to be replaced based on the electronic program guide data, before issuing a scheduled modification prompt for the program to be replaced based on the detected first program, the specific implementation process involved by the fourth determining unit 127 includes the following steps one to three:
step one, judging whether corresponding first programs exist in target reservation programs belonging to the same frequency point. If yes, executing the step two; otherwise, executing step three.
Target reserved programs at the same frequency point all need to find corresponding first programs at the frequency point to which the current reserved program belongs, so that the tuning module locking the frequency point of the target reserved programs can be idle, then the idle tuning module is used for locking the frequency point to which the current reserved program belongs, and the recording of the current reserved program and the target reserved programs is completed.
Therefore, the fourth determining unit 127 needs to determine whether the target reserved programs belonging to the same frequency point all have corresponding first programs. And if the target reserved programs belonging to the same frequency point all have corresponding first programs, the target reserved programs all find corresponding replacement programs under the frequency point to which the current reserved program belongs, and therefore the second step is executed. If at least one target reserved program does not have the corresponding first program in the target reserved programs belonging to the same frequency point, it is indicated that some target reserved programs do not find corresponding alternative programs under the frequency point to which the current reserved program belongs, and therefore the third step is executed.
And step two, sending out a reservation modification prompt aiming at the program to be replaced based on the detected first program.
The content of the reservation modification prompt is used for informing the user of target reserved programs belonging to the same frequency point, the alternative programs exist under the frequency point to which the current reserved program belongs, and the user can modify the reservation condition of the target reserved programs according to the first program.
The contents included in the reservation modification prompt are: the program information corresponding to the first program, the broadcasting time period and the program channel corresponding to the program information, the target reserved program corresponding to the first program, the program information corresponding to the target reserved program, and the broadcasting time period and the program channel corresponding to the program information. The content included in the reservation modification prompt provides a modification basis for the user to modify the target reserved program.
And step three, sending out a prompt of the reservation failure of the current reserved program.
If the target reserved programs belonging to the same frequency point are judged to have at least one target reserved program and no corresponding first program, the fact that some target reserved programs do not find corresponding alternative programs under the frequency point to which the current reserved program belongs is indicated, and in order to avoid large-amplitude reservation and modification of the target reserved programs, a prompt of reservation failure of the current reserved program is sent out to inform that the current reserved program cannot be reserved due to reservation conflict.
The above execution logic for the two structures of the detection module 12 can be used alone or in combination, and the specific case of the combination is described in an embodiment below: only one tuning module is provided in the multimedia device for subscription. The program A is reserved firstly, and the time period corresponding to the program A is 8:00-9:00, the channel A is broadcast at 473 MHz. And then, reserving a program B, wherein the time period corresponding to the program B is 8:00-9:00, which is broadcast in frequency bin 503MHz on channel B. Since the time slots of the program a and the program B overlap, there is a reservation conflict. Since the program a is reserved before the program B, the program a is an existing reserved program, and the program B is a currently reserved program.
Selecting an existing reserved program 'program A' as a program to be replaced, searching electronic program guide data corresponding to all channels at a frequency point of 503MHz, and searching whether a program B exists; if yes, determining the retrieved program B as a first program of the currently reserved program 'program B' for replacing the currently reserved program 'program B'; if not, the currently reserved program 'program B' is continuously selected as the program to be replaced.
After searching the electronic program guide data corresponding to all channels at the frequency point 473MHz, if no program B exists, continuing to select the currently reserved program 'program B' as a program to be replaced, searching the electronic program guide data corresponding to all channels at the frequency point 473MHz, searching whether a program A exists, and if so, determining the searched program A as a first program of the existing reserved program 'program A' for replacing the existing reserved program 'program A'; if not, sending out the prompt of the reservation failure of the current reserved program 'program B'.
In the electronic program guide data corresponding to all channels passing through the search frequency 473MHz, there is a time slot 8:00-9:00, a reservation modification prompt aiming at the existing reserved program 'program A' is sent according to the retrieved program A.
Thirdly, when the reserved program is used for playing and the program to be replaced is the target reserved program or the currently reserved program, as shown in fig. 2, the detecting module 12 includes: an obtaining unit 128, configured to obtain electronic program guide data corresponding to at least one target frequency point, where the electronic program guide data includes program information related to the at least one target frequency point and a broadcast time period corresponding to the program information; an eighth detecting unit 129, configured to detect whether fifth program information exists in the electronic program guide data, where the fifth program information is the same as the program information of the program to be replaced, and a broadcast time period corresponding to the fifth program information does not overlap with a reserved time period of a reserved program that is not selected as the program to be replaced in the current reserved program and the target reserved program; and if the fifth program information exists, determining the program corresponding to the fifth program information as the first program.
The specific implementation processes involved in the acquisition unit 128 and the eighth detection unit 129 are implemented by the following steps 102M to 102P:
102M, obtaining electronic program guide data corresponding to at least one target frequency point, wherein the electronic program guide data comprises program information related to the at least one target frequency point and a broadcasting time period corresponding to the program information.
In order to find out a replacement scheme for replacing a program to be replaced, electronic program guide data corresponding to at least one target frequency point is obtained, where the at least one target frequency point may be determined based on service requirements, for example, may be all frequency points related to a multimedia device. The electronic program guide data includes program information and a broadcasting time period and a program channel corresponding to the program information, which are the basis for optimizing reservation.
102N, detecting whether fifth program information exists in the electronic program guide data; if the fifth program information exists, executing step 102O; if the fifth program information does not exist, go to step 102P.
The fifth program information is the same as the program information of the program to be replaced. Because it is considered that the multimedia device can only play one program at the same time, the play time period corresponding to the fifth program information does not overlap with the reserved time period which is not selected as the program to be replaced in the current reserved program and the target reserved program. For example, when the program to be replaced is the currently reserved program, the target reserved program that is not selected as the program to be replaced is selected.
102O, determining the program corresponding to the fifth program information as the first program.
And if the fifth program information is detected to exist in the electronic program guide data, the existence of the program capable of replacing the program to be replaced is indicated, the program corresponding to the fifth program information is determined as the first program, and a reservation modification prompt aiming at the program to be replaced is sent out based on the first program.
102P, sending out the prompt of the reservation failure of the current reserved program.
If it is detected that the fifth program information does not exist in the electronic program guide data, which indicates that a program capable of replacing the program to be replaced does not exist, a prompt of a current reserved program reservation failure is sent out to inform that the current reserved program cannot be reserved due to reservation conflict.
In order to find a replacement scheme as much as possible, the eighth detecting unit 129 is further configured to detect whether sixth program information exists in the electronic program guide data when it is detected that fifth program information does not exist, where the sixth program information is different from the program information of the program to be replaced, but a semantic similarity between the sixth program information and the program information of the program to be replaced is greater than a third similarity threshold, and a broadcast time period corresponding to the sixth program information does not overlap with a reserved time period of a reserved program that is not selected as the program to be replaced in the current reserved program and the target reserved program; and if the sixth program information exists, determining the program corresponding to the sixth program information as the first program.
The specific implementation procedure involved by the eighth detecting unit 129 to retrieve the sixth program information can be illustrated by the following steps 102R to 102T:
102R and eighth detecting means 129 detect whether or not the sixth program information exists in the electronic program guide data when detecting that the fifth program information does not exist; if yes, go to step 102T; if not, go to step 102U.
The eighth detecting unit 129 finds a program similar to the program to be replaced as an alternative when the fifth program information is not detected in the electronic program guide data.
The sixth program information is different from the program information of the program to be replaced, but the sixth program information is similar to the program information of the program to be replaced. The judgment standard that the sixth program information is similar to the program to be replaced is as follows: and the semantic similarity between the sixth program information and the program information of the program to be replaced is greater than a third similarity threshold. The method for calculating the semantic similarity between the sixth program information and the program information of the program to be replaced may be: and inputting the sixth program information and the program information of the program to be replaced into a preset similarity recognition model, and determining the similarity input by the similarity recognition model as the semantic similarity between the sixth program information and the program information of the program to be replaced. The reason why the program information having the semantic similarity larger than the third similarity threshold is selected as the sixth program information is that: the program corresponding to the program information with the semantic similarity larger than the third similarity threshold and the program to be replaced are the same type of program with the high probability, and the probability of meeting the reservation requirement of the user is high.
Since it is considered that the multimedia device can play only one program at the same time, the play time period corresponding to the sixth program information does not overlap with the reserved time period that is not selected as the program to be replaced in the current reserved program and the target reserved program.
102S and the eighth detecting unit 129 determine the program corresponding to the sixth program information as the first program.
102T, the eighth detecting unit 129 issues a prompt of a failure of the reservation of the currently reserved program.
The prompt module 13:
the prompting module 13 is mainly configured to issue a reservation modification prompt for a program to be replaced based on the detected first program when the detecting module 12 detects that the first program exists.
The specific method for the prompting module 13 to issue the reservation modification prompt for the program to be replaced based on the detected first program includes:
first, if there is one first program detected, the prompt module 13 issues a reservation modification prompt for the currently reserved program directly based on the detected first program.
The contents included in the reservation modification prompt are: the program information corresponding to the first program, the broadcasting time period and the program channel corresponding to the program information, and the program information corresponding to the program to be replaced and the broadcasting time period and the program channel corresponding to the program information. The content included by the reservation modification prompt provides a modification basis for the user to modify the target reserved program.
Second, the prompt module 13 is specifically configured to, if a plurality of detected first programs are available, rank the detected first programs based on the detected playing time period and/or definition of the first programs, and send out a reservation modification prompt for the currently reserved program based on a result obtained after the ranking.
The resolution represents the resolution of the first program. When the first program is sorted based on the play time period, the first program is sorted according to the sequence of the play start time corresponding to the play time period. When the first program is sorted based on the factor of definition, the first program is sorted according to the definition. When the first programs are sorted based on the two factors of the playing time period and the definition, the playing start time corresponding to the playing time period is earlier, and the first programs with higher definition are sorted earlier.
The content included in the reservation modification reminder is: the program information corresponding to the first program, the broadcasting time period and the program channel corresponding to the program information, and the program information corresponding to the program to be replaced and the broadcasting time period and the program channel corresponding to the program information. The content included by the reservation modification prompt provides a modification basis for the user to modify the target reserved program. After the prompt is sent out, the first program is displayed according to the sequence.
Further, as shown in fig. 2, the program reservation conflict processing apparatus further includes: an acquisition module 14 and a generation module 15. The obtaining module 14 is configured to obtain reservation modification information fed back by the reservation modification prompt after the prompting module 15 sends a reservation modification prompt for the program to be replaced based on the detected first program, where the reservation modification information carries program information, a reservation time period, and a program channel corresponding to a new reserved program, and the new reserved program is used to replace the program to be replaced and is determined based on the reservation modification prompt. And the generating module 15 is configured to generate a reservation record based on the program information, the reservation time period, and the program channel carried by the reservation modification information.
The specific implementation procedure involved in the obtaining module 14 and the generating module 15 can be illustrated by the following steps 103A to 103B:
103A, acquiring the appointment modification information fed back by aiming at the appointment modification prompt.
The reservation modification information carries program information, a reservation time slot and a program channel corresponding to a new reserved program, the new reserved program is used for replacing a program to be replaced, and the new reserved program is determined based on the reservation modification prompt.
103B, generating a reserved record based on the program information, the reserved time slot and the program channel carried by the reserved modification information.
The reserved record comprises program information, a reserved time slot and a program channel corresponding to the program information and corresponding application. After the reservation record is generated, the reservation record is stored in a database of the multimedia device. The multimedia device can trigger a corresponding tuning module to lock the frequency point to which the current reserved program belongs within the reserved time period according to the reserved record, and perform operation corresponding to the use, such as recording or playing, on the program information and the program channel corresponding to the current reserved program in the television programs in the frequency point.
Further, the prompting module 13 is further configured to, after sending a reservation modification prompt for the program to be replaced based on the detected first program, send a prompt that the reservation of the current reserved program fails based on the obtained modification rejection information fed back for the reservation modification prompt.
After the modification refusing information is obtained, the first program user carried in the reservation modification prompt refuses to use, so that a prompt of the current reserved program reservation failure is sent to prompt that the current reserved program cannot be reserved.
Further, if the detecting module 12 detects that there is no first program, which indicates that there is no program that can replace the program to be replaced, the prompting module 13 is further configured to issue a prompt for a failure of the current reservation of the program, so as to notify that the current reservation of the program cannot be reserved due to a conflict between reservations.
In the program reservation conflict processing apparatus provided in the embodiment of the present application, when it is determined that a target reserved program having a reservation conflict with a currently reserved program exists in existing reserved programs, a determination module included in the program reservation conflict processing apparatus determines the target reserved program or the currently reserved program as a program to be replaced. The detection module then detects whether there is a first program for replacing the program to be replaced based on the electronic program guide data. If the detection module detects that the first program exists, the prompt module sends out a reservation modification prompt aiming at the program to be replaced based on the detected first program. Therefore, when the scheduled program with the reservation conflict is determined to exist, the program to be replaced is selected from the scheduled programs with the reservation conflict instead of simply prompting the conflict, and the first program which has no conflict with the program to be replaced and can replace the program to be replaced is found out through the electronic program guide data. And sending out a reservation modification prompt aiming at the program to be replaced according to the first program, giving out a reservation optimization suggestion of the user in a reservation modification prompt mode, and assisting the user in modifying the reservation, thereby improving the reservation experience of the user.
Further, according to the foregoing method embodiment, another embodiment of the present application further provides a program reservation conflict processing method, as shown in fig. 3, the method includes:
201. and when determining that a target reserved program with a reservation conflict with the current reserved program exists in the existing reserved programs, determining the target reserved program or the current reserved program as a program to be replaced.
202. Detecting whether there is a first program for replacing a program to be replaced based on the electronic program guide data; if the first program exists, go to step 203; if the first program does not exist, go to step 204.
203. And sending out a reservation modification prompt aiming at the program to be replaced based on the detected first program, and ending the current flow.
204. And sending out a prompt of the reservation failure of the current reserved program.
According to the program reservation conflict processing method provided by the embodiment of the application, when the existing reserved program is determined to have the target reserved program with the reservation conflict with the current reserved program, the target reserved program or the current reserved program is determined to be the program to be replaced. Then, based on the electronic program guide data, it is detected whether there is a first program for replacing the program to be replaced. And if the first program is detected to exist, sending out a reservation modification prompt aiming at the program to be replaced based on the detected first program. Therefore, according to the scheme provided by the embodiment of the application, when the reserved program with the reservation conflict is determined to exist, the conflict is not simply prompted, the program to be replaced is selected from the reserved programs with the reservation conflict, the first program which has no conflict with the program to be replaced and can replace the program to be replaced is found out through the electronic program guide data. And a reservation modification prompt aiming at the program to be replaced is sent according to the first program, a reservation optimization suggestion of the user is given in a reservation modification prompt mode, the user is assisted to modify the reservation, and therefore reservation experience of the user is improved.
Optionally, when the reserved program is used for recording, the specific process of determining that a target reserved program having a reservation conflict with the currently reserved program exists in the existing reserved programs, which is referred to in step 201, includes steps 2011 to 2012:
2011. detecting whether an idle tuning module exists in a reserved time period of the current reserved program; if there is no idle tuning module, go to step 2012;
2012. and determining all reserved programs occupying the tuning module in the reserved time period of the current reserved program as the target reserved program.
Optionally, after detecting that there is no idle tuning module in step 2011, before determining all reserved programs occupying tuning modules in the reserved time period of the currently reserved program as the target reserved program in step 2012, the method further includes the following step 2013.
2013. Judging whether the frequency points related to the occupied tuning module have the frequency point to which the current reserved program belongs; and if the reserved programs do not exist, determining all the reserved programs occupying the tuning module in the reserved time period of the current reserved program as the target reserved program.
Optionally, if the frequency point to which the current reserved program belongs is detected in the frequency points related to the occupied tuning module in step 2013, detecting whether the number of reserved programs existing in the frequency point to which the current reserved program belongs reaches a first target number; if yes, determining all reserved programs occupying a tuning module in the reserved time period of the current reserved program as the target reserved program; if not, performing reservation processing on the current reserved program according to the frequency point to which the current reserved program belongs.
Optionally, when the program to be replaced is the currently reserved program, the step 102 of detecting whether a first program for replacing the program to be replaced exists based on the electronic program guide data specifically includes the following steps: setting the determined ordering of the target reserved programs; according to the target reservation program determined by the sequencing traversal, detecting whether first program information exists in electronic program guide data corresponding to the frequency point to which the currently traversed target reservation program belongs; if the program information exists, determining the first program information as target program information, and determining a program corresponding to the target program information as the first program, wherein the electronic program guide data comprises the program information related to the frequency point and a broadcasting time period corresponding to the program information, and the first program information is the same as the program information of the currently reserved program; and if the first program information does not exist in the electronic program guide data corresponding to the frequency point to which the currently traversed target reserved program belongs, continuously traversing and sequencing the target reserved program positioned at the next position.
Optionally, the method further includes: when first program information is not detected in traversing all target reservation programs in the sequence, detecting whether second program information exists in electronic program guide data corresponding to a frequency point to which the currently traversed target reservation program belongs according to the target reservation programs determined by the sequence traversal; if the program information exists, determining the second program information as target program information, and determining a program corresponding to the target program information as the first program, wherein the second program information is different from the program information of the currently reserved program, but the semantic similarity between the second program information and the program information of the currently reserved program is greater than a first similarity threshold; and if the second program information does not exist in the electronic program guide data corresponding to the frequency point of the currently traversed target reserved program, continuing to traverse and sort the target reserved program positioned at the next position.
Optionally, the method further includes: after determining target program information and before determining a program corresponding to the target program information as the first program, judging whether the number of reserved programs in the frequency point to which the target program information belongs reaches a second target number in a broadcasting time period corresponding to the target program information; and if so, rejecting the target program information.
Optionally, when the program to be replaced is the target reserved program, the step 102 of detecting whether a specific execution process of a first program for replacing the program to be replaced exists based on the electronic program guide data includes the following steps: setting the sequence of the determined target reserved programs; traversing the determined target reserved program according to the sorting; detecting whether third program information exists in electronic program guide data corresponding to the frequency point to which the current reserved program belongs; if the program information exists, determining the third program information as target program information, and determining a program corresponding to the third program information as the first program, wherein the electronic program guide data comprises the program information related to the frequency point and a broadcasting time period corresponding to the program information, and the third program information is the same as the program information of the currently traversed target reserved program; and if the third program information does not exist in the electronic program guide data corresponding to the frequency point of the current reserved program, continuously traversing and sequencing the target reserved program positioned at the next position.
Optionally, the method further includes: when third program information is not detected in traversing all the ordered target reserved programs, detecting whether fourth program information exists in electronic program guide data corresponding to the frequency point to which the current reserved program belongs according to the ordered target reserved programs; if yes, determining the fourth program information as target program information, and determining a program corresponding to the target program information as the first program, wherein the fourth program information is different from the currently traversed program information of the target program reservation, but semantic similarity between the fourth program information and the currently traversed program information of the target program reservation is greater than a second similarity threshold; and if detecting that the fourth program information does not exist in the electronic program guide data corresponding to the frequency point to which the current reserved program belongs, continuously traversing and sequencing the target reserved program positioned at the next position.
Optionally, the method further includes: after detecting whether a first program for replacing the program to be replaced exists based on electronic program guide data, judging whether corresponding first programs exist in target reserved programs belonging to the same frequency point or not before sending out a reservation modification prompt aiming at the program to be replaced based on the detected first program; if yes, sending out a reservation modification prompt aiming at the program to be replaced based on the detected first program; otherwise, sending out the prompt of the reservation failure of the current reserved program.
Optionally, the specific process of setting the determined ordering of the target reserved program includes the following steps: dividing target reservation programs belonging to the same frequency point into a group; for each group, judging whether the number of the target reserved programs in the group reaches a corresponding third target number or not; if so, eliminating the target reserved programs in the group; and sequencing the target reserved programs which are not eliminated.
Optionally, when the reserved program is used for playing, a specific process of determining that a target reserved program having a reservation conflict with the currently reserved program exists in the existing reserved programs, which is related to in step 201, includes: judging whether the reserved time periods of the existing reserved program and the current reserved program are overlapped or not; and if so, determining the reserved program with the reserved time period overlapped with the current reserved program as the target reserved program.
Optionally, the step 102 of detecting whether there is a first program for replacing the program to be replaced based on the electronic program guide data specifically includes the following steps: acquiring electronic program guide data corresponding to at least one target frequency point, wherein the electronic program guide data comprises program information related to the at least one target frequency point and a broadcasting time period corresponding to the program information; detecting whether fifth program information exists in the electronic program guide data, wherein the fifth program information is the same as the program information of the program to be replaced, and the broadcasting time period corresponding to the fifth program information is not overlapped with the reserved time period of the reserved program which is not selected as the program to be replaced in the current reserved program and the target reserved program; and if the fifth program information exists, determining a program corresponding to the fifth program information as the first program.
Optionally, the method further includes: when fifth program information is detected to be absent, detecting whether sixth program information exists in the electronic program guide data, wherein the sixth program information is different from the program information of the program to be replaced, but the semantic similarity between the sixth program information and the program information of the program to be replaced is greater than a third similarity threshold, and the broadcasting time period corresponding to the sixth program information is not overlapped with the reserved time period of a reserved program which is not selected as the program to be replaced in the current reserved program and the target reserved program; and if the sixth program information exists, determining the program corresponding to the sixth program information as the first program.
Optionally, the specific implementation process of the step 203 of sending out the reservation modification prompt for the program to be replaced based on the detected first program includes the following steps: if a plurality of first programs are detected, sequencing the detected first programs based on the playing time period and/or definition of the detected first programs, and sending out a reservation modification prompt aiming at the current reserved program based on the result obtained after sequencing.
Optionally, after the step 103 sends out the reservation modification prompt for the program to be replaced based on the detected first program, the method further includes the following steps: acquiring reservation modification information fed back by aiming at the reservation modification prompt, wherein the reservation modification information carries program information, a reservation time period and a program channel corresponding to a new reservation program, the new reservation program is used for replacing the program to be replaced, and the new reservation program is determined based on the reservation modification prompt; and generating a reservation record based on the program information, the reservation time period and the program channel carried by the reservation modification information.
Optionally, after the step 103 sends out the reservation modification prompt for the program to be replaced based on the detected first program, the method further includes the following steps: and sending out a prompt of the reservation failure of the current reserved program based on the acquired modification rejection information fed back by aiming at the reservation modification prompt.
In the method for processing program reservation conflict provided in this embodiment of the present application, for details of each step, reference may be made to corresponding details of the above program reservation conflict processing apparatus embodiment, which are not described herein again.
Further, according to the foregoing embodiment, another embodiment of the present application further provides a computer-readable storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute the foregoing program reservation conflict processing method.
Further, according to the above embodiment, another embodiment of the present application also provides an electronic device, including: a memory for storing a program; and the processor is coupled to the memory and used for running the program to execute the program reservation conflict processing method.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are used to distinguish the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, this application is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present application as described herein, and any descriptions of specific languages are provided above to disclose the best mode of use of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the methods, apparatus and frameworks for operation of the deep neural network model according to embodiments of the present application. The present application may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present application may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website, or provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.