CN111488483B - Method, device, terminal and non-transitory computer readable storage medium for updating a library - Google Patents

Method, device, terminal and non-transitory computer readable storage medium for updating a library Download PDF

Info

Publication number
CN111488483B
CN111488483B CN202010301377.6A CN202010301377A CN111488483B CN 111488483 B CN111488483 B CN 111488483B CN 202010301377 A CN202010301377 A CN 202010301377A CN 111488483 B CN111488483 B CN 111488483B
Authority
CN
China
Prior art keywords
song
library
updated
list
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010301377.6A
Other languages
Chinese (zh)
Other versions
CN111488483A (en
Inventor
杨华东
生羽亭
于绞龙
王盟盟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Thunderstone Technology Co ltd
Original Assignee
Beijing Thunderstone Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Thunderstone Technology Co ltd filed Critical Beijing Thunderstone Technology Co ltd
Priority to CN202010301377.6A priority Critical patent/CN111488483B/en
Publication of CN111488483A publication Critical patent/CN111488483A/en
Application granted granted Critical
Publication of CN111488483B publication Critical patent/CN111488483B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/61Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the field of computer networks and databases, and provides a method, a device, a terminal and a non-transitory computer readable storage medium for updating a music library so as to save flow and update the music library in time. The method comprises the following steps: periodically and sequentially performing new song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on the original song library according to song related resource information requested from the cloud to obtain a primary updated song library; sorting the song list and the singer list from the primary updated song library to obtain a sorted updated song library; and checking the updated music library after finishing, and if no error exists, taking the updated music library after finishing as a final updated music library. The technical scheme provided by the application has the advantages that the consumed flow is smaller when the yeast library is updated, and the yeast library can be updated in time.

Description

Method, device, terminal and non-transitory computer readable storage medium for updating a library
Technical Field
The present application relates to the field of computer networks and databases, and in particular, to a method, an apparatus, a terminal, and a non-transitory computer readable storage medium for updating a library.
Background
With the acceleration of the pace of modern urban life, people find some entertainment activities to decompress, wherein, KTV singing is a common mode. Current KTV systems maintain a database of songs, i.e., libraries, that store a vast number of songs for selection by users to send KTV songs. For users, singing some old songs is simply an option, but some users prefer to be able to select some songs that are currently popular to challenge themselves. Therefore, the update of the library of the KTV system is particularly important.
The existing method for updating the KTV library is to directly perform an upgrade operation on the library, specifically to configure a high-version library at a server through an interface, then download the whole high-version library and upgrade the whole high-version library to replace the original library so as to achieve the aim of updating data. However, this way of updating KTV treasury has the following drawbacks:
1) The music library is not updated timely, because the music library with high version is to be replaced with the original music library as a whole, and the music library with high version is not provided at any time;
2) Flow is wasted because, when the original library is replaced with the whole of the high-version library, some songs are not needed to be replaced.
Disclosure of Invention
The application provides a method, a device, a terminal and a non-transitory computer readable storage medium for updating a music library, so as to save flow and update the music library in time.
In one aspect, the present application provides a method for updating a library, the method comprising:
periodically and sequentially performing new song data insertion, cold song data deletion, singer information insertion and song shelving tasks on an original song library according to song related resource information requested from a cloud to obtain a preliminary updated song library, wherein the song related resource information comprises all song order amount resources, new song resources, song languages, song ranking list resources and singer names;
arranging a song list and a singer list on the primary updated song library to obtain an arranged updated song library;
and checking the tidied updated library, and if no error exists, taking the tidied updated library as a final updated library.
Specifically, according to the related resource information of the song requested from the cloud, the tasks of adding song data, deleting cold song data, inserting singer information and putting the song on the shelf are sequentially executed on the original song library to obtain a preliminary updated song library, which comprises the following steps:
inserting newly added song information and song ranking list information into the original song library according to the total song order resource, the newly added song resource and the song ranking list resource to obtain a first operation song library;
deleting cold songs of each language from the first operation library by adopting a cold gate algorithm to obtain a second operation library;
inserting singer information into the second operation library to obtain a third operation library;
and executing a song shelving task on the third operation library according to the song shelving resource information requested from the cloud to obtain the preliminary updated library.
Specifically, the inserting the newly added song information and the song ranking list information into the original song library according to the total song order resource, the newly added song resource and the song ranking list resource to obtain a first operation song library includes:
according to the total song order amount resource, the newly added song resource and the song ranking list resource, the order amount, the newly added song name and the language of the newly added song and the song ranking list information are inserted into the original song library in batch to obtain the first operation song library;
and recording the relevant information of the operation of inserting the newly added song data.
Specifically, the step of deleting the cold songs of each language from the first operation library by adopting a cold gate algorithm to obtain a second operation library comprises the following steps:
confirming languages with newly added songs;
obtaining a list to be deleted of the cold songs in each language with the newly added song according to the warehousing time of each song, the newly added song resources and all song order quantity resources;
deleting the cold songs listed in the cold song to-be-deleted list to obtain the second operation library;
and recording the related information of the operation of deleting the cool songs of each language from the first operation library.
Specifically, the performing the song shelving task on the third operation library according to the song shelving resource information requested from the cloud to obtain the preliminary updated library includes:
generating an off-shelf operation instruction according to the song off-shelf resource information requested from the cloud;
according to the putting-in operation instruction, songs corresponding to the putting-in operation instruction in a song list, a song classification list and a third-party song list of the third operation song list are processed;
and recording the related information of the operation of performing the song off-shelf task on the third operation library.
Specifically, the checking the updated music library after sorting, if there is no error, taking the updated music library after sorting as a final updated music library, including:
checking whether each operation of the newly added song data insertion, the cold song data deletion, the singer information insertion and the song taking-off task is wrong or not, and checking whether the tidied updated song library and the data thereof are wrong or not;
and if the updated music library is not wrong, determining the updated music library after finishing as the final updated music library, otherwise, discarding the updated music library after finishing.
Specifically, the method further comprises:
and in the starting-up library initialization stage, covering the final updated library with the library left when the library is updated last time according to the comparison copy condition and the upgrade replacement condition.
On the other hand, the application provides a music library updating device, which comprises:
the updating module is used for periodically executing new song data insertion, cold song data deletion, singer information insertion and song taking-off tasks on the original operation song library according to song related resource information requested from the cloud to obtain a preliminary updated song library, wherein the song related resource information comprises all song order resource, new song resource, song language, song ranking list resource and singer name;
the sorting module is used for sorting the song list and the singer list of the preliminary updated song library to obtain a sorted updated song library;
and the error detection module is used for checking the tidied updated music library, and taking the tidied updated music library as a final updated music library if no error exists.
In a third aspect, the present application provides a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method according to the above technical solution when the computer program is executed.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method of the above technical solution.
Unlike the whole technology, which downloads and upgrades the whole high version of the song library to replace the original song library, which results in untimely update of the song library and waste of flow, the technical proposal of the application only performs local and small-range operations such as newly added song data insertion, cold song data deletion, singer information insertion, song shelving task and the like on the original song library, so the consumed flow is smaller; on the other hand, local, small-scale operations are not performed until waiting for the entire database data of the cloud to be updated, but are performed periodically (e.g., daily), so that the library can be updated in time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for updating a library according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for sequentially performing new song data insertion, cold song data deletion, singer information insertion and song shelving tasks on an original song library to obtain a preliminary updated song library according to the embodiment of the present application;
FIG. 3 is a flowchart of deleting cold songs of each language from a first operation library by using a cold gate algorithm according to an embodiment of the present application to obtain a second operation library;
FIG. 4 is a flowchart of performing a song shelving task on a third operation library according to song shelving resource information requested from a cloud end, so as to obtain a preliminary updated library;
FIG. 5 is a schematic diagram of a library update apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In this specification, adjectives such as first and second may be used solely to distinguish one element or action from another element or action without necessarily requiring or implying any actual such relationship or order. Where the environment permits, reference to an element or component or step (etc.) should not be construed as limited to only one of the element, component, or step, but may be one or more of the element, component, or step, etc.
In the present specification, for convenience of description, the dimensions of the various parts shown in the drawings are not drawn in actual scale.
The application provides a method for updating a library, which is shown in fig. 1, and mainly comprises steps S101 to S103, and is described in detail as follows:
step S101: and periodically and sequentially performing new song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on the original song library according to the song related resource information requested from the cloud to obtain a primary updated song library.
In the embodiment of the application, the original song library refers to a song library before the update, that is, an object when the update of the song library is executed each time, specifically, the song library obtained after the successful update of the previous time when the update of the song library is performed, or the song library before the previous time when the update of the song library fails, and the song related resource information mainly includes all song order resource, newly added song resource, song language, song ranking list resource, singer name and other information. The above-mentioned all song order resources, that is, the information such as the order frequency and order number of each song, are first requested from the cloud server. If the request from the cloud server fails or the resources are not updated, directly analyzing all the song order resources which are downloaded from the cloud server to the local last time, and if the files for recording or storing all the song order resources do not exist locally, defaulting the order of the newly added song to 0. It should be noted that, the above-mentioned steps are performed sequentially on the original song library according to the song related resource information requested from the cloud, where the "period" may be a period of days, that is, the task is performed once a day, or a period of fixed days, or a period of one week; the period may be determined according to actual needs, and the present application is not limited thereto.
As an embodiment of the present application, periodically according to the song related resource information requested from the cloud, the tasks of adding song data, deleting cold song data, inserting singer information, and putting songs on the shelf are sequentially performed on the original song library, and the primary update of the song library may be achieved through steps S201 to S204 as illustrated in fig. 2, which are described as follows:
step S201: and periodically inserting the newly added song information and the song ranking list information into the original song library according to the total song order amount resource, the newly added song resource and the song ranking list resource to obtain a first operation song library.
The implementation of the above step S201 may specifically be: according to all song order amount resources, newly added song resources and song ranking list resources, the order amount, the newly added song names, the languages and the song ranking list information of the newly added songs are inserted into the original song library in batch to obtain a first operation song library; information about the operation of inserting the newly added song data is recorded. The newly added song resources comprise newly added song IDs or names, types, languages, initial spellings of the names, warehouse-in time, order quantity, singers corresponding to the newly added songs and the like, wherein the order quantity is obtained when relevant resource information of songs is requested from a cloud in the execution process of the step S101. It should be noted that, whether the newly added song information or the song list information is inserted, the last insertion task is preferably completed. For example, if there is a task of inserting newly-added song information and song ranking list information which are not completed last time, the task of inserting the newly-added song information and the song ranking list information last time is preferentially processed, and then newly-added song resources and song ranking list resources are requested from the cloud; if the request is successful, analyzing the newly added song resources and the song ranking list resources, and executing the operation of inserting the newly added song information and the song ranking list information in batches to the original song library, wherein if the operation of inserting is not needed, the step of inserting is skipped.
The record of the relevant information of the operation of inserting the newly added song data is to consider that each time the library is updated later, the operation of the library is conveniently known when the library is updated last time. The recorded contents include the time of performing the operation of inserting the newly added song data, the amount of data inserted, the song name and ID in the data for which each operation was successful, and so on; the recorded information is saved after the document is generated.
Step S202: and deleting the cold songs of each language from the first operation library by adopting a cold gate algorithm to obtain a second operation library.
If the cold songs are stored in the song library for a long time, namely the songs which are long in storage time and are not popular with users or have low user order frequency, the cold songs occupy storage resources, the users consume the computing resources of the central processing unit when searching target songs, and bad use experience is brought to the users when searching target songs. Therefore, in the case of updating a library, an important operation is to delete a cold song from the library.
As an embodiment of the present application, a cold gate algorithm is adopted to delete the cold gate song of each language from the first operation library, and the second operation library is obtained through steps S301 to S304 as illustrated in fig. 3, which are described in detail as follows:
step S301: the language with the newly added song is confirmed.
As described above, the first operation library is a library in which songs are newly added, and thus, in this step, the language having the newly added songs is confirmed, that is, it is confirmed which language or languages in the first operation library have the songs newly added. In the embodiment of the application, the languages of songs comprise national language, guangdong language, minnan language, english language, korean day, russian language, malaysia language, french language, vietnam language, thai language, indonesia language, burma language and others.
Step S302: and obtaining a list to be deleted of the cold songs in the languages with the newly added songs according to the warehousing time of each song, the newly added song resources and the total song order quantity resources.
In the embodiment of the application, the acquisition of the list to be deleted of the cold songs comprises the following two steps: firstly, according to the warehousing time of each song, the newly added song resources and the total song order quantity resources, the songs confirmed in the step S301, which have long warehousing time and are not popular with users or have low user order frequency, are classified into a list, namely a preliminary cold song to be deleted. Considering that songs meeting the conditions of long warehouse-in time and not welcome by users or low user order frequency cannot be regarded as cold songs, the preliminary cold songs to be deleted list is further screened, namely, songs meeting any one or combination of the following conditions one to three are screened:
condition one: songs with local singing amount higher than a preset threshold value in the primary cold song to-be-deleted list, wherein the local singing amount of one song can be searched in a local singing amount database;
condition II: songs in the primary cold songs to be deleted list which are independently added to a third-party storage medium by a user, such as songs added by a U disk of the user, have special IDs, and are not difficult to identify;
and (3) a third condition: songs belonging to a specific category in the preliminary cold song to be deleted, for example, a dramatic segment is a specific category, and such songs generally belong to a cold song, but are not necessarily cold songs due to a specific audience group (for example, the elderly).
And deleting the songs meeting any one or combination of the three conditions from the preliminary cold song to-be-deleted list, recording the deleted quantity, and circularly and continuously performing the operation on the preliminary cold song to-be-deleted list until the deleted quantity reaches the preset quantity requirement, wherein the obtained list is the final cold song to-be-deleted list.
Step S303: and deleting the cold songs listed in the cold song waiting list to obtain a second operation library.
The list to be deleted of the cold songs described in step S303 is the final list to be deleted of the cold songs obtained in step S302.
Step S304: and recording the related information of the operation of deleting the cool songs of each language from the first operation library.
The related information of the operation of deleting the cool songs of each language from the first operation library is recorded, and similar to the previous record of the related information of the operation of inserting the newly added song data, the operation of the library is conveniently known when the library is updated every time later. The recorded contents include the time of performing the operation of deleting the cool song of each language from the first operation library, the data amount of deleting the cool song, the song name and ID in the data of each operation success, and the like; the recorded information is saved after the document is generated.
Step S203: and inserting singer information into the second operation music library to obtain a third operation music library.
The implementation of step S203 mainly includes parsing the newly added singer data from the song related resource information, including information such as ID, name, abbreviation of name, nationality, comprehensive order amount, etc. of the newly added singer, generating a singer information list, inserting the generated singer information list into a singer table of the second operation song library, and finally recording the operation of inserting the singer information into the second operation song library, where the main content includes information such as execution time of executing the operation of inserting the singer information into the second operation song library, number of the inserted singer information, ID and name of the inserted singer, etc., generating a document, and facilitating understanding of the newly added singer information inserted every time.
Step S204: and executing a song shelving task on the third operation library according to the song shelving resource information requested from the cloud to obtain a preliminary updated library.
Step S204 may be implemented by steps S401 to S403 as illustrated in fig. 4, and is described as follows:
step S401: and generating an off-shelf operation instruction according to the song off-shelf resource information requested from the cloud.
In the embodiment of the application, the shelving operation instruction mainly comprises the name or ID of the song to be shelved and the like.
Step S402: and according to the putting-in operation instruction, songs corresponding to the putting-in operation instruction in the song list, the song classification list and the third-party song list of the third operation song library are processed.
The songs corresponding to the putting-in operation instruction, namely, the songs corresponding to the names or IDs of the songs to be put in the putting-in operation instruction, and the third-party song library can be a WeChat singing and U disk singing song library, and the songs in the songs can also be the songs to be put in the putting-in operation instruction.
Step S403: and recording the related information of the operation of performing the song off-shelf task on the third operation library.
The content recorded in step S403 mainly includes information such as the operation time of performing the operation of performing the song off-shelf task on the third operation library and specific content of the off-shelf operation instruction, and these information are generated into a document, so that it is convenient to know which information is generated each time the operation of performing the song off-shelf task on the third operation library, which operations are performed, and so on.
Step S102: and sorting the song list and the singer list from the primary updated song library to obtain a sorted updated song library.
In the embodiment of the application, the sorting of the song list and the singer list in the preliminary updated song library mainly comprises the steps of reordering the song list and the singer list in the preliminary updated song library obtained in the step S101 according to the order quantity, adding the song index, the singer index and other information, and facilitating the use of users in searching songs.
Step S103: and checking the updated music library after finishing, and if no error exists, taking the updated music library after finishing as a final updated music library.
In the embodiment of the application, checking the post-sorting updated song library obtained in step S101 mainly includes checking whether each operation of step S101, i.e. newly added song data insertion, cold song data deletion, singer information insertion, song taking task, etc., has an error, and checking whether the post-sorting updated song library itself obtained in step S102 and its data have an error, where the error of the post-sorting updated song library obtained in step S102 mainly includes that the post-sorting updated song library has an error in function, the post-sorting updated song library data have an error means whether the post-sorting updated song library can be normally opened, whether the post-sorting updated song library can be normally searched for, whether the number of songs is within a preset range, etc., and if any of the three conditions is not met, determining that the post-sorting updated song library data have an error. And if the above-mentioned errors are not found, determining the updated music library after finishing as a final updated music library, otherwise, giving up the updated music library after finishing.
And S101 to S103, obtaining a final updated library, wherein the final updated library covers the library left when the library is updated last time according to the comparison copying condition and the upgrading replacement condition in the library initialization stage of the next system startup, the comparison copying condition is that the library is successfully updated after the library is updated last time recorded in the configuration file, the final updated library exists, the version numbers of the two libraries are the same as the version numbers of the library left when the library is updated last time, and the upgrading replacement condition is that the last updated state recorded in the configuration file is successful when the comparison condition is met. Specifically, in the starting-up library initialization stage, according to the comparison copy condition and the upgrade replacement condition, the library left when the final updated library is covered last time to update the library may be: comparing the last updated starter library after starting up with the starter library left when the starter library is updated last time, and judging whether the comparison copy condition and the upgrading replacement condition are met; if the comparison copy condition and the upgrade replacement condition are met, namely the yeast library is successfully updated, the final updated yeast library exists, and the version numbers of the final updated yeast library are the same as those of the yeast library left when the last time of the yeast library update is carried out, the final updated yeast library is covered with the yeast library left when the last time of the yeast library update is carried out; and if the comparison replication condition and the upgrade replacement condition are not met or the final updated yeast library is abnormal or does not exist, replicating the yeast library left when the last yeast library update is performed, and determining the yeast library left when the last yeast library update is performed as the final updated yeast library.
As can be seen from the method for updating the song library illustrated in the above-mentioned figure 1, unlike the prior art in which the entire high-version song library is downloaded and then updated to replace the original song library, the method causes untimely update of the original song library and waste of flow, and the technical scheme of the application is that only local and small-range operations such as newly added song data insertion, cold song data deletion, singer information insertion and song shelving task are performed on the original song library, so that the consumed flow is relatively small; on the other hand, local, small-scale operations are not performed until waiting for the entire database data of the cloud to be updated, but are performed periodically (e.g., daily), so that the library can be updated in time.
Referring to fig. 5, an embodiment of the present application provides a library update apparatus, which includes an update module 501, an arrangement module 502, and an error detection module 503, and is described in detail as follows:
the updating module 501 is configured to periodically perform new song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on the original song library according to the song related resource information requested from the cloud, so as to obtain a preliminary updated song library, where the song related resource information includes all song order resources, the new song resources, song languages, song ranking list resources and singer names;
the sorting module 502 is configured to sort the song list and the singer list in the preliminary updated song library to obtain a sorted updated song library;
the error detection module 503 is configured to check the sorted updated library, and if there is no error, take the sorted updated library as a final updated library.
As can be seen from the description of the technical scheme, unlike the prior art, which downloads and upgrades the whole high-version song library and replaces the original song library, the method causes untimely update of the original song library and waste of flow, and the technical scheme of the application only performs local and small-range operations such as newly added song data insertion, cold song data deletion, singer information insertion, song shelving task and the like on the original song library, so that the consumed flow is smaller; on the other hand, local, small-scale operations are not performed until waiting for the entire database data of the cloud to be updated, but are performed periodically (e.g., daily), so that the library can be updated in time.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal illustrated in fig. 6 mainly includes: a processor 60, a memory 61 and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a program of a library update method. The steps in the above-described embodiments of the library update method are implemented by the processor 60 when executing the computer program 62, for example, steps S101 to S103 shown in fig. 1, or the functions of the modules/units in the above-described embodiments of the apparatus, for example, the functions of the update module 501, the sort module 502, and the error detection module 503 shown in fig. 4, are implemented by the processor 60 when executing the computer program 62.
Illustratively, the computer program 62 of the treasury update method mainly comprises: periodically and sequentially performing new song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on the original song library according to song related resource information requested from the cloud to obtain a primary updated song library; sorting the song list and the singer list from the primary updated song library to obtain a sorted updated song library; and checking the updated music library after finishing, and if no error exists, taking the updated music library after finishing as a final updated music library. The computer program 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing a specific function for describing the execution of the computer program 62 in the terminal 5. For example, the computer program 62 may be divided into functions of the update module 501, the sort module 502, and the error detection module 503 (modules in the virtual device), each of which specifically functions as follows: the updating module 501 is configured to periodically perform new song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on the original song library according to the song related resource information requested from the cloud, so as to obtain a preliminary updated song library, where the song related resource information includes all song order resources, the new song resources, song languages, song ranking list resources and singer names; the sorting module 502 is configured to sort the song list and the singer list in the preliminary updated song library to obtain a sorted updated song library; the error detection module 503 is configured to check the sorted updated library, and if there is no error, take the sorted updated library as a final updated library.
The terminal 6 may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of terminal 6 and is not intended to limit terminal 6, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., a computing device may also include an input-output device, a network access device, a bus, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the terminal 6, such as a hard disk or a memory of the terminal 6. The memory 61 may also be an external storage device of the terminal 6, such as a plug-in hard disk provided on the terminal 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal 6. The memory 61 is used to store computer programs and other programs and data required by the terminal. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that the above-described functional units and modules are merely illustrated for convenience and brevity of description, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a non-transitory computer readable storage medium. Based on such understanding, the present application may implement all or part of the processes in the methods of the above embodiments, or may be implemented by instructing related hardware by a computer program, where the computer program of the song library update method may be stored in a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the steps of each method embodiment described above may be implemented, that is, periodically, according to the song related resource information requested from the cloud, sequentially performing the tasks of adding song data, deleting cold song data, inserting singer information, and placing songs on the original song library, to obtain a preliminary updated song library; sorting the song list and the singer list from the primary updated song library to obtain a sorted updated song library; and checking the updated music library after finishing, and if no error exists, taking the updated music library after finishing as a final updated music library. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The non-transitory computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a USB flash disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the non-transitory computer readable medium may include content that is suitably scaled according to the requirements of jurisdictions in which the legislation and patent practice, such as in some jurisdictions, the non-transitory computer readable medium does not include electrical carrier signals and telecommunication signals according to the legislation and patent practice. The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the application, and is not meant to limit the scope of the application, but to limit the application to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (9)

1. A method for updating a library, the method comprising:
periodically and sequentially performing new song data insertion, cold song data deletion, singer information insertion and song shelving tasks on an original song library according to song related resource information requested from a cloud to obtain a preliminary updated song library, wherein the song related resource information comprises all song order amount resources, new song resources, song languages, song ranking list resources and singer names;
arranging a song list and a singer list on the primary updated song library to obtain an arranged updated song library;
checking the tidied updated library, and if no error exists, taking the tidied updated library as a final updated library;
the method comprises the steps of periodically performing new song data insertion, cold song data deletion, singer information insertion and song taking-off tasks on an original song library according to song related resource information requested from a cloud to obtain a preliminary updated song library, and comprises the following steps:
periodically inserting newly added song information and song ranking list information into the original song library according to the all song order amount resources, the newly added song resources and the song ranking list resources to obtain a first operation song library;
deleting the cold songs of each language from the first operation library according to the languages of the newly added songs by adopting a cold gate algorithm to obtain a second operation library;
inserting singer information into the second operation library to obtain a third operation library;
and executing a song shelving task on the third operation library according to the song shelving resource information requested from the cloud to obtain the preliminary updated library.
2. The method for updating a library of songs as claimed in claim 1, wherein said inserting the newly added song information and the song leaderboard information into the original library according to the total song order resource, the newly added song resource, and the song leaderboard resource to obtain the first operation library comprises:
according to the total song order amount resource, the newly added song resource and the song ranking list resource, the order amount, the newly added song name and the language of the newly added song and the song ranking list information are inserted into the original song library in batch to obtain the first operation song library;
and recording the relevant information of the operation of inserting the newly added song data.
3. The method for updating a library as claimed in claim 1, wherein said deleting the cool songs of each language from the first operation library by using a cool-gate algorithm to obtain a second operation library comprises:
confirming languages with newly added songs;
obtaining a list to be deleted of the cold songs in each language with the newly added song according to the warehousing time of each song, the newly added song resources and all song order quantity resources;
deleting the cold songs listed in the cold song to-be-deleted list to obtain the second operation library;
and recording the related information of the operation of deleting the cool songs of each language from the first operation library.
4. The method for updating a library according to claim 1, wherein the performing a song-off-shelf task on the third operation library according to song-off-shelf resource information requested from the cloud to obtain the preliminary updated library comprises:
generating an off-shelf operation instruction according to the song off-shelf resource information requested from the cloud;
according to the putting-in operation instruction, songs corresponding to the putting-in operation instruction in a song list, a song classification list and a third-party song list of the third operation song list are processed;
and recording the related information of the operation of performing the song off-shelf task on the third operation library.
5. The music library updating method according to any one of claims 1 to 4, wherein said checking said collated updated music library, if there is no error, takes said collated updated music library as a final updated music library, comprising:
checking whether each operation of the newly added song data insertion, the cold song data deletion, the singer information insertion and the song taking-off task is wrong or not, and checking whether the tidied updated song library and the data thereof are wrong or not;
and if the checking is error-free, determining the updated music library after finishing as the final updated music library, otherwise, discarding the updated music library after finishing.
6. The library updating method according to any one of claims 1 to 4, further comprising:
and in the starting-up library initialization stage, covering the final updated library with the library left when the library is updated last time according to the comparison copy condition and the upgrade replacement condition.
7. A music library updating apparatus, the apparatus comprising:
the updating module is used for periodically performing new song data insertion, cold song data deletion, singer information insertion and song shelving tasks on the original song library according to song related resource information requested from the cloud to obtain a preliminary updated song library, wherein the song related resource information comprises all song order quantity resources, new song resources, song languages, song ranking list resources and singer names;
the sorting module is used for sorting the song list and the singer list of the preliminary updated song library to obtain a sorted updated song library;
the error detection module is used for checking the tidied updated music library, and taking the tidied updated music library as a final updated music library if no error exists;
the method comprises the steps of periodically performing new song data insertion, cold song data deletion, singer information insertion and song taking-off tasks on an original song library according to song related resource information requested from a cloud to obtain a preliminary updated song library, and comprises the following steps:
periodically inserting newly added song information and song ranking list information into the original song library according to the all song order amount resources, the newly added song resources and the song ranking list resources to obtain a first operation song library;
deleting the cold songs of each language from the first operation library according to the languages of the newly added songs by adopting a cold gate algorithm to obtain a second operation library;
inserting singer information into the second operation library to obtain a third operation library;
and executing a song shelving task on the third operation library according to the song shelving resource information requested from the cloud to obtain the preliminary updated library.
8. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed.
9. A non-transitory computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202010301377.6A 2020-04-16 2020-04-16 Method, device, terminal and non-transitory computer readable storage medium for updating a library Active CN111488483B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010301377.6A CN111488483B (en) 2020-04-16 2020-04-16 Method, device, terminal and non-transitory computer readable storage medium for updating a library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010301377.6A CN111488483B (en) 2020-04-16 2020-04-16 Method, device, terminal and non-transitory computer readable storage medium for updating a library

Publications (2)

Publication Number Publication Date
CN111488483A CN111488483A (en) 2020-08-04
CN111488483B true CN111488483B (en) 2023-10-24

Family

ID=71812848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010301377.6A Active CN111488483B (en) 2020-04-16 2020-04-16 Method, device, terminal and non-transitory computer readable storage medium for updating a library

Country Status (1)

Country Link
CN (1) CN111488483B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235065A (en) * 2020-09-23 2021-01-15 湖南声广信息科技有限公司 Broadcasting station song arrangement method and system
CN113726893B (en) * 2021-08-31 2024-01-09 广州艾美网络科技有限公司 Method and device for updating music library, KTV box, song server and network KTV system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10274981A (en) * 1997-03-28 1998-10-13 Kawai Musical Instr Mfg Co Ltd Music information retrieval device
TWM311095U (en) * 2006-11-10 2007-05-01 Chen Technology Co Ltd U Personalized song management device
CN101963999A (en) * 2010-11-03 2011-02-02 北京亮点时间科技有限公司 Music classified search engine system and music classified search method
CN102110121A (en) * 2009-12-24 2011-06-29 阿里巴巴集团控股有限公司 Method and system for processing data
CN102118388A (en) * 2009-12-30 2011-07-06 诺基亚西门子通信公司 Method and apparatus for adaptation of a multimedia content
CN103544161A (en) * 2012-07-11 2014-01-29 福建星网视易信息系统有限公司 Method for achieving intelligent update of song information, song selecting system and song selecting server
CN104462411A (en) * 2014-12-12 2015-03-25 福建星网视易信息系统有限公司 Singer and song classification acquiring method and device
CN105843921A (en) * 2016-03-25 2016-08-10 福建星网视易信息系统有限公司 Hit song capturing method and apparatus
CN106156164A (en) * 2015-04-15 2016-11-23 腾讯科技(深圳)有限公司 resource information processing method and device
CN106506865A (en) * 2016-12-08 2017-03-15 努比亚技术有限公司 A kind of method and terminal for updating music list
CN107844587A (en) * 2017-11-16 2018-03-27 百度在线网络技术(北京)有限公司 Method and apparatus for updating multimedia play list
CN110019925A (en) * 2017-12-07 2019-07-16 北京雷客天地科技有限公司 Batch deletes the method and device of song
CN110191236A (en) * 2019-06-27 2019-08-30 广州酷狗计算机科技有限公司 Playback of songs queue management method, device, terminal device and storage medium
CN110377784A (en) * 2019-07-24 2019-10-25 广州酷狗计算机科技有限公司 Sing single update method, device, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060056324A1 (en) * 2004-09-10 2006-03-16 Nokia Corporation Apparatus and method to provide mobile music appliance with subscription-based play-list service

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10274981A (en) * 1997-03-28 1998-10-13 Kawai Musical Instr Mfg Co Ltd Music information retrieval device
TWM311095U (en) * 2006-11-10 2007-05-01 Chen Technology Co Ltd U Personalized song management device
CN102110121A (en) * 2009-12-24 2011-06-29 阿里巴巴集团控股有限公司 Method and system for processing data
CN102118388A (en) * 2009-12-30 2011-07-06 诺基亚西门子通信公司 Method and apparatus for adaptation of a multimedia content
CN101963999A (en) * 2010-11-03 2011-02-02 北京亮点时间科技有限公司 Music classified search engine system and music classified search method
CN103544161A (en) * 2012-07-11 2014-01-29 福建星网视易信息系统有限公司 Method for achieving intelligent update of song information, song selecting system and song selecting server
CN104462411A (en) * 2014-12-12 2015-03-25 福建星网视易信息系统有限公司 Singer and song classification acquiring method and device
CN106156164A (en) * 2015-04-15 2016-11-23 腾讯科技(深圳)有限公司 resource information processing method and device
CN105843921A (en) * 2016-03-25 2016-08-10 福建星网视易信息系统有限公司 Hit song capturing method and apparatus
CN106506865A (en) * 2016-12-08 2017-03-15 努比亚技术有限公司 A kind of method and terminal for updating music list
CN107844587A (en) * 2017-11-16 2018-03-27 百度在线网络技术(北京)有限公司 Method and apparatus for updating multimedia play list
CN110019925A (en) * 2017-12-07 2019-07-16 北京雷客天地科技有限公司 Batch deletes the method and device of song
CN110191236A (en) * 2019-06-27 2019-08-30 广州酷狗计算机科技有限公司 Playback of songs queue management method, device, terminal device and storage medium
CN110377784A (en) * 2019-07-24 2019-10-25 广州酷狗计算机科技有限公司 Sing single update method, device, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷客"惊艳"点歌机;数字社区&智能家居(03);全文 *

Also Published As

Publication number Publication date
CN111488483A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US20110307881A1 (en) Multi-branch management for updating software
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
US20010051954A1 (en) Data updating apparatus that performs quick restoration processing
KR102088164B1 (en) Method and apparatus for generating difference between old and new version of data for updating software
CN111078481B (en) Method, device, electronic equipment and storage medium for acquiring configuration checklist
CN111488483B (en) Method, device, terminal and non-transitory computer readable storage medium for updating a library
CN109669925B (en) Management method and device of unstructured data
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN112988280B (en) Configuration data processing method and device
US20040003387A1 (en) Dynamically resolving fix groups for managing multiple releases of multiple products on multiple systems
CN111399898B (en) Method and device for managing multi-module system code version and computer equipment
CN113760902A (en) Data splitting method, device, equipment, medium and program product
CN115080114B (en) Application program transplanting processing method, device and medium
CN113535206B (en) Multi-version code upgrading method and system
CN114385657A (en) Data storage method, device and storage medium
CN114489481A (en) Method and system for storing and accessing data in hard disk
CN112364580A (en) Method and device for automatically inserting specific code into register transmission level design file
CN116664129B (en) Block chain account book data iteration method, electronic equipment and readable storage medium
CN112948485B (en) Question-answer data synchronization method, device, system, server and storage medium
CN115421785B (en) Method, device and medium for transplanting application program
CN117251500B (en) Dynamic read-write separation method for database
CN116301597A (en) Data storage method, device, equipment and storage medium
CN116955375A (en) Method, device, equipment and storage medium for updating music library
CN114064783A (en) Method and device for importing data, electronic equipment and storage medium
CN116483427A (en) Compatible management method, device and storage medium of electronic whiteboard conference system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant