Media content processing method and device, equipment, readable storage medium and product
By maintaining the full collection list in the back-end server and performing incremental data synchronization on the client, the problem of low efficiency of collection data synchronization between multiple devices is solved, and efficient and accurate data synchronization is achieved.
Patent Information
- Application Number
- CN202411670506.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-20
AI Technical Summary
In the prior art, the synchronization efficiency of collecting data between multiple electronic devices is low and the computing resource consumption is large.
Maintain a full collection list in the backend server, and each client associated with the user can upload collection data to the list. By obtaining the user's collection operation within the specified time interval, when the preset synchronization conditions are met, the list update information is obtained from the server, the local collection list is updated, and the content to be updated is sent to the server for content update.
It realizes that on the basis of accurately synchronizing the collection of data, reduces the amount of data transmission, improves the efficiency of content synchronization, and avoids data conflicts and resource consumption.
Smart Images

Figure CN119545122A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing technology, and in particular, to a media content processing method, apparatus, device, readable storage medium, and product. Background Art
[0002] When a user browses media content in an application, a collection operation can be triggered for the media content. In actual applications, a user can install and log in to the same application on multiple electronic devices. How to quickly and accurately synchronize the collection data in multiple electronic devices has become an urgent problem to be solved.
[0003] In the related art, a full collection data synchronization operation can generally be performed for each electronic device. However, full data synchronization often synchronizes a large amount of data, resulting in low data synchronization efficiency and high consumption of computing resources. Summary of the invention
[0004] The embodiments of the present disclosure provide a media content processing method, apparatus, device, readable storage medium and product, which are used to solve the technical problem of low efficiency of existing collection data synchronization.
[0005] In a first aspect, an embodiment of the present disclosure provides a media content processing method, including:
[0006] Acquire at least one favorite operation triggered by a user on at least one media content within a time interval, wherein the time interval is an interval between a current timestamp and a timestamp corresponding to a previous favorite list update operation, wherein the favorite operation is acquired after being authorized by the user;
[0007] In response to satisfying a preset synchronization condition, obtaining, from a preset server, list update information of a pre-stored first favorite list newly added within the time interval, wherein the first favorite list includes all historical favorite data generated for media content by all clients associated with the user, wherein the full historical favorite data is uploaded to the server after being authorized by the user;
[0008] Based on the list update information, a favorites list update operation is performed on the second favorites list corresponding to the current client to obtain an updated target favorites list;
[0009] At least one to-be-updated content is determined based on the first favorite list and the target favorite list, and the at least one to-be-updated content is sent to the server, so that the server performs a content update operation on the first favorite list based on the at least one to-be-updated content.
[0010] In a second aspect, an embodiment of the present disclosure provides a media content processing method, including:
[0011] Acquire at least one content to be updated sent by at least one client, wherein the content to be updated is calculated based on the media content processing method described in the first aspect;
[0012] A favorites list update operation is performed on the pre-stored first favorites list according to the at least one content to be updated to obtain an updated first favorites list, wherein the first favorites list includes all historical favorites data generated for media content by all clients associated with the user.
[0013] In a third aspect, an embodiment of the present disclosure provides a media content processing device, including:
[0014] An acquisition module, configured to acquire at least one favorite operation triggered by a user on at least one media content within a time interval, wherein the time interval is an interval between a current timestamp and a timestamp corresponding to a previous favorite list update operation, wherein the favorite operation is acquired after being authorized by the user;
[0015] A synchronization module, configured to obtain, in response to a preset synchronization condition being met, list update information newly added to a pre-stored first favorite list within the time interval from a preset server, wherein the first favorite list includes all historical favorite data generated for media content by all clients associated with the user, wherein the full historical favorite data is uploaded to the server after being authorized by the user;
[0016] An updating module, configured to perform a favorites list updating operation on a second favorites list corresponding to the current client based on the list updating information, and obtain an updated target favorites list;
[0017] The sending module is used to determine at least one content to be updated based on the first favorite list and the target favorite list, and send the at least one content to be updated to the server, so that the server performs a content update operation on the first favorite list based on the at least one content to be updated.
[0018] In a fourth aspect, an embodiment of the present disclosure provides a media content processing device, including:
[0019] A data acquisition module, used to acquire at least one content to be updated sent by at least one client, wherein the content to be updated is obtained by calculation based on the media content processing device according to the third aspect;
[0020] The processing module is used to perform a collection list update operation on the pre-stored first collection list according to the at least one content to be updated to obtain an updated first collection list, wherein the first collection list includes the full amount of historical collection data generated by all clients associated with the user for the media content.
[0021] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0022] The memory stores computer-executable instructions;
[0023] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the media content processing method described in the first aspect and various possible designs of the first aspect or the second aspect and various possible designs of the second aspect.
[0024] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the media content processing method described in the first aspect and various possible designs of the first aspect or the second aspect and various possible designs of the second aspect is implemented.
[0025] In a seventh aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the media content processing method described in the first aspect and various possible designs of the first aspect or the second aspect and various possible designs of the second aspect.
[0026] The media content processing method, apparatus, device, readable storage medium and product provided in this embodiment maintain a full first favorites list in the backend server in advance. After the user is fully authorized, each client associated with the user can upload favorites data to the first favorites list. Therefore, the second favorites list of each client can be synchronized with the favorites data based on the full first favorites list. In addition, when the user performs a favorites operation on the client, after the user is fully authorized, at least one favorites operation triggered by the user from the last favorites list update operation to the present can be obtained. When the preset synchronization conditions are met, the list update information from the last favorites list update operation to the present can be obtained from the server. The second favorites list of the client is updated based on the list update information to obtain the target favorites list. Then, at least one to-be-updated content can be determined based on the first favorites list and the target favorites list, and the at least one to-be-updated content can be sent to the server, so that the server performs a content update operation on the first favorites list based on the at least one to-be-updated content. By only transmitting data for the incremental to-be-updated content from the last favorites list update operation to the present, the data transmission amount can be reduced on the basis of accurately synchronizing the favorites data, and the efficiency of content synchronization can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0028] Figure 1 A diagram of the system architecture on which the present disclosure is based;
[0029] Figure 2 A flowchart of a media content processing method provided by an embodiment of the present disclosure;
[0030] Figure 3 A schematic diagram of a data structure provided for an embodiment of the present disclosure;
[0031] Figure 4 A flowchart of a media content processing method provided by an embodiment of the present disclosure;
[0032] Figure 5 A schematic diagram of an application scenario provided for an embodiment of the present disclosure;
[0033] Figure 6 A schematic diagram of a collection data link provided in an embodiment of the present disclosure;
[0034] Figure 7 A schematic diagram of the structure of a media content processing device provided in an embodiment of the present disclosure;
[0035] Figure 8 A schematic diagram of the structure of a media content processing device provided in an embodiment of the present disclosure;
[0036] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0038] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0039] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0040] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0041] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0042] In order to solve the technical problem of low efficiency of existing collection data synchronization, the present disclosure provides a media content processing method, device, equipment, readable storage medium and product.
[0043] It should be noted that the media content processing method, apparatus, device, readable storage medium and product provided by the present disclosure can be applied to any scenario of synchronization of collection data associated with media content.
[0044] In the related art, full synchronization or differential synchronization is generally used to achieve the synchronization of favorite data between multiple devices of the user. The former will perform full synchronization of the favorite data of each device. However, when the volume of favorite data is large, the synchronization efficiency of the above method is often low, and it consumes more computing resources. The latter generally compares the differences between the local and cloud through the diff algorithm, and submits the differences. However, when the above method is used to synchronize favorite data, if the favorite data produced by the two devices conflicts, the user is required to manually compare and merge the favorite data, which is often cumbersome and leads to poor user experience. For example, the user modifies the favorite data on two devices at the same time in a short period of time, and the modified favorite data produced by the two devices is not uploaded to the cloud server in time, so the subsequent difference calculation cannot be accurately performed.
[0045] In the process of solving the above technical problems, the inventors found through research that in order to quickly and accurately synchronize the collection data between multiple devices, a full first collection list can be maintained at the back end. After the user fully authorizes, the client in each device can send the content to be updated generated within a period of time to the back end server when the preset synchronization conditions are met, so that the back end server can perform data update operations on the first collection list.
[0046] In addition, in order to ensure data accuracy and avoid data conflicts, before sending the content to be updated to the back-end server, the server can also obtain the list update information generated by the first favorite list within the time interval, and based on the list update information, the second favorite list maintained by the client is updated to obtain the target favorite list. The content to be updated is determined by calculating the difference between the target favorite list and the first favorite list.
[0047] Optionally, in order to reduce the amount of data transmission between the client and the server, each data synchronization operation may transmit only incremental data generated within a time interval.
[0048] Figure 1 This is the system architecture diagram on which the present disclosure is based, such as Figure 1 As shown, the system architecture based on the present disclosure includes at least a server 11 and at least one terminal device 12. The server 11 can be connected to the terminal device 12 for communication, so that the server 11 can exchange information with the terminal device 12. The terminal device 12 can be provided with a client for browsing and collecting media content.
[0049] Figure 2 A flow chart of a media content processing method provided by an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the method includes:
[0050] Step 201: Obtain at least one favorite operation triggered by a user for at least one media content within a time interval, where the time interval is the interval between a current timestamp and a timestamp corresponding to a previous favorite list update operation, wherein the favorite operation is obtained after authorization by the user.
[0051] The execution subject of this embodiment is a media content processing device. The media content processing device can be coupled to a terminal device. The terminal device can be connected to a backend server for communication, so the synchronization operation of the collection data between multiple devices can be performed based on the full first collection list maintained in the backend server.
[0052] Optionally, the user can install the same software for browsing media content on multiple devices. The media content includes but is not limited to book media content, short play media content, audio media content, etc. For example, the user can install a reading software on a tablet computer, a desktop computer, a mobile phone, etc., and trigger the book collection operation on different devices.
[0053] The client can trigger a favorites list update operation when a preset synchronization condition is met. It can obtain incremental list update content from the server to implement an update operation on the second favorites list maintained locally. In addition, it can also send the content to be updated to the server to update the first favorites list pre-stored in the server, so as to maintain a full favorites list in the server, which is convenient for other clients associated with the user to perform favorites data synchronization operations.
[0054] The user can trigger at least one collection operation on at least one media content in the client in an offline state or an online state. The collection operation includes but is not limited to adding a certain media content to a favorites folder, classifying multiple favorite contents in the favorites folder, adding a preset mark to a certain media content, such as adding a star, etc.
[0055] In order to reduce the amount of data during the collection data synchronization process, data synchronization operations can be performed only on the collection data generated within the time interval from the last collection list update operation to the present. Therefore, at least one collection operation triggered by the user for at least one media content within the time interval can be obtained. Among them, the collection operation is obtained after the user has fully authorized it. For example, when the user can trigger at least one collection operation for at least one media content in the client in an offline state or an online state, a prompt message can be sent to the user to clearly prompt the user that the operation requested to be performed will require the acquisition and use of the user's collection operation. Thereby, the user can independently choose whether to provide the collection operation to the software or hardware such as the electronic device, application, server or storage medium that executes the operation of the technical solution of the present invention according to the prompt information.
[0056] Step 202, in response to satisfying a preset synchronization condition, obtaining from a preset server the list update information of a pre-stored first collection list newly added within the time interval, wherein the first collection list includes the full historical collection data generated for the media content by all clients associated with the user, wherein the full historical collection data is uploaded to the server after being authorized by the user.
[0057] In this embodiment, in order to realize the automatic synchronization operation of the favorite data, the synchronization condition can be pre-set. When the synchronization condition is met, the list update information of the pre-stored first favorite list newly added within the time interval is obtained from the preset server, and the first favorite list includes the full amount of historical favorite data generated by all clients associated with the user for the media content, wherein the full amount of historical favorite data is uploaded to the server after being fully authorized by the user. The list update information can be the incremental favorite data uploaded to the server by other clients within the time interval.
[0058] For example, a user can perform a collection operation on media content in an offline state. Therefore, in order to achieve timely synchronization of offline data, the synchronization condition can be that when the network is unobstructed and half an hour has passed since the last collection list update operation, the data synchronization operation on multiple devices is performed based on the collection data generated in the offline stage.
[0059] Step 203: Perform a favorites list update operation on the second favorites list corresponding to the current client based on the list update information to obtain an updated target favorites list.
[0060] In this embodiment, because other clients can upload content to be updated within the time interval, and the second favorites list corresponding to the current client does not include the content to be updated, in order to avoid data conflicts, after obtaining the list update information, the list update information can be merged with the second favorites list corresponding to the current client to obtain a more accurate target favorites list.
[0061] Step 204: determine at least one content to be updated based on the first favorites list and the target favorites list, and send the at least one content to be updated to the server, so that the server performs a content update operation on the first favorites list based on the at least one content to be updated.
[0062] In this embodiment, after the list update information is merged with the second favorites list corresponding to the current client, a comprehensive target favorites list can be obtained. Therefore, based on the comparison operation of the first favorites list and the target favorites list, it can be determined that at least one content to be updated in the first favorites list needs to be synchronized.
[0063] The content to be updated may include description information associated with the media content, the type of the collection operation, the operation time, the last browsing time triggered by the user for the media content, the processing action for the collection data corresponding to the media content, etc. The processing action may be any one of a data update action, a data deletion action, and a data addition action.
[0064] Furthermore, at least one content to be updated may be sent to the server, so that the server performs a content update operation on the first favorites list based on the at least one content to be updated, so as to maintain a more comprehensive favorites list in the server.
[0065] As an implementable manner, after completing the data synchronization operation on the first favorites list, the favorites data of all clients associated with the user may be synchronized based on the first favorites list. For example, the synchronization content corresponding to the client may be determined based on the first favorites list and the favorites lists maintained by each client, and the synchronization content may be sent to the client so that the client may perform data synchronization operation.
[0066] Optionally, based on any of the above embodiments, before step 201, the method further includes:
[0067] In response to an installation operation on the client, a first favorites list is obtained from the server, and the first favorites list is determined as the second favorites list.
[0068] or,
[0069] In response to the last favorites list update operation, an update operation is performed on the favorites list currently stored in the client based on the list update information corresponding to the last favorites list update operation to obtain the second favorites list.
[0070] In this embodiment, the client can maintain a local favorites list. The second favorites list can be the first favorites list pulled from the server when the client first installs. Alternatively, the second favorites list can be a favorites list after multiple favorites list update operations are performed.
[0071] Optionally, in response to an installation operation on the client, a full first favorites list maintained by the server may be acquired from the server, and the first favorites list may be determined as the second favorites list.
[0072] Alternatively, in response to the last favorites list update operation, an update operation is performed on the favorites list currently stored in the client based on the list update information corresponding to the last favorites list update operation to obtain a second favorites list.
[0073] The media content processing method provided in this embodiment maintains a full first favorites list in the backend server in advance, and each client associated with the user can upload favorites data to the first favorites list. Therefore, the second favorites list of each client can be synchronized with the favorites data based on the full first favorites list. In addition, when the user performs a favorites operation on the client, at least one favorites operation triggered by the user since the last favorites list update operation can be obtained. When the preset synchronization conditions are met, the list update information from the last favorites list update operation to the present can be obtained from the server. The second favorites list of the client is updated based on the list update information to obtain the target favorites list. Then, at least one content to be updated can be determined based on the first favorites list and the target favorites list, and the at least one content to be updated can be sent to the server, so that the server performs a content update operation on the first favorites list based on the at least one content to be updated. By only transmitting data for the incremental content to be updated since the last favorites list update operation, the data transmission amount can be reduced on the basis of accurately synchronizing the favorites data, and the efficiency of content synchronization can be effectively improved.
[0074] Optionally, based on any of the above embodiments, step 202 includes:
[0075] In response to the network to which the current client is connected satisfying a preset condition, and the interval between a current timestamp and a timestamp corresponding to a previous favorites list update operation reaches a preset time interval threshold, newly added list update information of a pre-stored first favorites list within the time interval is obtained from a preset server.
[0076] or,
[0077] In response to the network to which the current client is connected satisfying a preset condition and in response to the user triggering a preset control in the current client, newly added list update information of the pre-stored first favorite list within the time interval is obtained from a preset server.
[0078] In this embodiment, in order to realize the automatic synchronization operation of the favorites data, a synchronization condition may be preset. When the synchronization condition is met, the list update information newly added to the pre-stored first favorites list within the time interval is obtained from the preset server.
[0079] Optionally, when the user collects media content in an offline state, it is necessary to perform a data synchronization operation when the network is unobstructed.
[0080] Therefore, the preset synchronization condition can be that the network to which the current client is connected meets the preset condition, and the interval between the current timestamp and the timestamp corresponding to the last favorites list update operation reaches the preset time interval threshold, and the pre-stored first favorites list newly added list update information within the time interval is obtained from the preset server. Among them, the preset condition can be that there is a network connection, or the network speed reaches a preset speed threshold, etc. The time interval threshold can be set by the user according to actual needs, or can also be a preset experience value, for example, it can be 30 minutes.
[0081] For example, if the current network is unobstructed and the time since the last favorites list update operation exceeds half an hour, the pre-stored list update information of the first favorites list added within the time interval can be obtained from the preset server to implement data synchronization operation.
[0082] Alternatively, the preset synchronization condition may be that the network connected to the current client satisfies the preset condition, and in response to the user triggering the preset control in the current client, the list update information newly added to the pre-stored first favorite list within the time interval is obtained from the preset server. The preset condition may be that there is a network connection, or that the network speed reaches a preset speed threshold, etc. The preset control may be a personal homepage control, a favorites control, etc.
[0083] For example, if the current network is unobstructed and the user triggers the favorites control, the list update information newly added to the pre-stored first favorites list within the time interval can be obtained from the preset server to implement the data synchronization operation.
[0084] The media content processing method provided in this embodiment pre-sets synchronization conditions so that after the client is connected to the network, when the interval between the current timestamp and the timestamp corresponding to the last favorites list update operation reaches a preset time interval threshold, or when the user triggers a specified control, the list update information can be acquired to achieve synchronization of favorites data among multiple devices, and timely synchronization of favorites data generated in an offline phase can be achieved.
[0085] Further, based on any of the above embodiments, step 204 includes:
[0086] For each favorite data in the target favorite list, if the first favorite list does not include the favorite data, the favorite data is added to the first favorite list to be determined as the content to be updated.
[0087] For each collection data existing in both the first collection list and the target collection list, if the modification time of the collection data in the first collection list is less than the modification time of the collection data in the target collection list, an update operation will be performed on the collection data in the first collection list based on the modification information associated with the collection data in the target collection list to determine it as the content to be updated.
[0088] For each favorite data in the first favorite list, if the favorite data does not exist in the target favorite list, the favorite data in the first favorite list is deleted and determined as the content to be updated.
[0089] In this embodiment, the to-be-updated content that needs to be synchronized in the first favorite list may be determined by comparing the first favorite list with the second favorite list.
[0090] Optionally, for each favorite data in the target favorite list, if the favorite data is not included in the first favorite list, the favorite data is added to the first favorite list and determined as content to be updated. For example, a user can trigger a favorite operation for media content on the current device offline, and perform a data synchronization operation when the network is unobstructed and the preset synchronization conditions are met. At this time, the data in the target favorite list may be newer and more comprehensive, so if a favorite data exists in the target favorite list but does not exist in the first favorite list, the favorite data can be added to the first favorite list. Therefore, adding the favorite data to the first favorite list can be determined as content to be updated.
[0091] Optionally, for each favorite data that exists in both the first favorite list and the target favorite list, if the modification time of the favorite data in the first favorite list is less than the modification time of the favorite data in the target favorite list, then the update operation on the favorite data in the first favorite list based on the modification information associated with the favorite data in the target favorite list is determined as the content to be updated. For example, there are favorite data associated with media content A in both the first favorite list and the target favorite list. However, during offline browsing, the user can perform grouping operations on the favorite data associated with media content A. When the synchronization conditions are met, if it is detected that the modification time of the favorite data in the first favorite list is less than the modification time of the favorite data in the target favorite list, then the favorite data in the first favorite list can be updated based on the data in the target favorite list, so the update operation on the favorite data in the first favorite list based on the modification information associated with the favorite data in the target favorite list can be determined as the content to be updated.
[0092] Optionally, for each favorite data in the first favorite list, if the favorite data does not exist in the target favorite list, the favorite data in the first favorite list will be deleted and determined as the content to be updated. For example, the user can trigger a favorite operation for media content on the current device offline, and perform a data synchronization operation when the network is unobstructed and the preset synchronization conditions are met. At this time, the data in the target favorite list may be newer and more comprehensive. Therefore, if there is a favorite data in the first favorite list and its status in the target favorite list has not been deleted, the favorite data in the first favorite list can be deleted synchronously.
[0093] The media content processing method provided in this embodiment can accurately determine the updated content that needs to be synchronized in the first favorite list by comparing the first favorite list and the second favorite list. And because the target favorite list is obtained after synchronizing the second favorite list based on the list update information, it can effectively avoid data conflicts with other devices, thereby improving the accuracy of favorite data synchronization.
[0094] Further, based on any of the above embodiments, step 204 includes:
[0095] For each content to be updated, the associated fields of the content to be updated are determined based on a preset data structure, wherein the associated fields include description information of the media content associated with the content to be updated, modification information of the collection operation on the media content, browsing information on the media content, and an action type, and the action type includes any one of an update type, a deletion type, and an addition type.
[0096] The content to be transmitted is constructed according to the data structure and the associated fields, and the content to be transmitted is sent to the server.
[0097] In this embodiment, in order to facilitate the server to perform an update operation on the first favorites list based on the content to be transmitted, a data structure may be preset and the data transmission operation may be performed according to the data structure.
[0098] Optionally, for each content to be updated, the associated fields of the content to be updated are determined based on a preset data structure, wherein the associated fields include description information of the media content associated with the content to be updated, modification information of the collection operation on the media content, browsing information on the media content, and action type, wherein the action type includes any one of an update type, a deletion type, and an addition type. The content to be transmitted is constructed according to the data structure and the associated fields, and the content to be transmitted is sent to the server.
[0099] Figure 3 A schematic diagram of a data structure provided in an embodiment of the present disclosure, such as Figure 3As shown, the content to be transmitted 31 may include description information 32 of the media content, and the description information 32 includes but is not limited to the media content identification, the media content type, etc.; modification information 33 for the collection operation of the media content, wherein the modification information 33 includes but is not limited to the timestamp of the last modification operation; browsing information 34 for the media content, wherein the browsing information 34 includes but is not limited to the last consumption time of the media content by the user; action type 35, and the action type 35 includes any one of an update type, a deletion type, and an addition type.
[0100] The media content processing method provided in this embodiment pre-sets a data structure so that after obtaining the content to be updated, the content to be transmitted can be constructed based on the data structure, and the cause and time of the updated content can be described, thereby enabling the server to accurately synchronize the collection data.
[0101] Further, based on any of the above embodiments, step 203 includes:
[0102] For each favorite data associated with the list update information, if the modification time of the favorite data in the list update information is later than the modification time of the favorite data in the second favorite list, the favorite data in the second favorite list is replaced based on the favorite data in the list update information.
[0103] For each favorite data associated with the list update information, if the state of the favorite data in the second favorite list is deleted, deleting the favorite data in the first favorite list is determined as the content to be updated.
[0104] For each collection data associated with the list update information, if the browsing time of the media content associated with the collection data in the list update information is later than the browsing time of the media content associated with the collection data in the second collection list, the browsing data of the media content associated with the collection data in the second collection list is replaced based on the list update information.
[0105] For each favorite data associated with the list update information, if the second favorite list does not include the favorite data, the favorite data is added to the second favorite list.
[0106] In this embodiment, after obtaining the list update information from the server since the last list update operation, the second favorites list may be updated based on the list update information to avoid conflicts in favorites data among multiple devices.
[0107] Optionally, for each favorite data associated with the list update information, if the modification time of the favorite data in the list update information is later than the modification time of the favorite data in the second favorite list, a replacement operation is performed on the favorite data in the second favorite list based on the favorite data in the list update information. For example, a user performs a favorite data modification operation on a first device and a current device respectively. The time of the modification operation associated with the first device is later than that of the current device, and the first device has generated content to be updated based on the modification operation and uploaded it to the server. Due to offline operation, the current device has not synchronized the historically generated favorite data to the server. Therefore, after obtaining the list update information, if it is determined that the modification time of the favorite data generated by the first device stored in the server is later than the modification time of the current device, the favorite data stored in the server is more accurate. Therefore, the favorite data in the second favorite list can be replaced based on the favorite data in the list update information.
[0108] Optionally, when the favorite data in the current device is synchronized to the server, for each favorite data associated with the list update information, if the status of the favorite data in the second favorite list is deleted, the favorite data in the first favorite list is deleted and determined as the content to be updated. If there is a favorite data in the list update information, but it has been deleted by the user in the second favorite list, the favorite data in the first favorite list can be deleted synchronously. Therefore, the favorite data in the first favorite list can be determined as the content to be updated, so that the content to be updated can be transmitted to the server, so that the server can delete the favorite data based on the content to be updated.
[0109] Optionally, when the favorite data in the current device is synchronized to the server, for each favorite data associated with the list update information, if the browsing time of the media content associated with the favorite data in the list update information is later than the browsing time of the media content associated with the favorite data in the second favorite list, the browsing data of the media content associated with the favorite data in the second favorite list is replaced based on the list update information.
[0110] Optionally, for each favorite data associated with the list update information, if the second favorite list does not include the favorite data, the favorite data is added to the second favorite list. For example, if a user triggers a favorite operation on a media content in a first device and synchronizes the favorite operation to the first favorite list, but the favorite data is not synchronized in the current device, the favorite data can be added to the second favorite list of the current device.
[0111] The media content processing method provided in this embodiment can accurately update the second favorites list based on the list update information by comparing the status, modification time, browsing time and other information of each favorites data after obtaining the list update information, so as to avoid data conflicts caused by the favorites data update operation between multiple devices.
[0112] Figure 4 A flow chart of a media content processing method provided by an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the method includes:
[0113] Step 401: Obtain at least one content to be updated sent by at least one client, wherein the content to be updated is obtained by calculation based on the media content processing method described in any one of the above embodiments.
[0114] Step 402: performing a favorites list update operation on a pre-stored first favorites list according to the at least one content to be updated to obtain an updated first favorites list, wherein the first favorites list includes all historical favorites data generated for media content by all clients associated with the user.
[0115] The execution subject of this embodiment is a media content processing device, which can be coupled to a server. The server is in communication connection with at least one terminal device, and a client for browsing and collecting media content can be pre-installed in the terminal device.
[0116] In this embodiment, the user can trigger a collection operation on the media content when the client is offline or online, and when the preset synchronization conditions are met, determine the content to be updated between the last update timestamp and the current timestamp, and send the content to be updated to the server to maintain a complete and accurate first collection list on the server.
[0117] Optionally, the server can obtain at least one content to be updated sent by a preset client in the terminal device, wherein the content to be updated may include description information of the media content associated with the collection operation triggered by the user, modification information of the collection operation on the media content, browsing information on the media content, and action type, and the action type includes but is not limited to update operation, deletion operation, addition operation, etc.
[0118] Furthermore, a first favorites list may be pre-stored in the server, and the first favorites list includes the full amount of historical favorites data generated by all the clients associated with the user for the media content. The client associated with the user may send the content to be updated to the server when the preset synchronization condition is met, and the server may establish and maintain a full and accurate first favorites list based on the content to be updated sent by each client. Therefore, after obtaining at least one content to be updated, the server may perform a favorites list update operation on the pre-stored first favorites list based on the at least one content to be updated, and obtain an updated first favorites list.
[0119] The media content processing method provided in this embodiment can maintain an accurate and comprehensive collection data list in the backend server by updating the first collection list based on the content to be updated after acquiring the content to be updated, and can further implement data synchronization between multiple devices based on the first collection list.
[0120] Further, based on any of the above embodiments, the historical collection data is associated with the operation type corresponding to each collection operation. After step 402, the method further includes:
[0121] The updated first favorites list is classified according to preset operation types to obtain sublists corresponding to each operation type, wherein the operation type includes any one of a favorites type, a grouping type, and a mark adding type.
[0122] For the sub-list corresponding to each operation type, the sub-list is sent to a preset storage path corresponding to the operation type for data storage.
[0123] In this embodiment, the collection operation triggered by the user on the media content may include a collection operation, a grouping operation on the collected content, and a tagging operation on the collected content. The historical collection data is associated with the operation type corresponding to each collection operation, and the operation type includes any one of the collection type, the grouping type, and the tagging type. Therefore, in order to facilitate the management of historical collection data of different operation types, the storage paths corresponding to the different operation types can be pre-set, so that the historical collection data corresponding to the different operation types can be stored and managed in a targeted manner based on the storage paths corresponding to the different operation types.
[0124] Optionally, after obtaining the full first favorites list, the updated first favorites list is classified according to the preset operation type to obtain a sublist corresponding to each operation type. For the sublist corresponding to each operation type, the sublist is sent to the storage path corresponding to the preset operation type for data storage.
[0125] Figure 5 A schematic diagram of an application scenario provided by an embodiment of the present disclosure, such as Figure 5 As shown, after obtaining the updated first favorites list 51, the favorites data can be classified according to the operation type associated with each favorite data. The classification results are stored in the storage paths corresponding to the preset operation types for data storage. The storage paths corresponding to the preset operation types include the favorites service path 52, the grouping service path 53, and the tagging service path 54.
[0126] The media content processing method provided in this embodiment can improve the management efficiency of the first favorites list by classifying and storing the favorite data in the first favorites list based on the operation type.
[0127] Further, based on any of the above embodiments, each historical collection data is associated with a modification time. After step 402, the following is further included:
[0128] For each historical collection data in the updated first collection list, the historical collection data is stored in a chain according to the modification time and preset format associated with the historical collection data to obtain a collection data chain, wherein the preset format includes the modification time, media content identification information, and the collection operation triggered for the media content.
[0129] In this embodiment, each historical collection data is associated with a modification time. To facilitate subsequent data location and reading, for each historical collection data in the updated first collection list, the historical collection data is chain-stored according to the modification time associated with the historical collection data and a preset format to obtain a collection data chain, wherein the preset format includes the modification time, media content identification information, and a collection operation triggered on the media content.
[0130] Figure 6 A schematic diagram of a collection data link provided by an embodiment of the present disclosure, such as Figure 6 As shown, the collection data chain 61 can store the historical collection data 62 in a chain in chronological order. The historical collection data 62 can include the modification time, action type and at least one associated media content associated with the collection operation.
[0131] Further, based on any of the above embodiments, the method further includes:
[0132] A content acquisition request sent by a client is acquired, wherein the content acquisition request includes a target timestamp corresponding to a last favorites list update operation performed by the client.
[0133] The time interval between the current timestamp and the target timestamp is determined.
[0134] According to the time interval, list update information matching the time interval is obtained in the collection data chain.
[0135] The list update information is sent to the client, so that the client performs a favorites list update operation on the second favorites list pre-stored in the client based on the list update information.
[0136] In this embodiment, after the historical collection data is chain-stored in chronological order in advance, the list update information within a specified time interval can be located and obtained based on the collection data chain.
[0137] Optionally, the client may send a content acquisition request to the server. The content acquisition request may be triggered when the client is first installed, or may be triggered when the client meets a preset synchronization condition. The content acquisition request may carry a target timestamp corresponding to the last favorites list update operation performed by the client. When the client is first installed, the target timestamp may be the current timestamp.
[0138] Furthermore, since the historical favorite data is chain-stored in chronological order in advance to obtain a favorite data chain, the time interval between the current timestamp and the target timestamp can be determined. According to the time interval, the list update information matching the time interval is obtained in the favorite data chain. Thus, the operation of obtaining the incremental favorite data within the specified time interval can be realized. Then, the list update information can be sent to the client, so that the client performs a favorite list update operation on the second favorite list pre-stored by the client based on the list update information.
[0139] The media content processing method provided in this embodiment stores each historical collection data in a chain in chronological order, so that the list update information within a specified time interval can be located and fed back to the client based on the collection data chain, so that the client can perform accurate data synchronization operations based on the list update information.
[0140] Further, based on any of the above embodiments, the content to be updated includes description information of the media content, modification information of the collection operation on the media content, browsing information on the media content, and action type.
[0141] Step 402 includes:
[0142] For each content to be updated, target media content associated with the content to be updated is determined according to the description information of the media content.
[0143] A data update operation is performed on the historical collection data associated with the target media content based on the action type, wherein the action type includes any one of an update type, a deletion type, and an addition type.
[0144] In this embodiment, after the content to be updated is acquired, the first favorites list may be updated based on the content to be updated.
[0145] Optionally, the content to be updated includes description information of the media content, modification information of the collection operation for the media content, browsing information for the media content, and action type. For each content to be updated, the target media content associated with the content to be updated can be determined according to the description information of the media content. The description information may be identification information, type, etc. of the media content.
[0146] Furthermore, after locating the media content that needs to synchronize the collection data, the historical collection data associated with the target media content can be updated based on the action type, wherein the action type includes any one of an update type, a delete type, and an add type. For example, the existing historical collection data can be deleted; the existing historical collection data can be updated according to the parameters in the content to be updated; the collection data can be added to the first collection list based on the content to be updated, etc.
[0147] For example, the content to be updated may be deleting the collection data associated with the book media content A. Therefore, after locating the book media content A in the first collection list based on the description information, the collection data associated with it may be deleted. Alternatively, the updated content may be adding the short play media content B to the collection. Therefore, the short play media content B and its associated collection time, browsing time, and other content may be added to the first collection list.
[0148] The media content processing method provided in this embodiment can maintain an accurate and comprehensive collection data list in the backend server by updating the first collection list based on the content to be updated after acquiring the content to be updated, and can further implement data synchronization between multiple devices based on the first collection list.
[0149] Figure 7 A structural diagram of a media content processing device provided by an embodiment of the present disclosure, such as Figure 7As shown, the device includes: an acquisition module 71, a synchronization module 72, an update module 73 and a sending module 74. The acquisition module 71 is used to acquire at least one collection operation triggered by a user for at least one media content within a time interval, wherein the time interval is the interval between the current timestamp and the timestamp corresponding to the last collection list update operation, wherein the collection operation is acquired after the authorization of the user. The synchronization module 72 is used to, in response to satisfying a preset synchronization condition, acquire the list update information newly added to the pre-stored first collection list within the time interval from a preset server, wherein the first collection list includes the full amount of historical collection data generated for the media content by all clients associated with the user, wherein the full amount of historical collection data is uploaded to the server after the authorization of the user. The update module 73 is used to perform a collection list update operation on the second collection list corresponding to the current client based on the list update information, and obtain an updated target collection list. The sending module 74 is used to determine at least one content to be updated based on the first collection list and the target collection list, and send the at least one content to be updated to the server, so that the server performs a content update operation on the first collection list based on the at least one content to be updated.
[0150] Further, based on any of the above embodiments, the synchronization module is used to: in response to the network connected to the current client meeting a preset condition, and the interval between the current timestamp and the timestamp corresponding to the last favorites list update operation reaches a preset time interval threshold, obtain the pre-stored list update information of the first favorites list newly added within the time interval from a preset server. Alternatively, in response to the network connected to the current client meeting a preset condition, and in response to the user triggering a preset control in the current client, obtain the pre-stored list update information of the first favorites list newly added within the time interval from a preset server.
[0151] Further, based on any of the above embodiments, the sending module is used to: for each favorite data in the target favorite list, if the favorite data is not included in the first favorite list, add the favorite data to the first favorite list as the content to be updated. For each favorite data in both the first favorite list and the target favorite list, if the modification time of the favorite data in the first favorite list is less than the modification time of the favorite data in the target favorite list, update the favorite data in the first favorite list based on the modification information associated with the favorite data in the target favorite list and determine it as the content to be updated. For each favorite data in the first favorite list, if the favorite data does not exist in the target favorite list, delete the favorite data in the first favorite list and determine it as the content to be updated.
[0152] Further, based on any of the above embodiments, the sending module is used to: for each content to be updated, determine the associated fields of the content to be updated based on a preset data structure, wherein the associated fields include description information of the media content associated with the content to be updated, modification information of the collection operation for the media content, browsing information for the media content, and action type, wherein the action type includes any one of an update type, a deletion type, and an addition type. The content to be transmitted is constructed according to the data structure and the associated fields, and the content to be transmitted is sent to the server.
[0153] Further, based on any of the above embodiments, the update module is used to: for each favorite data associated with the list update information, if the modification time of the favorite data in the list update information is later than the modification time of the favorite data in the second favorite list, then replace the favorite data in the second favorite list based on the favorite data in the list update information. For each favorite data associated with the list update information, if the status of the favorite data in the second favorite list is deleted, then delete the favorite data in the first favorite list as the content to be updated. For each favorite data associated with the list update information, if the browsing time of the media content associated with the favorite data in the list update information is later than the browsing time of the media content associated with the favorite data in the second favorite list, then replace the browsing data of the media content associated with the favorite data in the second favorite list based on the list update information. For each favorite data associated with the list update information, if the favorite data is not included in the second favorite list, then add the favorite data to the second favorite list.
[0154] Further, based on any of the above embodiments, the device further comprises: an acquisition module, configured to, in response to an installation operation on the client, acquire a first favorites list from the server and determine the first favorites list as the second favorites list. Alternatively, an update module, configured to, in response to a last favorites list update operation, update the favorites list stored in the current client based on the list update information corresponding to the last favorites list update operation to obtain the second favorites list.
[0155] Figure 8 A structural diagram of a media content processing device provided by an embodiment of the present disclosure, such as Figure 8As shown, the device includes: a data acquisition module 81 and a processing module 82. The data acquisition module 81 is used to acquire at least one content to be updated sent by at least one client, wherein the content to be updated is calculated by the media content processing device described in any of the above embodiments. The processing module 82 is used to perform a collection list update operation on a pre-stored first collection list according to the at least one content to be updated, and obtain an updated first collection list, wherein the first collection list includes the full amount of historical collection data generated by all clients associated with the user for the media content.
[0156] Further, based on any of the above embodiments, the historical collection data is associated with an operation type corresponding to each collection operation. The device further includes: a classification module, configured to classify the updated first collection list according to a preset operation type to obtain a sublist corresponding to each operation type, wherein the operation type includes any one of a collection type, a grouping type, and a tagging type. A storage module, configured to send the sublist corresponding to each operation type to a storage path corresponding to the preset operation type for data storage.
[0157] Further, based on any of the above embodiments, each historical collection data is associated with a modification time. The device further includes: a storage module, which is used to chain-store the historical collection data according to the modification time associated with the historical collection data and a preset format for each historical collection data in the updated first collection list, to obtain a collection data chain, wherein the preset format includes the modification time, media content identification information, and a collection operation triggered for the media content.
[0158] Further, based on any of the above embodiments, the device also includes: a data acquisition module, used to acquire a content acquisition request sent by a client, wherein the content acquisition request includes a target timestamp corresponding to the last favorites list update operation performed by the client. A determination module, used to determine the time interval between a current timestamp and the target timestamp. A processing module, used to acquire list update information matching the time interval in the favorites data chain according to the time interval. A transmission module, used to send the list update information to the client, so that the client performs a favorites list update operation on a second favorites list pre-stored by the client based on the list update information.
[0159] Further, based on any of the above embodiments, the content to be updated includes description information of the media content, modification information of the collection operation for the media content, browsing information for the media content, and action type. The processing module is used to: for each content to be updated, determine the target media content associated with the content to be updated according to the description information of the media content. Perform a data update operation on the historical collection data associated with the target media content based on the action type, wherein the action type includes any one of an update type, a deletion type, and an addition type.
[0160] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0161] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the media content processing method described in any of the above embodiments is implemented.
[0162] In order to implement the above embodiments, the embodiments of the present disclosure further provide a computer program product, including a computer program, and when the computer program is executed by a processor, the media content processing method as described in any of the above embodiments is implemented.
[0163] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device, including: a processor and a memory;
[0164] The memory stores computer-executable instructions;
[0165] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the media content processing method as described in any of the above embodiments.
[0166] Fig. 9 The electronic device 900 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0167] like Fig. 9 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0168] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0169] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0170] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, 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 may 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 or 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 disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0171] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0172] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0173] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0174] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0175] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0176] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0177] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 foregoing.
[0178] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0179] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0180] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, 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. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A media content processing method, characterized in that: include: Acquire at least one favorite operation triggered by a user on at least one media content within a time interval, wherein the time interval is an interval between a current timestamp and a timestamp corresponding to a previous favorite list update operation, wherein the favorite operation is acquired after being authorized by the user; In response to satisfying a preset synchronization condition, obtaining, from a preset server, list update information of a pre-stored first favorite list newly added within the time interval, wherein the first favorite list includes all historical favorite data generated for media content by all clients associated with the user, wherein the full historical favorite data is uploaded to the server after being authorized by the user; Based on the list update information, a favorites list update operation is performed on the second favorites list corresponding to the current client to obtain an updated target favorites list; At least one to-be-updated content is determined based on the first favorite list and the target favorite list, and the at least one to-be-updated content is sent to the server, so that the server performs a content update operation on the first favorite list based on the at least one to-be-updated content.
2. The method according to claim 1, characterized in that In response to satisfying a preset synchronization condition, obtaining, from a preset server, list update information of the pre-stored first favorite list newly added within the time interval, including: In response to the network to which the current client is connected satisfying a preset condition, and the interval between the current timestamp and the timestamp corresponding to the last favorites list update operation reaches a preset time interval threshold, obtaining, from a preset server, list update information newly added to the pre-stored first favorites list within the time interval; or, In response to the network to which the current client is connected satisfying a preset condition and in response to the user triggering a preset control in the current client, newly added list update information of the pre-stored first favorite list within the time interval is obtained from a preset server.
3. The method according to claim 1, characterized in that The determining at least one to-be-updated content based on the first favorites list and the target favorites list includes: For each favorite data in the target favorite list, if the first favorite list does not include the favorite data, adding the favorite data to the first favorite list to determine it as the content to be updated; For each favorite data in both the first favorite list and the target favorite list, if the modification time of the favorite data in the first favorite list is less than the modification time of the favorite data in the target favorite list, an update operation is performed on the favorite data in the first favorite list based on the modification information associated with the favorite data in the target favorite list to determine it as the content to be updated; For each favorite data in the first favorite list, if the favorite data does not exist in the target favorite list, the favorite data in the first favorite list is deleted and determined as the content to be updated.
4. The method according to claim 3, characterized in that The sending the at least one content to be updated to the server includes: For each content to be updated, determining the associated fields of the content to be updated based on a preset data structure, wherein the associated fields include description information of the media content associated with the content to be updated, modification information of the collection operation for the media content, browsing information for the media content, and an action type, wherein the action type includes any one of an update type, a deletion type, and an addition type; The content to be transmitted is constructed according to the data structure and the associated fields, and the content to be transmitted is sent to the server.
5. The method according to claim 1, characterized in that The performing a favorites list updating operation on the second favorites list corresponding to the current client based on the list update information includes: For each favorite data associated with the list update information, if the modification time of the favorite data in the list update information is later than the modification time of the favorite data in the second favorite list, then replace the favorite data in the second favorite list based on the favorite data in the list update information; For each favorite data associated with the list update information, if the state of the favorite data in the second favorite list is deleted, deleting the favorite data in the first favorite list is determined as the content to be updated; For each favorite data associated with the list update information, if the browsing time of the media content associated with the favorite data in the list update information is later than the browsing time of the media content associated with the favorite data in the second favorite list, then replacing the browsing data of the media content associated with the favorite data in the second favorite list based on the list update information; For each favorite data associated with the list update information, if the second favorite list does not include the favorite data, the favorite data is added to the second favorite list.
6. The method according to any one of claims 1 to 5, characterized in that: Before performing a favorites list update operation on the second favorites list corresponding to the current client based on the list update information, the method further includes: In response to an installation operation on the client, obtaining a first favorites list from the server, and determining the first favorites list as the second favorites list; or, In response to the last favorites list update operation, an update operation is performed on the favorites list currently stored in the client based on the list update information corresponding to the last favorites list update operation to obtain the second favorites list.
7. A media content processing method, characterized in that: include: Acquire at least one content to be updated sent by at least one client, wherein the content to be updated is calculated based on the media content processing method according to any one of claims 1 to 6; A favorites list update operation is performed on the pre-stored first favorites list according to the at least one content to be updated to obtain an updated first favorites list, wherein the first favorites list includes all historical favorites data generated for media content by all clients associated with the user.
8. The method according to claim 7, characterized in that The historical collection data is associated with an operation type corresponding to each collection operation; after performing a collection list update operation on the pre-stored first collection list according to the at least one content to be updated and obtaining the updated first collection list, the method further includes: Classify the updated first favorites list according to preset operation types to obtain sublists corresponding to each operation type, wherein the operation type includes any one of a favorites type, a grouping type, and a mark adding type; For the sub-list corresponding to each operation type, the sub-list is sent to a preset storage path corresponding to the operation type for data storage.
9. The method according to claim 7, characterized in that: Each historical collection data is associated with a modification time; after performing a collection list update operation on the pre-stored first collection list according to the at least one content to be updated and obtaining the updated first collection list, the method further includes: For each historical collection data in the updated first collection list, the historical collection data is stored in a chain according to the modification time and preset format associated with the historical collection data to obtain a collection data chain, wherein the preset format includes the modification time, media content identification information, and the collection operation triggered for the media content.
10. The method according to claim 9, characterized in that The method further comprises: Obtaining a content acquisition request sent by a client, wherein the content acquisition request includes a target timestamp corresponding to a last favorites list update operation performed by the client; Determine a time interval between a current timestamp and the target timestamp; Acquire list update information matching the time interval in the collection data chain according to the time interval; The list update information is sent to the client, so that the client performs a favorites list update operation on the second favorites list pre-stored in the client based on the list update information.
11. The method according to any one of claims 7 to 9, characterized in that: The content to be updated includes description information of the media content, modification information of the collection operation for the media content, browsing information for the media content, and action type; The step of performing a favorites list updating operation on the pre-stored first favorites list according to the at least one content to be updated to obtain an updated first favorites list includes: For each content to be updated, determining the target media content associated with the content to be updated according to the description information of the media content; A data update operation is performed on the historical collection data associated with the target media content based on the action type, wherein the action type includes any one of an update type, a deletion type, and an addition type.
12. A media content processing device, characterized in that: include: An acquisition module, configured to acquire at least one favorite operation triggered by a user on at least one media content within a time interval, wherein the time interval is an interval between a current timestamp and a timestamp corresponding to a previous favorite list update operation, wherein the favorite operation is acquired after being authorized by the user; a synchronization module, configured to obtain, in response to a preset synchronization condition being met, list update information newly added to a pre-stored first favorite list within the time interval from a preset server, wherein the first favorite list includes all historical favorite data generated for media content by all clients associated with the user, wherein the full historical favorite data is uploaded to the server after being authorized by the user; An updating module, configured to perform a favorites list updating operation on a second favorites list corresponding to the current client based on the list updating information, and obtain an updated target favorites list; The sending module is used to determine at least one content to be updated based on the first favorite list and the target favorite list, and send the at least one content to be updated to the server, so that the server performs a content update operation on the first favorite list based on the at least one content to be updated.
13. A media content processing device, characterized in that: include: A data acquisition module, used to acquire at least one content to be updated sent by at least one client, wherein the content to be updated is obtained by calculation based on the media content processing device according to claim 12; The processing module is used to perform a collection list update operation on the pre-stored first collection list according to the at least one content to be updated to obtain an updated first collection list, wherein the first collection list includes the full amount of historical collection data generated by all clients associated with the user for the media content.
14. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the media content processing method as described in any one of claims 1 to 6 or 7 to 11.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the media content processing method as described in any one of claims 1 to 6 or 7 to 11 is implemented.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the media content processing method according to any one of claims 1 to 6 or 7 to 11 is implemented.
Citation Information
Patent Citations
Method, device and system for updating data based on incremental data
CN103002010A
Server-based data updating method and server
CN103002011A
Song list updating method, device, terminal and storage medium
CN110377784A
Collected music synchronization method and device
CN113360509A
Integrating purchase history and metadata across devices
US20140074663A1