Content resource deduplication methods, devices, electronic equipment and storage media
By recording content resources on the client side and deduplicating them based on the displayed information, the problem of duplicate resource distribution caused by server-side anomalies is solved, achieving effective deduplication in the event of server-side anomalies and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2021-09-27
- Publication Date
- 2026-06-30
AI Technical Summary
When existing technologies encounter server-side anomalies, content resources are easily duplicated across different application scenarios, leading to a degraded user experience.
The client records the display information of content resources and performs deduplication based on the display information under preset triggers, realizing a local video deduplication mechanism and reducing dependence on the server.
In the event of server-side anomalies, this effectively avoids the repeated display of content resources, improves user experience, and optimizes the utilization of interface resources.
Smart Images

Figure CN115877988B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for deduplication of content resources. Background Technology
[0002] Currently, content applications providing content streams across multiple scenarios—for example, video applications offering video streams for homepage, followed, and local scenarios—primarily rely on the server-side to deduplicate the same videos across different scenarios before content stream delivery. Existing deduplication methods are overly dependent on the server-side. When server-side anomalies occur, such as the deduplication mechanism failing, content resources will be repeatedly delivered to various application scenarios, degrading the user experience. Summary of the Invention
[0003] This disclosure provides a content resource deduplication method, apparatus, electronic device, and storage medium, which can effectively perform content resource deduplication in different scenarios under server-side anomalies, thereby improving user experience.
[0004] In a first aspect, embodiments of this disclosure provide a content resource deduplication method, applied to a client, including:
[0005] Record the display information of content resources in each scene interface;
[0006] In response to a preset trigger, the content resources corresponding to the first scene interface are deduplicated according to the displayed information; wherein the first scene interface refers to the scene interface currently presented by the client.
[0007] Secondly, this disclosure also provides a content resource deduplication device, integrated into a client, comprising:
[0008] The recording module is used to record the display information of content resources in each scene interface;
[0009] The deduplication module is used to deduplicat content resources corresponding to the first scene interface in response to a preset trigger, based on the displayed information; wherein the first scene interface refers to the scene interface currently presented by the client.
[0010] Thirdly, embodiments of this disclosure also provide an electronic device, the electronic device comprising:
[0011] One or more processors;
[0012] Storage device for storing one or more programs.
[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the content resource deduplication method as described in any of the embodiments of this disclosure.
[0014] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the content resource deduplication method as described in any of the embodiments of this disclosure.
[0015] The technical solution of this disclosure embodiment records the display information of content resources in each scene interface; in response to a preset trigger, it performs deduplication on the content resources corresponding to the first scene interface based on the display information; wherein the first scene interface refers to the scene interface currently displayed on the client. By performing deduplication on the content resources corresponding to the first scene interface based on the display records of content resources in each scene interface, a local video deduplication mechanism can be realized on the client, thereby effectively performing deduplication of content resources in different scenes in the event of server-side anomalies, improving user experience. Attached Figure Description
[0016] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0017] Figure 1 This is a flowchart illustrating a content resource deduplication method provided in Embodiment 1 of this disclosure;
[0018] Figure 2 This is a schematic diagram showing the deduplicated content resources in the first scene interface of a content resource deduplication method provided in Embodiment 1 of this disclosure;
[0019] Figure 3 This is a flowchart illustrating a content resource deduplication method provided in Embodiment 2 of this disclosure;
[0020] Figure 4 This is a schematic diagram of incremental deduplication in a content resource deduplication method provided in Embodiment 2 of this disclosure;
[0021] Figure 5 This is a flowchart illustrating another content resource deduplication method provided in Embodiment 2 of this disclosure;
[0022] Figure 6 This is a schematic diagram of the existing deduplication process in a content resource deduplication method provided in Embodiment 2 of this disclosure;
[0023] Figure 7This is a schematic diagram of the structure of a content resource deduplication device provided in Embodiment 3 of this disclosure;
[0024] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of this disclosure. Detailed Implementation
[0025] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0026] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0027] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0028] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0029] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0030] Example 1
[0031] Figure 1This is a flowchart illustrating a content resource deduplication method provided in Embodiment 1 of this disclosure. Content resources may include one or more types, such as video resources, audio resources, image resources, and text resources. This embodiment is applicable to situations where a client performs local deduplication on at least one content resource, such as video resources, audio resources, image resources, or text resources. This embodiment primarily uses video resources as an example to illustrate the deduplication method, but it can also be applied to deduplication of other content resources. This method can be executed by a content resource deduplication device, which can be implemented in software and / or hardware. This device can be integrated into video applications (also known as video clients) and can be installed on electronic devices along with the video applications, such as mobile phones or computers.
[0032] like Figure 1 As shown, the content resource deduplication method provided in this embodiment, applied to a client, may include:
[0033] S110. Record the display information of content resources in each scene interface.
[0034] In this embodiment, content resources may include resource data of various types such as video, audio, images, and text received from other terminals that have established communication with the local client, such as video streams received from a server. When receiving content resources, the category to which the content resource belongs can also be received simultaneously, and this category may include, but is not limited to, homepage, following, local, travel, and technology. In the local client, content resources can be presented on different interfaces according to different category scenarios, resulting in various scenario interfaces.
[0035] Each interface can respond to content display triggers by displaying corresponding content resources, and can also respond to display completion events by recording the display information of that content resource. For example, it can respond to a video playback command to play the corresponding video resource, and can respond to the time when the video playback ends by recording the display information of the video resource.
[0036] The displayed information may include, but is not limited to, the resource identifier of the content resource, the scene interface to which the display belongs, and the start / end timestamps of the display. The resource identifier may consist of at least one element, such as text, letters, numbers, and symbols, and may correspond to a unique content resource. The recorded display information may be stored in memory cache or disk cache for retrieval during content resource deduplication.
[0037] S120. In response to a preset trigger, deduplication is performed on the content resources corresponding to the first scene interface based on the displayed information.
[0038] In this embodiment, the preset trigger can be considered as a trigger related to the scene interface, such as including at least one of the following: refreshing the interface, switching the interface, and adding the interface. The first scene interface can refer to the scene interface currently displayed by the client, and can be considered as the scene interface pointed to by the preset trigger, such as including at least one of the following: the refreshed interface, the switched interface, and the newly added interface. The content resources corresponding to the first scene interface can be determined based on different preset triggers.
[0039] For example, if the preset trigger is to refresh the interface, the newly received content resources under the first scene interface can be used as the content resources corresponding to the first scene interface; if the preset trigger is to switch the interface, the existing content resources under the first scene interface can be used as the content resources corresponding to the first scene interface; if the preset trigger is to add the interface, the content resources received for the first time under the first scene interface can be used as the content resources corresponding to the first scene interface.
[0040] Upon receiving a preset trigger, the system can read the display information of content resources in each scene interface, that is, read the display information corresponding to each scene interface. Furthermore, it can deduplicate the content resources corresponding to the first scene interface based on the read display information. Deduplicating content resources can be understood as deleting content resources so that the first scene interface does not display those content resources.
[0041] Specifically, deduplication of content resources corresponding to the first scene interface based on the displayed information can include: deduplicating content resources corresponding to the first scene interface based on the display information of the content resources in the first scene interface, i.e., the display information corresponding to the first scene interface. By deduplicating the content resources of the first scene interface based on the display information corresponding to the first scene interface, more undisplayed content resources can be displayed in the first scene interface, thereby facilitating the efficient use of interface area.
[0042] In addition, in some optional implementations, deduplication of content resources corresponding to the first scene interface based on the display information may also include: deduplication of content resources corresponding to the first scene interface based on the display information corresponding to the second scene interface; wherein, the second scene interface may refer to scene interfaces other than the first scene interface among all scene interfaces.
[0043] Content resources belonging to different categories may overlap, meaning that different scenario interfaces may correspond to the same content resources. Among these optional implementation methods, by deduplicating the content resources corresponding to the current scenario based on the display information of the content resources in the second scenario interface (i.e., the display information corresponding to the second scenario interface), it is possible to avoid displaying the same content resources repeatedly in different scenario interfaces, thereby improving the user experience.
[0044] In some further implementations, the display information corresponding to the second scene interface includes a set of first resource identifiers of the content resources already displayed in the second scene interface;
[0045] Based on the display information corresponding to the second scene interface, deduplication is performed on the content resources corresponding to the first scene interface, including: if the second resource identifier of the content resource corresponding to the first scene interface is included in the set of first resource identifiers, then the content resource corresponding to the second resource identifier is deleted.
[0046] In these further implementations, for each content resource corresponding to the first scene interface, it can be determined whether its second resource identifier is included in the first resource identifier in the displayed information. If it is included, it can be assumed that the content resource corresponding to the second resource identifier has already been displayed in the second scene interface. At this time, the displayed content resource can be deleted, thereby preventing the content resource already displayed in the second scene interface from appearing again in the first scene interface.
[0047] Specifically, content resources corresponding to the first scene interface can be deduplicated based on display information corresponding to the first scene interface and / or display information corresponding to the second scene interface. Furthermore, the content resource deduplication method may also include displaying the deduplicated content resources in the first scene interface.
[0048] For example, Figure 2 This is a schematic diagram showing the deduplicated content resources in the first scene interface of a content resource deduplication method provided in Embodiment 1 of this disclosure. See also... Figure 2 The first scene interface can be the homepage interface, and the second scene interface can include the following interface and the local interface, etc. Figure 2 The first scene interface includes two display formats, (a) and (b), and the content resources in the interface may include video resources.
[0049] See interface form (a), which displays multiple video resources (e.g., video resources 1-6) in the form of video cover images. Correspondingly, the deduplicated video cover images of the video resources can be displayed in the first scene interface. Interface (a) can respond to a triggering operation of the video cover image to play the corresponding video resource.
[0050] Refer to the interface of form (b), which can display one video resource at a time. Accordingly, the deduplicated video resources can be displayed sequentially in the first scene interface. Interface (b) can respond to video resource switching operations (e.g., swiping up or down) to play the switched video resource.
[0051] By performing deduplication processing on video resources before playback, we can avoid playing video resources repeatedly in different scene interfaces, thereby improving the user experience.
[0052] In this embodiment, the client can complete the deduplication process solely based on the content resources provided by the server, without requiring any other information, thereby reducing reliance on the server. By using a local video deduplication mechanism on the client, it can serve as a fallback method when the server-side deduplication mechanism fails, completely removing duplicate content resources, optimizing the user experience, and maximizing the display of video content.
[0053] The technical solution of this disclosure embodiment records the display information of content resources in each scene interface; in response to a preset trigger, it performs deduplication on the content resources corresponding to the first scene interface based on the display information; wherein the first scene interface refers to the scene interface currently displayed on the client. By performing deduplication on the content resources corresponding to the first scene interface based on the display records of content resources in each scene interface, a local video deduplication mechanism can be realized on the client, thereby effectively performing deduplication of content resources in different scenes in the event of server-side anomalies, improving user experience.
[0054] Example 2
[0055] This embodiment can be combined with various optional solutions in the content resource deduplication method provided in the above embodiments. The content resource deduplication method provided in this embodiment details the deduplication of different content resources under different preset triggers. For example, if the preset trigger includes an update trigger of the first scene interface, then the content resources corresponding to the first scene interface include the received updated content resources corresponding to the first scene interface. And / or, if the preset trigger includes a switching trigger from the second scene interface to the first scene interface, then the content resources corresponding to the first scene interface include content resources not displayed in the first scene interface.
[0056] Figure 3 This is a flowchart illustrating a content resource deduplication method provided in Embodiment 2 of this disclosure. Figure 3 As shown, the content resource deduplication method provided in this embodiment may include:
[0057] S310. Record the display information of content resources in each scene interface.
[0058] S320, In response to an update trigger, obtain the update content resources corresponding to the first scene interface.
[0059] In this embodiment, the preset trigger may include an update trigger for the first scene interface. In video clients, an update trigger for the first scene interface may be, for example, pulling down the first scene interface or clicking an update control in the first scene interface. The client can request new content resources from the server based on the update trigger; the server can send new content resources corresponding to the category of the first scene interface to the client, i.e., send updated content resources; the client can obtain the updated content resources to perform deduplication processing before display.
[0060] S330. Based on the displayed information, perform deduplication on the updated content resources.
[0061] The client can deduplicate updated content resources based on the displayed information, such as the displayed information corresponding to the first scene and / or the displayed information corresponding to the second scene interface.
[0062] The updated content resources can be referred to as incremental content resources. The method of deduplicating incremental content resources is called incremental content deduplication. By performing incremental content deduplication, content resources that have already been played in the second scene interface can be removed from the updated content resources of the first scene interface.
[0063] For example, Figure 4 This is a schematic diagram of incremental deduplication in a content resource deduplication method provided in Embodiment 2 of this disclosure. See also... Figure 4 The first scene interface can be the follow interface, the second scene interface can be the homepage interface, and the content resources can include video resources.
[0064] Assume the server has already sent video resources 1, 2, and 3 to the homepage, and video resources 1 and 2 are already playing on the homepage. The resource identifiers of video resources 1 and 2, as well as the homepage to which they were playing, are recorded in the display information. If, subsequently, the user switches from another interface to the followed interface, it can receive video resources 2, 3, and 4 sent by the server in response to an update of the currently followed interface. At this point, based on the display information corresponding to the homepage, i.e., the resource identifiers of video resources 1 and 2, it can be determined that video resource 2 has already been played; and video resource 2 can be deleted from the sent video resources so that the followed interface only displays the unplayed video resources 3 and 4.
[0065] also, Figure 5 This is a flowchart illustrating another content resource deduplication method provided in Embodiment 2 of this disclosure. Figure 5 As shown, the content resource deduplication method provided in this embodiment may include:
[0066] S510. Record the display information of content resources in each scene interface;
[0067] S520, In response to the switching trigger from the second scene interface to the first scene interface, obtain the content resources that are not displayed in the first scene interface.
[0068] In this embodiment, the preset trigger may include a switching trigger from the second scene interface to the first scene interface. The second scene interface is the same as the second scene interface disclosed above, and can also refer to any scene interface other than the first scene interface.
[0069] In video clients, the transition from a second scene interface to a first scene interface is triggered by actions such as swiping the scene interface or clicking a label control on the scene interface. The client can determine the content resources not displayed in the current scene based on the transition trigger. In some implementations, the content resources not displayed in the first scene interface can be determined based on the display information corresponding to the first scene interface. For example, if the display information corresponding to the first scene interface does not include a second resource identifier for the content resources in the first scene interface, then it can be assumed that the content resource corresponding to that second resource identifier is not displayed.
[0070] S530. Based on the displayed information, deduplicate the content resources that are not displayed.
[0071] By using the display information, such as the display information corresponding to the first scene and / or the display information corresponding to the second scene interface, duplicate content resources not displayed in the first scene interface are deduplicated.
[0072] Content resources that have been distributed but not yet displayed in the scene interface can be referred to as existing content resources. The method of deduplicating existing content resources is called existing content resource deduplication. By performing existing content resource deduplication, content resources that are not displayed in the first scene interface but are displayed in the second scene interface can be removed.
[0073] For example, Figure 6 This is a schematic diagram illustrating the deduplication of existing content resources in a content resource deduplication method provided in Embodiment 2 of this disclosure. See also... Figure 6 The first scene interface can be the homepage interface, the second scene interface can include the following interface, and the content resources can include video resources.
[0074] Assuming the server has already sent video resources 1, 2, and 3 to the homepage, and video resources 1 and 2 have already played on the homepage, but video resource 3 has not, the user can switch to a second scenario interface, such as switching from the previous homepage interface to the following interface. If, before switching back to the homepage, video resource 3 has already been played on the following interface, and the resource identifier of video resource 3 and the following interface to which it was played are recorded in the display information, then upon switching back to the homepage from the second scenario interface in response to a switch trigger, the user can determine that video resource 3 has already been played on the current homepage based on the display information corresponding to the following interface, i.e., the resource identifier of video resource 3. At this point, video resource 3 can be deleted from the current homepage's stock of video resources to prevent the homepage from repeatedly playing video resource 3 that has already been played.
[0075] The technical solution of this disclosure describes in detail how to deduplicat different content resources under different preset triggers. For example, when triggered by an update of the first scene interface, the received updated content resources corresponding to the first scene interface can be deduplicated; and / or, when triggered by a switch from the second scene interface to the first scene interface, content resources not displayed in the first scene interface can be deduplicated. By deduplicating the content resources of the first scene interface under different triggers, a flexible and reliable local deduplication mechanism is achieved, avoiding repeated playback of content resources in the first scene interface and improving user experience.
[0076] The content resource deduplication method provided in this embodiment belongs to the same concept as the content resource deduplication method provided in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and the same technical features have the same beneficial effects in this embodiment and the above embodiments.
[0077] Example 3
[0078] Figure 7 This is a schematic diagram of a content resource deduplication device provided in Embodiment 3 of this disclosure. The content resource deduplication device provided in this embodiment is suitable for situations where the client performs local deduplication of at least one content resource, such as video resources, audio resources, image resources, and text resources.
[0079] like Figure 7 As shown, the content resource deduplication device, integrated into the client, may include:
[0080] The recording module 710 is used to record the display information of content resources in each scene interface;
[0081] The deduplication module 720 is used to deduplicat content resources corresponding to the first scene interface in response to a preset trigger, based on the displayed information; where the first scene interface refers to the scene interface currently displayed on the client.
[0082] Furthermore, the content resource deduplication device may also include a module for executing any content resource deduplication method in the embodiments of this disclosure, specifically:
[0083] In some alternative implementations, the deduplication module can be specifically used for:
[0084] Based on the display information corresponding to the second scene interface, deduplication is performed on the content resources corresponding to the first scene interface;
[0085] The second scene interface refers to the scene interface other than the first scene interface among all scene interfaces.
[0086] In some optional implementations, the display information corresponding to the second scene interface includes a set of first resource identifiers of the content resources already displayed in the second scene interface;
[0087] The deduplication module can be specifically used for:
[0088] If the second resource identifier of the content resource corresponding to the first scene interface is included in the set of first resource identifiers, then the content resource corresponding to the second resource identifier will be deleted.
[0089] In some optional implementations, the preset triggers include the update trigger of the first scene interface; the deduplication module can be specifically used to: in response to the update trigger, obtain the updated content resources corresponding to the first scene interface; and deduplicate the updated content resources according to the display information.
[0090] In some optional implementations, the preset trigger is the switching trigger from the second scene interface to the first scene interface; the deduplication module can be specifically used to: in response to the switching trigger, obtain content resources that are not displayed in the first scene interface; and deduplicate the content resources that are not displayed based on the display information.
[0091] The second scene interface refers to the scene interface other than the first scene interface among all scene interfaces.
[0092] In some optional implementations, the content resources not displayed in the first scene interface are determined based on the display information corresponding to the first scene interface.
[0093] In some alternative implementations, the content resource deduplication device may also include:
[0094] The display module is used to display the deduplicated content resources on the first scene interface.
[0095] The content resource deduplication device provided in this disclosure can execute the content resource deduplication method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of executing the method.
[0096] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0097] Example 4
[0098] The following is for reference. Figure 8 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 8 The diagram below shows the structure of the terminal device or server 800. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0099] like Figure 8 As shown, the electronic device 800 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 806 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0100] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8An electronic device 800 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0101] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 806, or installed from a ROM 802. When the computer program is executed by the processing device 801, it performs the functions defined in the content resource deduplication method of embodiments of this disclosure.
[0102] The electronic device provided in this embodiment and the content resource deduplication method provided in the above embodiments belong to the same disclosed concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0103] Example 5
[0104] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the content resource deduplication method provided in the above embodiments.
[0105] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory (FLASH), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0106] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0107] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0108] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:
[0109] Record the display information of content resources in each scene interface; respond to preset triggers, and deduplicate the content resources corresponding to the first scene interface according to the display information; where the first scene interface refers to the scene interface currently presented by the client.
[0110] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0112] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units and modules do not, in certain circumstances, constitute a limitation on the unit or module itself.
[0113] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), and so on.
[0114] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0115] According to one or more embodiments of this disclosure, [Example 1] provides a content resource deduplication method applied to a client, the method comprising:
[0116] Record the display information of content resources in each scene interface;
[0117] In response to a preset trigger, the content resources corresponding to the first scene interface are deduplicated according to the displayed information; wherein the first scene interface refers to the scene interface currently presented by the client.
[0118] According to one or more embodiments of this disclosure, [Example 2] provides a method for deduplicating content resources, which further includes:
[0119] In some optional implementations, the step of deduplicating the content resources corresponding to the first scene interface based on the display information includes:
[0120] Based on the display information corresponding to the second scene interface, deduplication is performed on the content resources corresponding to the first scene interface;
[0121] The second scene interface refers to the scene interface other than the first scene interface among the various scene interfaces.
[0122] According to one or more embodiments of this disclosure, [Example 3] provides a method for deduplicating content resources, which further includes:
[0123] In some optional implementations, the display information corresponding to the second scene interface includes a set of first resource identifiers of the content resources already displayed in the second scene interface;
[0124] The step of deduplicating content resources corresponding to the first scene interface based on display information corresponding to the second scene interface includes:
[0125] If the second resource identifier of the content resource corresponding to the first scene interface is included in the set of first resource identifiers, then the content resource corresponding to the second resource identifier will be deleted.
[0126] According to one or more embodiments of this disclosure, [Example 4] provides a method for deduplicating content resources, which further includes:
[0127] In some optional implementations, the preset trigger includes an update trigger of the first scene interface; the step of deduplicating the content resources corresponding to the first scene interface according to the display information in response to the preset trigger includes:
[0128] In response to the update trigger, obtain the updated content resources corresponding to the first scene interface;
[0129] The updated content resources are deduplicated based on the displayed information.
[0130] According to one or more embodiments of this disclosure, Example 5 provides a method for deduplicating content resources, which further includes:
[0131] In some optional implementations, the preset trigger includes a switching trigger from the second scene interface to the first scene interface; the step of deduplicating the content resources corresponding to the first scene interface according to the display information in response to the preset trigger includes:
[0132] In response to the switching trigger, retrieve content resources not displayed in the first scene interface;
[0133] Based on the displayed information, deduplication is performed on the undisplayed content resources;
[0134] The second scene interface refers to the scene interface other than the first scene interface among the various scene interfaces.
[0135] According to one or more embodiments of this disclosure, [Example Six] provides a method for deduplicating content resources, which further includes:
[0136] In some optional implementations, the content resources not displayed in the first scene interface are determined based on the display information corresponding to the first scene interface.
[0137] According to one or more embodiments of this disclosure, [Example Seven] provides a method for deduplicating content resources, further comprising:
[0138] The deduplicated content resources are displayed on the first scene interface.
[0139] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0140] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0141] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.
Claims
1. A method for deduplicating content resources, characterized in that, Applied to the client side, including: In response to the failure of the server-side deduplication mechanism, the display information of content resources in each scenario interface is recorded. The content resources are presented in different interfaces according to different scenario categories to obtain the scenario interfaces. The display information includes the resource identifier of the content resource, the scenario interface to which it belongs when it is displayed, and the start and end timestamps of the display. In response to an update trigger of the first scene interface, the system obtains updated content resources sent by the server. Based on the display information corresponding to the first scene interface and / or the display information corresponding to the second scene interface, the system performs deduplication on the updated content resources. Here, the first scene interface refers to the scene interface currently displayed by the client; the second scene interface refers to the scene interface other than the first scene interface among the various scene interfaces; and the updated content resources are new content resources sent by the server that correspond to the category of the first scene interface. In response to a switching trigger from the second scene interface to the first scene interface, the content resources not displayed in the first scene interface are obtained. Based on the display information corresponding to the first scene interface and / or the display information corresponding to the second scene interface, the content resources not displayed in the first scene interface are deduplicated. The content resources not displayed in the first scene interface are determined based on the display information corresponding to the first scene interface.
2. The method according to claim 1, characterized in that, The display information corresponding to the second scene interface includes a set of first resource identifiers of the content resources already displayed in the second scene interface; The step of deduplicating content resources corresponding to the first scene interface based on the display information corresponding to the second scene interface includes: If the second resource identifier of the content resource corresponding to the first scene interface is included in the set of first resource identifiers, then the content resource corresponding to the second resource identifier will be deleted.
3. The method according to any one of claims 1-2, characterized in that, Also includes: The deduplicated content resources are displayed on the first scene interface.
4. A content resource deduplication device, characterized in that, Integrated into the client, including: The recording module is used to record the display information of content resources in each scene interface in response to the failure of the server-side deduplication mechanism. The content resources are presented in different interfaces according to different category scenes to obtain the scene interfaces. The display information includes the resource identifier of the content resource, the scene interface to which it belongs when it is displayed, and the start and end timestamps of the display. The deduplication module is used to respond to the update trigger of the first scene interface, obtain the updated content resources sent by the server, and perform deduplication on the updated content resources according to the display information corresponding to the first scene interface and / or the display information corresponding to the second scene interface. Here, the first scene interface refers to the scene interface currently displayed by the client; the second scene interface refers to the scene interface other than the first scene interface among the various scene interfaces; and the updated content resources are new content resources sent by the server that correspond to the category of the first scene interface. In response to a switching trigger from the second scene interface to the first scene interface, the content resources not displayed in the first scene interface are obtained. Based on the display information corresponding to the first scene interface and / or the display information corresponding to the second scene interface, the content resources not displayed in the first scene interface are deduplicated. The content resources not displayed in the first scene interface are determined based on the display information corresponding to the first scene interface.
5. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the content resource deduplication method as described in any one of claims 1-3.
6. A storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the content resource deduplication method as described in any one of claims 1-3.