EPG template file comparison method, device, electronic device and storage medium

By constructing file comparison tree diagrams and key information comparisons, the consistency problem in EPG template file distribution is solved, fast and accurate comparison and fault location are achieved, and the quality of EPG services is improved.

CN114357965BActive Publication Date: 2025-08-19CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111650837.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-08-19
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the prior art, the distribution of EPG template files lacks consistency comparison methods, resulting in the problems of file missing, redundancy and inconsistent size. Manual comparison is inefficient and costly, making it difficult to accurately locate fault points.

Method used

Build a file comparison tree diagram, compare the template files according to the superior and subordinate relationship of the EPG server, obtain key information and compare, including absolute path name and file size, query and comparison through multi-threading methods to quickly locate abnormal files.

Benefits of technology

Fast and accurate EPG template file comparison is achieved, which avoids the problems of missing, redundancy and inconsistency in size, improves the comparison efficiency and accuracy, and reduces manpower and material investment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357965B_ABST
    Figure CN114357965B_ABST
Patent Text Reader

Abstract

The present application provides an EPG template file comparison method, device, electronic device, and storage medium. The method includes: constructing a file comparison tree diagram based on multiple electronic program menu (EPG) servers; obtaining key information corresponding to different EPG template files in each EPG server after EPG template file synchronization processing; and comparing the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server based on the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram to obtain comparison information. The technical solution of the embodiment of the present application avoids problems such as missing, redundant, and inconsistent EPG template files by constructing a file comparison tree diagram and comparing the EPG template files in the upper and lower EPG servers, and can accurately locate abnormal files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for comparing EPG template files. Background Art

[0002] The Electronic Program Guide (EPG) is a critical technology in video services. Search, on-demand, live streaming, and menu navigation all require the EPG. Ensuring high-quality EPG service is crucial for enhancing user experience. EPG clusters supporting EPG services can be deployed in a variety of structures, including three-tier, two-tier, and flat deployments.

[0003] In EPG services, EPG template files are an important medium for providing video services, such as the use of template files for standard definition, high definition, ultra-high definition, and industry applications. With the rapid development of short videos, the update and iteration cycle of video content is getting shorter and shorter, and EPG template updates are also becoming more frequent. Currently, the application of EPG templates is mostly based on a distribution mechanism, which lacks a file consistency comparison method. After the file is distributed, it cannot automatically verify whether the distribution is consistent. This can lead to problems such as missing, redundant, and inconsistent EPG template files, affecting the user's usage experience. Commonly used EPG template comparison methods are mostly manual operations, and manual comparison methods are difficult to accurately locate EPG servers and EPG template files with synchronization errors. At the same time, due to the large number of EPG servers in an EPG cluster, more manpower and material resources can only be invested, resulting in high comparison costs and low efficiency. Therefore, how to quickly and accurately compare EPG template files and accurately locate template file failure points is a technical problem that needs to be solved urgently. Summary of the Invention

[0004] To solve the above technical problems, the embodiments of the present application provide an EPG template file comparison method and device, and an electronic device, which can quickly compare template files in upper and lower level EPG servers.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a method for comparing EPG template files is provided, comprising: constructing a file comparison tree diagram based on multiple electronic program menu (EPG) servers, the file comparison tree diagram including, from upper to lower levels according to the EPG template file synchronization level, a reference EPG server, a parent node EPG server, and a child node EPG server; obtaining key information corresponding to different EPG template files in each EPG server after EPG template file synchronization processing, the key information including the absolute path name and file size corresponding to the EPG template file; and comparing the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server based on the upper-lower relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram to obtain comparison information.

[0007] In one embodiment, before respectively obtaining key information corresponding to different EPG template files in each EPG server after the EPG template files have been synchronized, the method further includes:

[0008] The reference EPG server, the parent node EPG server and the child node EPG server are controlled to perform EPG template file synchronization processing respectively according to the upper and lower levels order of the file comparison tree diagram.

[0009] In one embodiment, the step of respectively obtaining key information corresponding to different EPG template files in each EPG server after the EPG template files have been synchronized includes:

[0010] Encrypt the absolute path name of each EPG template file to obtain a character string of a corresponding preset length;

[0011] The character string is concatenated with the file size of the corresponding EPG template file to obtain key information of the corresponding EPG template file.

[0012] In one embodiment, according to the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, key information of each EPG template file in the upper-level EPG server is compared with key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information, including:

[0013] Comparing the key information of each EPG template file in the reference EPG server with the key information of the corresponding EPG template file in the parent node EPG server;

[0014] If the key information of the template in the target parent node EPG server is different from the key information of the corresponding EPG template file in the reference EPG server, the key information of each EPG template file in the reference EPG server is compared with the key information of the corresponding EPG template file in the subordinate child node EPG server of the target parent node EPG server.

[0015] In one embodiment, according to the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, key information of each EPG template file in the upper-level EPG server is compared with key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information, including:

[0016] Comparing key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, obtaining a first EPG server, wherein the first EPG server is a lower-level EPG server whose first EPG template file has a file size different from that of the corresponding EPG template file in the upper-level EPG server, and the first EPG template file is an EPG template file in the first EPG server;

[0017] Output the comparison information of the first EPG server; the comparison information of the first EPG server includes key information of the first EPG template file in the upper-level EPG server of the first EPG server, key information of the first EPG template file in the first EPG server, an identifier of the first EPG server and a first comparison result.

[0018] In one embodiment, according to the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, key information of each EPG template file in the upper-level EPG server is compared with key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information, including:

[0019] Comparing key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, obtaining a second EPG server, where the second EPG server is a lower-level EPG server that has key information of the second EPG template file, the second EPG template file is an EPG template file in the second EPG server, and the key information of the second EPG template file does not exist in the upper-level EPG server of the second EPG server;

[0020] Output the comparison information of the second EPG server, the comparison information of the second EPG server including the key information of the second EPG template file in the upper-level EPG server of the second EPG server, the key information of the second EPG template file in the second EPG server, the identifier of the second EPG server and the second comparison result, the key information of the second EPG template file in the upper-level EPG server of the second EPG server is empty.

[0021] In one embodiment, according to the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, key information of each EPG template file in the upper-level EPG server is compared with key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information, including:

[0022] Comparing key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, obtaining a third EPG server, wherein the third EPG server is a lower-level EPG server in which key information of the third EPG template file does not exist, and the third EPG template file is an EPG template file in the upper-level EPG server of the third EPG server;

[0023] Output the comparison information of the third EPG server; the comparison information of the third EPG server includes key information of the third EPG template file in the upper-level EPG server of the third EPG server, key information of the third EPG template file in the third EPG server, an identifier of the third EPG server and a third comparison result, and the key information of the third EPG template file in the third EPG server is empty.

[0024] According to one aspect of an embodiment of the present application, a device for comparing EPG template files is provided, comprising: a file comparison tree diagram construction module, configured to construct a file comparison tree diagram based on multiple electronic program menu (EPG) servers, wherein the file comparison tree diagram includes, from upper to lower levels according to the EPG template file synchronization level, a reference EPG server, a parent node EPG server, and a child node EPG server; a key information acquisition module, configured to respectively acquire key information corresponding to different EPG template files in each EPG server after EPG template file synchronization processing, wherein the key information includes the absolute path name and file size corresponding to the EPG template file; and a comparison module, configured to compare, based on the upper-lower-lower relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information.

[0025] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising one or more processors; a storage device for storing one or more computer programs, wherein when the one or more computer programs are executed by the one or more processors, the electronic device implements the EPG template file comparison method as described above.

[0026] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the EPG template file comparison method as described above.

[0027] According to one aspect of an embodiment of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the EPG template file comparison method provided in the various optional embodiments described above.

[0028] In the technical solution provided in the embodiments of the present application, by constructing a file comparison tree diagram and using the superior-subordinate relationship of the EPG server in the file comparison tree diagram to compare the EPG template file, the synchronized EPG template file can be verified to avoid the occurrence of problems such as missing, redundancy, and size inconsistency of EPG template files, and the abnormal files can be accurately located.

[0029] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings are incorporated into and constitute a part of the specification, illustrating embodiments consistent with the present application and, together with the specification, serving to explain the principles of the present application. It is obvious that the drawings described below are merely some embodiments of the present application, and a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort. In the drawings:

[0031] Figure 1 It is a schematic diagram of an implementation environment involved in this application;

[0032] Figure 2 is a flowchart of a method for comparing EPG template files shown in an exemplary embodiment of the present application;

[0033] Figure 3 This is a file comparison tree diagram structure diagram shown in an exemplary embodiment of the present application;

[0034] Figure 4 is a flowchart of synchronous distribution of EPG template files shown in an exemplary embodiment of the present application;

[0035] Figure 5 yes Figure 2 A flow chart of step S230 in the illustrated embodiment in an exemplary embodiment;

[0036] Figure 6 yes Figure 2 A flow chart of step S250 in the illustrated embodiment in an exemplary embodiment;

[0037] Figure 7 yes Figure 2 A flowchart of step S250 in the illustrated embodiment in another exemplary embodiment;

[0038] Figure 8 yes Figure 2 A flowchart of step S250 in the illustrated embodiment in another exemplary embodiment;

[0039] Figure 9 is a structural diagram of an EPG template file comparison device shown in another exemplary embodiment of the present application;

[0040] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0041] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0042] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0043] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0044] It should also be noted that the term "plurality" used in this application refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0045] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to achieve optimal results.

[0046] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0047] The EPG template file comparison method and device, electronic device, and storage medium proposed in the embodiments of the present application involve artificial intelligence technology and machine learning technology, and these embodiments will be described in detail below.

[0048] Please refer to Figure 1 , Figure 1 This is a schematic diagram of an implementation environment involved in the present application, which includes a terminal 100 and a server 200. The terminal 100 and the server 200 communicate with each other via a wired or wireless network. The terminal 100 is used to collect information from multiple EPG servers, including the architecture between the EPG servers, the template files in each server, and so on. The EPG servers have a three-tier architecture. At the same time, the terminal 100 also inputs the collected information from the multiple EPG servers into the server 200. The server 200 processes the information from the multiple EPG servers and constructs a file comparison tree diagram for the multiple EPG servers. After the template files in each EPG server are synchronized, the key information of each template file in the upper-level EPG server is compared with the key information of the corresponding template file in the lower-level EPG server to obtain a comparison result. The comparison result can be used to determine the synchronization status of the template files and locate the location of the misaligned EPG template files. Of course, after obtaining the comparison result, the recommended results of the middleware cluster can be visualized through the display module provided by the terminal 100.

[0049] Exemplarily, after collecting information of multiple EPG servers, the terminal 100 sends the information of multiple EPG servers to the server side 200, and the server side 200 compares the EPG template files according to the information of multiple EPG servers, such as constructing a file comparison tree diagram of multiple EPG servers according to a three-tier architecture, and the file comparison tree diagram includes a benchmark EPG server, a parent node EPG server, and a child node EPG server from the upper level to the lower level; obtains the key information corresponding to different template files in each EPG server after the EPG template file synchronization processing, and the key information includes the absolute path name and file size corresponding to the template file; according to the upper and lower relationships among the benchmark EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, the key information of each template file in the upper EPG server is compared with the key information of the corresponding template file in the lower EPG server to obtain a comparison result.

[0050] The terminal 100 can be any electronic device capable of data visualization, such as a smartphone, tablet, laptop, or computer, and is not limited here. The server 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. The communication server 200 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, and is not limited here.

[0051] Figure 2 FIG. 1 is a flow chart showing a method for comparing EPG template files according to an exemplary embodiment. Figure 2 As shown, in an exemplary embodiment, the method is applied to an initiating terminal, and the method may include steps S210 to S250, which are described in detail as follows:

[0052] Step S210: constructing a file comparison tree diagram according to multiple electronic program guide (EPG) servers.

[0053] In this embodiment, a file comparison tree diagram can be constructed by multiple EPG servers according to the order of synchronization levels of EPG templates. The structure of the file comparison tree diagram can be referred to as Figure 3 ,like Figure 3 As shown, the file comparison tree diagram includes, from upper level to lower level, a reference EPG server, a parent node EPG server, and a child node EPG server.

[0054] For EPG (electronic program menu) clusters with different structures, benchmark servers can be built in different ways. For example, for an EPG cluster with a three-tier architecture, from top to bottom, they are: provincial center, regional center and edge node. The EPG servers located in the regional and edge nodes give priority to providing services to users, while the EPG servers located in the provincial center nodes focus on implementing cluster management, data synchronization, authentication scheduling, disaster recovery and other functions.

[0055] When constructing a file comparison tree for a three-tier EPG cluster, you can refer to the existing synchronization order in the three-tier architecture, and arbitrarily designate an EPG server from the provincial central servers that first synchronize the EPG template file in the three-tier architecture as the benchmark EPG server. The benchmark EPG server serves as the root node of the tree diagram, and the remaining provincial central EPG servers are hung under the benchmark EPG server as the parent node EPG server in the file comparison tree diagram. At the same time, when constructing the file comparison tree, the synchronization level of the provincial central EPG server that serves as the parent node EPG server is set to be lower than that of the provincial central server that serves as the benchmark EPG server, that is, after the benchmark EPG server is synchronized, the parent node EPG server synchronizes the template file again, and then the central server and the edge node server are hung under the corresponding parent node EPG server (that is, the provincial central EPG server) as the child node EPG server. Similarly, the synchronization level of the child node EPG server is set to be lower than that of the parent node EPG server.

[0056] Of course, when the EPG cluster structure is not a three-tier architecture, but a two-tier, flat... or other architecture, there is no specific synchronization order or no similar multi-tier structure. In this case, any EPG server can be directly set as the benchmark server, and some EPG servers can be selected from the remaining EPG servers as parent node EPG servers. The remaining EPG servers can then be used as child node EPG servers, and different child node EPG servers can be set to be hung under different parent node EPG servers to construct a file comparison tree. Regardless of the method used to obtain the file comparison tree, the synchronization order of EPG servers at each level in the file comparison tree must be set, that is: when the file comparison tree diagram is performing EPG template file distribution synchronization, the benchmark EPG server will first synchronize the EPG template file. After the synchronization of the benchmark EPG server is completed, the parent node EPG server will synchronize the EPG template file. And after the synchronization of the parent node EPG server is completed, the child node EPG server hanging under it will synchronize the EPG template file.

[0057] In this embodiment, after constructing the file comparison tree diagram, a comparison relationship between the upper and lower levels in the file comparison tree diagram can be established based on the EPG template file distribution synchronization process. Since the parent node EPG server needs to be synchronized and updated after the synchronization of the benchmark EPG server is completed, a comparison relationship can be established between the benchmark EPG server and the parent node EPG server to determine whether the synchronization update of the EPG template file in the parent node EPG server is correct; similarly, since the child node EPG server needs to be synchronized and updated after the synchronization of the parent node EPG server is completed, a comparison relationship can be established between the parent node EPG server and the child node EPG server to determine whether the synchronization update of the EPG template file in the parent node EPG server is correct.

[0058] For example, if in a certain file comparison tree diagram, the benchmark EPG server has 15 parent node EPG servers under it, then a hierarchical mapping relationship is constructed between the benchmark EPG server and each parent node EPG server, and the EPG template files are compared between the benchmark EPG server and the parent node EPG server to see if they are consistent; if each parent node EPG server has about 20 child node EPG servers under it, then a hierarchical mapping relationship is constructed between all parent node EPG servers and each child node EPG server under them, and the EPG template files are compared between the child node EPG server and the parent node EPG server to see if they are consistent.

[0059] In this embodiment, before comparing the EPG template files, it is necessary to set up the comparison environment: ensure the security of the jump server environment, such as reasonably formulating ACL (access control list) access policies; closing high-risk ports and unnecessary services; only allowing login through the 4A bastion host; connecting to the log audit system, configuring log traces, and enabling auditing; managing the isoc (Internet Society) system, and regularly performing baseline compliance checks and vulnerability scans, etc.

[0060] Step S230: respectively obtaining key information corresponding to different EPG template files in each EPG server after the EPG template files have been synchronously processed.

[0061] In this embodiment, each EPG server will perform synchronous distribution of EPG template files. In the three-tier architecture of the EPG server, the EPG template file synchronous distribution process can be referred to Figure 4 , SP (service provider) sends EPG template file through C2 interface, management node parses EPG template file and notifies message middleware to send EPG template file in XML format to audit server for audit, after audit server passes the audit, middleware will notify provincial center EPG server to synchronize EPG template file, after provincial center EPG server completes synchronization, middleware will notify regional EPG server to synchronize EPG template file, similarly, after regional EPG server completes synchronization, edge EPG server will synchronize EPG template file, this synchronization method can be analogized in file comparison tree diagram, it can be set that benchmark EPG server will synchronize EPG template file first, after benchmark EPG server completes synchronization, parent node EPG server will synchronize EPG template file, and after parent node EPG server completes synchronization, its child node EPG server will synchronize EPG template file.

[0062] In this embodiment, after the EPG template files are synchronously processed, the key information corresponding to the different EPG template files in each EPG server can be obtained (the different template files in each EPG server can be accessed through ACL, and finally the key information of the corresponding EPG template files can be obtained). Due to the tree structure of the file comparison tree diagram, the key information can be queried in a thread manner. If there are multiple different EPG template files in the reference EPG server, the key information corresponding to each EPG template file in the reference EPG server is obtained. The key information includes the absolute path name and file size of the corresponding EPG file. After obtaining the key information corresponding to the different template files in each EPG server, the key information is stored separately according to the level of the EPG server.

[0063] For example, key information can be transmitted back to the jump server and stored locally on the jump server. The key information of different EPG template files obtained from the base EPG server can be stored in the format of "EPG template file name.base.log". The key information of different EPG template files obtained from the lower-level EPG servers, namely the parent node EPG server and the child node EPG server, can be stored in the format of "EPG template file name.parent node ip.log" and "EPG template file name.child node ip.log" respectively.

[0064] Step S250: According to the hierarchical relationship among the reference EPG server, the parent node EPG server and the child node EPG server in the file comparison tree diagram, the key information of each EPG template file in the upper-level EPG server is compared with the key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information.

[0065] In this step, the key information of the corresponding EPG template files in EPG servers at different levels is compared according to the category of the EPG template files. The comparison action can also be performed by the jump server, such as first traversing the key information of all EPG template files in the base EPG server, then traversing the key information of all EPG template files in the parent node EPG server, and finally comparing the "EPG template file name.base.log" and "EPG template file name.parent node ip.log" under the same EPG template file. Similarly, the key information of all EPG template files in the parent node EPG server can be compared with the key information of all EPG template files in the child node EPG server, and the "EPG template file name.parent node ip.log" and "EPG template file name.child node ip.log" under the same EPG template file are compared and finally the comparison information is output.

[0066] For example, when the benchmark EPG server compares the EPG template file with the parent node EPG server, if the key information of the EPG template file a in the parent node EPG server A is different from the key information of the EPG template file a in the benchmark EPG server, specifically the file size in the key information is different, then the parent node EPG server A can be marked, and it is considered that there may be a synchronization error in the EPG template file, and the comparison information is output: the IP (Internet Protocol address) of the parent node EPG server A, the comparison result (the comparison result in this example is the different file size, in other examples the comparison result may be the existence of redundant files, missing files, etc.), the key information of the EPG template file a in the parent node EPG server A, and the file size of the EPG template file a in the benchmark EPG server.

[0067] Of course, the above is just an example. In some cases, there may be a situation where the key information of a certain EPG template file exists in the upper-level EPG server, but the EPG template file does not exist in a lower-level EPG server. In this case, it can be considered that the EPG template file is missing in the lower-level EPG server, and the comparison information is also output. The relevant information needs to include the comparison result, the server address where the error occurred, the key information of the EPG template file where the error occurred, etc., to facilitate the subsequent positioning of the dislocated server and the tracing of the dislocated EPG template file; of course, there is also a situation where the key information of a certain EPG template file does not exist in the upper-level EPG server, but the EPG template file exists in a lower-level EPG server. In this case, it can be considered that the EPG template file is redundant in the lower-level EPG server, and the comparison information is also output. The above is an example of some comparison results, and is not limited to the above comparison results. No specific restrictions are made here.

[0068] In some cases, it is necessary to ensure that the EPG template file in the benchmark EPG server is absolutely correct to prevent the synchronization error of the template file in the benchmark EPG server from causing synchronization and comparison errors in all subsequent EPG servers. At this time, an audit server can be set up. When the benchmark EPG server synchronizes the EPG template file sent down, the EPG template file is also sent down to the audit server. Before comparing the EPG template files, the EPG template files in the audit server and the benchmark EPG server are compared first. When the two are the same, the information in the benchmark EPG server can be considered reliable, and the template files in the subsequent level EPG servers can be compared. If the EPG template files in the audit server and the benchmark EPG server are inconsistent, the EPG template file is re-sent to the benchmark EPG server until the EPG template files in the audit server and the benchmark EPG server are the same.

[0069] In this embodiment, by setting up a file comparison tree with a three-level structure and a synchronization order between different levels, the lower-level EPG servers are linked to the upper-level EPG server so that the EPG servers in the lower levels can be synchronized according to the upper-level EPG servers, thereby avoiding the large resource demand and slow synchronization processing speed caused by a large number of EPG servers in the existing network receiving template files for synchronization at the same time. At the same time, the comparison exists between the upper and lower levels, and the three-level structure does not require all EPG servers to be compared two by two, which can reduce the comparison amount to a certain extent.

[0070] After the comparison is completed, the comparison information is summarized, the EPG server and EPG template file name with synchronization anomalies are recorded, and converted into CSV format as the final output document. The mail server interface can also be called to send warning messages to the administrator in real time.

[0071] Of course, in actual applications, each EPG server will synchronize a new EPG template file on the premise that an EPG template file already exists. At this time, in order to reduce data calculations and the existing EPG template files have been compared before, only the key information corresponding to the updated EPG template files in each EPG server can be obtained for comparison, and the updated EPG template files can be verified. Of course, the frequency of EPG template file changes, the number of changed files and other factors can be comprehensively evaluated to determine the interval to execute the EPG template file comparison task, such as logging into the jump server to deploy the comparison script, starting the scheduled task, and configuring a comparison every 30 minutes. After the comparison script is executed, if the EPG template file synchronization of the EPG server is abnormal, the comparison information will be received, which is convenient for engineering personnel to trace the source and repair.

[0072] In this embodiment, a method for comparing EPG template files in upper and lower level EPG servers is proposed by constructing a file comparison tree graph. First, the key information of the EPG template file is queried in a multi-threaded manner through the tree graph structure of the file comparison tree graph, which greatly shortens the information collection cycle. Second, based on the file comparison tree graph logic, the EPG template files in the upper and lower level EPG servers can be compared concurrently to see if they are consistent, effectively improving the comparison efficiency and quickly discovering EPG servers with synchronization abnormalities. It can also accurately locate abnormal EPG template files, avoid the occurrence of problems such as missing, redundant, and inconsistent sizes of EPG template files, improve the synchronization accuracy of EPG template files, and enhance customer experience. At the same time, the comparison method is not only applicable to file comparison within a video / content distribution system (CDN), but is also applicable to file comparison in distributed small file systems, such as: Hadoop Distributed File System (HDFS), order systems, log systems and other fields, and has strong versatility and a wide range of promotion.

[0073] Figure 5 yes Figure 2The flowchart of step S230 in the embodiment shown is in an exemplary embodiment. Figure 5 As shown, in an exemplary embodiment, the process of respectively obtaining key information corresponding to different EPG template files in each EPG server after EPG template file synchronization processing may include steps S510 to S530, which are described in detail as follows:

[0074] Step S510: Encrypt the absolute path name of each EPG template file to obtain a character string of a preset length.

[0075] In this implementation, after obtaining the absolute path name of a certain EPG template file, in order to reduce resource consumption and improve comparison efficiency, the absolute path name can be encrypted to obtain a character string of a certain length (using the same method and determining the same character string to avoid the difference in character strings caused by different encryption affecting the comparison of subsequent relationship information). For example, the absolute path name can be encrypted using MD5 (message digest algorithm) to obtain a fixed character string with a length of 32 bits. Of course, other encryption methods and character strings of other lengths can also be used at other times, and no specific restrictions are made here.

[0076] After obtaining the string corresponding to the absolute path name, the absolute path and the corresponding string can be saved in a key-value pair format (based on the keyword value) to facilitate subsequent comparison and adjustment.

[0077] Step S530: concatenate the character string with the file size of the corresponding EPG template file to obtain key information of the corresponding EPG template file.

[0078] In this embodiment, after obtaining the character string, the character string is spliced with the file size information of the corresponding EPG template file, which is the key information of the corresponding EPG template file. The file size is also a string of characters, so the key information can be a string of characters, which is convenient for subsequent comparison of the EPG template file through the key information.

[0079] In this embodiment, the absolute path name is encrypted to obtain a character string of a preset length, so that there is no need to traverse individual characters and string lengths during comparison, which can further reduce the complexity of the algorithm and greatly improve the comparison efficiency of key information.

[0080] Figure 6 yes Figure 2 The flowchart of step S250 in the embodiment shown is in an exemplary embodiment. Figure 6As shown, in an exemplary embodiment, based on the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, the key information of each EPG template file in the upper-level EPG server is compared with the key information of the corresponding EPG template file in the lower-level EPG server. The process of obtaining the comparison information may include steps S610 to S630, which are described in detail as follows:

[0081] Step S610: comparing the key information of each EPG template file in the reference EPG server with the key information of the corresponding EPG template file in the parent node EPG server.

[0082] In this embodiment, the key information of each EPG template file in the reference EPG server is preferentially compared with the key information of the corresponding EPG template file in the parent node EPG server.

[0083] Step S630: If the key information of the EPG template file in the target parent node EPG server is different from the key information of the corresponding EPG template file in the reference EPG server, the key information of each EPG template file in the reference EPG server is compared with the key information of the corresponding EPG template file in the subordinate child node EPG server of the target parent node EPG server.

[0084] If the key information of the EPG template file in a parent node EPG server is inconsistent with the key information of the corresponding EPG template file in the benchmark EPG server, the parent node EPG server is assumed to be abnormal, and a comparison message is output. The key information of each EPG template file in the child node EPG server under the parent node EPG server can be directly compared with the key information of the EPG template file in the benchmark EPG server.

[0085] In this embodiment, when comparing key messages of EPG template files in upper and lower level EPG servers, when an exception occurs in the upper level parent node EPG server, the child node EPG server hanging under the upper level parent node EPG server with the exception can be directly compared with the reference server, so as to avoid the situation where the upper level parent node EPG server with the exception is still compared with the child node EPG server hanging under it, resulting in an erroneous comparison result.

[0086] Figure 7 yes Figure 2 The flowchart of step S250 in the embodiment shown in FIG. Figure 7As shown, in an exemplary embodiment, based on the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, the key information of each EPG template file in the upper-level EPG server is compared with the key information of the corresponding EPG template file in the lower-level EPG server. The process of obtaining the comparison information may include steps S710 to S730, which are described in detail as follows:

[0087] Step S710: Compare the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server to obtain a first EPG server.

[0088] In this embodiment, the first EPG server is a lower-level EPG server in which the key information of the first EPG template file is different in size from the key information of the corresponding EPG template file in the upper-level EPG server, and the first EPG template file is an EPG template file in the first EPG server.

[0089] Specifically, when the upper-level EPG server is compared with the lower-level EPG server (such as comparing the benchmark EPG server with its parent node EPG server, comparing the parent node EPG server with its child node EPG server, and comparing the benchmark EPG server with the child node EPG server), if the file size in the key information of a certain EPG template file in a certain lower-level server is inconsistent with the file size in the key information of the corresponding EPG template file in the upper-level server, the lower-level server is considered to be the first EPG server, and the first EPG server considers that a synchronization error has occurred.

[0090] Step S730: Output the comparison information of the first EPG server.

[0091] In this embodiment, the comparison information of the first EPG server includes key information of the first EPG template file in the upper-level EPG server of the first EPG server (including the file size and absolute path name of the first EPG template file in the upper-level EPG server. Since the comparison result is a different file size, in order to reduce data storage, only the file size of the first EPG template file in the upper-level EPG server can be output), key information of the first EPG template file in the first EPG server (the key information includes the file size and absolute path name of the first EPG template file in the first EPG server. The file size can be displayed together with the file size of the first EPG template file in the upper-level EPG server as traceability and reproduction data. The absolute path name can locate the first EPG template file where the error occurs and provide reference data for subsequent maintenance), the identifier of the first EPG server (used to locate the EPG server where the error occurs and provide reference data for subsequent maintenance) and the first comparison result (different file sizes).

[0092] As shown in Table 1, the comparison information is displayed after comparison for a first EPG server:

[0093] IP1 Check Result1 File Size1 Sup File Size1 File Name1 183.57.58.135 Different file sizes 325055 333481 / home / XX

[0094] Table 1

[0095] Among them, IP1 is the identifier of the first EPG server, Check Result1 is the first comparison result, File Size1 is the file size of the first EPG template file in the first EPG server, Sup File Size1 is the first EPG template file size and absolute path name of the first EPG template file in the superior EPG server, and File Name1 is the absolute address name in the first EPG template file in the first EPG server.

[0096] In this embodiment, by comparing key information between upper and lower level servers, the EPG server where the synchronization error occurs and the EPG template file where the error occurs can be quickly and effectively located.

[0097] Figure 8 yes Figure 2 The flowchart of step S250 in the embodiment shown in FIG. Figure 8 As shown, in an exemplary embodiment, based on the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, the key information of each EPG template file in the upper-level EPG server is compared with the key information of the corresponding EPG template file in the lower-level EPG server. The process of obtaining the comparison information may include steps S810 to S830, which are described in detail as follows:

[0098] Step S810: Compare the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server to obtain a second EPG server.

[0099] In this embodiment, the second EPG server is a subordinate EPG server that stores key information of the second template file. The second template file is a template file in the second EPG server, and the superior EPG server of the second EPG server does not store key information of the second template file.

[0100] In this embodiment, if a subordinate EPG server contains key information of an EPG template file, but the superior server corresponding to the subordinate EPG server does not contain the key information of the EPG template file, the subordinate EPG server is considered to be the second EPG server, and the second EPG server considers that a synchronization error has occurred.

[0101] Step S830: Output the comparison information of the second EPG server.

[0102] In this embodiment, the comparison information of the second EPG server includes the key information of the second EPG template file in the upper-level EPG server of the second EPG server, the key information of the second EPG template file in the second EPG server (the key information includes the file size and absolute path name of the second EPG template file in the second EPG server, and the absolute path name can locate the second EPG template file where the error occurs, providing reference data for subsequent maintenance), the identifier of the second EPG server (used to locate the EPG server where the misalignment occurs, providing reference data for subsequent maintenance) and the second comparison result (redundant files exist). Therefore, the key information of the second EPG template file does not exist in the upper-level EPG server of the second EPG server, and therefore the key information of the second EPG template file in the upper-level EPG server of the second EPG server in the output comparison information is empty.

[0103] Of course, in one embodiment, if a superior EPG server contains key information for an EPG template file, but a subordinate server connected to the superior EPG server does not contain the key information for the EPG template file, the subordinate EPG server is considered to be a third EPG server, and the third EPG server determines that a synchronization error has occurred. Comparison information for the third EPG server is also output; the comparison information for the third EPG server includes key information for the third template file in the superior EPG server of the third EPG server, key information for the third template file in the third EPG server, an identifier of the third EPG server (used to locate the misaligned EPG server and provide reference data for subsequent maintenance), and a third comparison result (missing file). Since the third EPG server does not contain the key information for the third template file, the key information for the third template file in the output comparison information is empty.

[0104] As shown in Table 2, the comparison information is displayed after comparison for a third EPG server:

[0105] IP3 Check Result3 File Size 3 Sup File Size3 File Name3 183.57.58.135 Missing files 6590 / home / XXX

[0106] Table 2

[0107] Among them, IP3 is the identifier of the third EPG server, Check Result3 is the third comparison result, File Size3 is the file size of the third EPG template file in the first EPG server, Sup File Size3 is the third EPG template file size and absolute path name of the third EPG template file in the superior EPG server, and File Name3 is the absolute address name in the third EPG template file in the third EPG server.

[0108] In this embodiment, by comparing the key information between the upper and lower level servers, the EPG server where the synchronization error occurs and the EPG template file where the error occurs can be effectively located.

[0109] Figure 9 FIG. 1 is a schematic diagram showing a device for comparing EPG template files according to an exemplary embodiment. Figure 9 As shown, in an exemplary embodiment, the EPG template file comparison device includes:

[0110] A file comparison tree diagram construction module 910 is configured to construct a file comparison tree diagram based on multiple electronic program menu (EPG) servers. The file comparison tree diagram includes a reference EPG server, a parent node EPG server, and a child node EPG server from the highest level to the lowest level according to the EPG template file synchronization level.

[0111] The key information acquisition module 930 is configured to respectively acquire key information corresponding to different EPG template files in each EPG server after the EPG template files are synchronized, wherein the key information includes the absolute path name and file size corresponding to the EPG template file;

[0112] The comparison module 950 is configured to compare the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server based on the hierarchical relationship among the benchmark EPG server, the parent node EPG server and the child node EPG server in the file comparison tree diagram to obtain comparison information.

[0113] In this embodiment, the EPG template file comparison device of the above structure can quickly compare the template files in the EPG server, verify the template files in the EPG server, and locate the position where the error occurs in the EPG template file.

[0114] In one embodiment, the EPG template file comparison device further comprises:

[0115] The synchronization module is configured to control the reference EPG server, the parent node EPG server and the child node EPG server to perform EPG template file synchronization processing respectively according to the upper and lower order of the file comparison tree diagram.

[0116] In one embodiment, the key information acquisition module 830 includes:

[0117] The encryption unit is configured to encrypt the absolute path name of each EPG template file to obtain a character string of a corresponding preset length;

[0118] The key information acquisition unit is configured to concatenate the character string with the file size of the corresponding EPG template file to obtain the key information of the corresponding EPG template file.

[0119] In one embodiment, the comparison module 950 includes:

[0120] a first initial comparison unit configured to compare key information of each EPG template file in the reference EPG server with key information of the corresponding EPG template file in the parent node EPG server;

[0121] The second initial comparison unit is configured to compare the key information of each EPG template file in the benchmark EPG server with the key information of the corresponding EPG template file in the subordinate child node EPG server of the target parent node EPG server if the key information of the template in the target parent node EPG server is different from the key information of the corresponding EPG template file in the benchmark EPG server.

[0122] In one embodiment, the comparison module 950 includes:

[0123] a first comparing unit configured to compare key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, to obtain a first EPG server, the first EPG server being a lower-level EPG server whose first EPG template file has a file size different from that of the corresponding EPG template file in the upper-level EPG server, and the first EPG template file being an EPG template file in the first EPG server;

[0124] The first comparison information acquisition unit is configured to output the comparison information of the first EPG server; the comparison information of the first EPG server includes key information of the first EPG template file in the upper-level EPG server of the first EPG server, key information of the first EPG template file in the first EPG server, the identifier of the first EPG server and the first comparison result.

[0125] In one embodiment, the comparison module 950 includes:

[0126] a second comparing unit configured to compare key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, to obtain a second EPG server, where the second EPG server is a lower-level EPG server that has key information of the second EPG template file, the second EPG template file is an EPG template file in the second EPG server, and the key information of the second EPG template file does not exist in the upper-level EPG server of the second EPG server;

[0127] The second comparison information acquisition unit is configured to output the comparison information of the second EPG server, the comparison information of the second EPG server includes the key information of the second EPG template file in the upper-level EPG server of the second EPG server, the key information of the second EPG template file in the second EPG server, the identifier of the second EPG server and the second comparison result, and the key information of the second EPG template file in the upper-level EPG server of the second EPG server is empty.

[0128] In one embodiment, the comparison module 950 includes:

[0129] a third comparing unit configured to compare key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, to obtain a third EPG server, where the third EPG server is a lower-level EPG server in which key information of the third EPG template file does not exist, and the third EPG template file is an EPG template file in the upper-level EPG server of the third EPG server;

[0130] The third comparison information acquisition unit is configured to output the comparison information of the third EPG server; the comparison information of the third EPG server includes the key information of the third EPG template file in the upper-level EPG server of the third EPG server, the key information of the third EPG template file in the third EPG server, the identifier of the third EPG server and the third comparison result, and the key information of the third EPG template file in the third EPG server is empty.

[0131] It should be noted that the EPG template file comparison device provided in the above embodiment and the EPG template file comparison method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0132] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, which, when executed by one or more processors, enables the electronic device to implement the EPG template file comparison method provided in the above-mentioned embodiments.

[0133] Figure 10 A schematic diagram of the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application is shown.

[0134] It should be noted that Figure 10 The computer system 1600 of the electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application.

[0135] like Figure 10As shown, computer system 1600 includes a central processing unit (CPU) 1601, which can perform various appropriate actions and processes according to the program stored in read-only memory (ROM) 1602 or the program loaded from storage portion 1608 into random access memory (RAM) 1603, such as executing the method in the above embodiment. Various programs and data required for system operation are also stored in RAM 1603. CPU 1601, ROM 1602 and RAM 1603 are connected to each other via bus 1604. Input / output (I / O) interface 1605 is also connected to bus 1604.

[0136] The following components are connected to the I / O interface 1605: an input section 1606 including a keyboard, a mouse, and the like; an output section 1607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 1608 including a hard disk; and a communication section 1609 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 1609 performs communication processing via a network such as the Internet. A drive 1610 is also connected to the I / O interface 1605 as needed. Removable media 1611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1610 as needed, so that computer programs read from the removable media can be installed in the storage section 1608 as needed.

[0137] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1609, and / or installed from a removable medium 1611. When the computer program is executed by the central processing unit (CPU) 1601, the various functions defined in the system of the present application are executed.

[0138] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0139] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.

[0141] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned EPG template file comparison method. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently and not be incorporated into the electronic device.

[0142] Another aspect of the present application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the EPG template file comparison method provided in each of the above embodiments.

[0143] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main ideas and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for comparing EPG template files, characterized in that: include: Constructing a file comparison tree diagram based on multiple electronic program menu (EPG) servers, wherein the file comparison tree diagram includes a reference EPG server, a parent node EPG server, and a child node EPG server from a high level to a low level according to the EPG template file synchronization level; Respectively obtain key information corresponding to different EPG template files in each EPG server after EPG template file synchronization processing, wherein the key information includes the absolute path name and file size corresponding to the EPG template file; According to the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, key information of each EPG template file in the upper-level EPG server is compared with key information of the corresponding EPG template file in the lower-level EPG server to obtain comparison information; The step of comparing key information of each EPG template file in the upper-level EPG server with key information of corresponding EPG template files in the lower-level EPG server based on the hierarchical relationship among the reference EPG server, the parent-node EPG server, and the child-node EPG server in the file comparison tree diagram to obtain comparison information includes: comparing key information of each EPG template file in the reference EPG server with key information of corresponding EPG template files in the parent-node EPG server; If the key information of the template in the target parent node EPG server is different from the key information of the corresponding EPG template file in the reference EPG server, the key information of each EPG template file in the reference EPG server is compared with the key information of the corresponding EPG template file in the subordinate child node EPG server of the target parent node EPG server.

2. The method according to claim 1, characterized in that Before respectively obtaining key information corresponding to different EPG template files in each EPG server after the EPG template files have been synchronously processed, the method further includes: The reference EPG server, the parent node EPG server and the child node EPG server are controlled to perform EPG template file synchronization processing respectively according to the upper and lower levels order of the file comparison tree diagram.

3. The method according to claim 1, characterized in that The step of respectively obtaining key information corresponding to different EPG template files in each EPG server after the EPG template files have been synchronously processed includes: Encrypt the absolute path name of each EPG template file to obtain a character string of a corresponding preset length; The character string is concatenated with the file size of the corresponding EPG template file to obtain key information of the corresponding EPG template file.

4. The method according to claim 1, wherein The method of comparing the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server according to the upper-lower relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram to obtain comparison information includes: Comparing key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, obtaining a first EPG server, wherein the first EPG server is a lower-level EPG server whose first EPG template file has a file size different from that of the corresponding EPG template file in the upper-level EPG server, and the first EPG template file is an EPG template file in the first EPG server; Output the comparison information of the first EPG server; the comparison information of the first EPG server includes key information of the first EPG template file in the upper-level EPG server of the first EPG server, key information of the first EPG template file in the first EPG server, an identifier of the first EPG server and a first comparison result.

5. The method according to claim 1, wherein The method of comparing the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server according to the upper-lower relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram to obtain comparison information includes: Comparing key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, obtaining a second EPG server, where the second EPG server is a lower-level EPG server that has key information of the second EPG template file, the second EPG template file is an EPG template file in the second EPG server, and the key information of the second EPG template file does not exist in the upper-level EPG server of the second EPG server; Output the comparison information of the second EPG server, the comparison information of the second EPG server including the key information of the second EPG template file in the upper-level EPG server of the second EPG server, the key information of the second EPG template file in the second EPG server, the identifier of the second EPG server and the second comparison result, the key information of the second EPG template file in the upper-level EPG server of the second EPG server is empty.

6. The method according to claim 1, characterized in that The method of comparing the key information of each EPG template file in the upper-level EPG server with the key information of the corresponding EPG template file in the lower-level EPG server according to the upper-lower relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram to obtain comparison information includes: Comparing key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server, obtaining a third EPG server, wherein the third EPG server is a lower-level EPG server in which key information of the third EPG template file does not exist, and the third EPG template file is an EPG template file in the upper-level EPG server of the third EPG server; Output the comparison information of the third EPG server; the comparison information of the third EPG server includes key information of the third EPG template file in the upper-level EPG server of the third EPG server, key information of the third EPG template file in the third EPG server, an identifier of the third EPG server and a third comparison result, and the key information of the third EPG template file in the third EPG server is empty.

7. A device for comparing EPG template files, characterized in that: include: A file comparison tree diagram construction module is configured to construct a file comparison tree diagram based on multiple electronic program menu (EPG) servers, wherein the file comparison tree diagram includes, from upper to lower levels according to the EPG template file synchronization level, a reference EPG server, a parent node EPG server, and a child node EPG server; A key information acquisition module is configured to respectively acquire key information corresponding to different EPG template files in each EPG server after EPG template file synchronization processing, wherein the key information includes an absolute path name and file size corresponding to the EPG template file; a comparison module configured to compare key information of each EPG template file in the upper-level EPG server with key information of the corresponding EPG template file in the lower-level EPG server according to the hierarchical relationship among the reference EPG server, the parent node EPG server, and the child node EPG server in the file comparison tree diagram, to obtain comparison information; The step of comparing key information of each EPG template file in the upper-level EPG server with key information of corresponding EPG template files in the lower-level EPG server based on the hierarchical relationship among the reference EPG server, the parent-node EPG server, and the child-node EPG server in the file comparison tree diagram to obtain comparison information includes: comparing key information of each EPG template file in the reference EPG server with key information of corresponding EPG template files in the parent-node EPG server; If the key information of the template in the target parent node EPG server is different from the key information of the corresponding EPG template file in the reference EPG server, the key information of each EPG template file in the reference EPG server is compared with the key information of the corresponding EPG template file in the subordinate child node EPG server of the target parent node EPG server.

8. An electronic device, characterized in that: include: one or more processors; The storage device is configured to store one or more computer programs, and when the one or more computer programs are executed by the one or more processors, the electronic device implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • File verification method and system and computer readable storage medium

    CN111324912A