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

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

Info

Publication number
CN111488483A
CN111488483A CN202010301377.6A CN202010301377A CN111488483A CN 111488483 A CN111488483 A CN 111488483A CN 202010301377 A CN202010301377 A CN 202010301377A CN 111488483 A CN111488483 A CN 111488483A
Authority
CN
China
Prior art keywords
song
library
updated
resources
cold
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.)
Granted
Application number
CN202010301377.6A
Other languages
Chinese (zh)
Other versions
CN111488483B (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

Images

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The invention 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 executing newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks to the original song library in sequence according to song related resource information requested from the cloud to obtain a primarily updated song library; sorting the song list and the singer list of the preliminarily updated song library to obtain a sorted updated song library; checking the updated music library after sorting, and if no error exists, taking the updated music library after sorting as the final updated music library. The technical scheme provided by the invention has the advantages that the consumed flow is small when the music library is updated, and the music library can be updated in time.

Description

Method, device, terminal and non-transitory computer-readable storage medium for updating song library
Technical Field
The invention relates to the field of computer networks and databases, in particular to a method, a device, a terminal and a non-transitory computer-readable storage medium for updating a library.
Background
With the acceleration of the rhythm of modern urban life, people can find some entertainment activities to decompress, wherein, singing to KTV is a common way. Current KTV systems maintain a song database, i.e., a library, that stores a vast amount of songs for selection by a user of the KTV to sing. Singing some old songs is certainly an option for users, but some users prefer to be able to select some songs that are currently popular to challenge themselves. Therefore, the updating of the song library of the KTV system is very important.
The existing way of updating the KTV song library is to directly perform upgrading operation on the song library, specifically, a high-version song library is configured at a server through an interface, and then the whole high-version song library is downloaded and upgraded to replace the original song library, so as to achieve the purpose of updating data. However, this way of updating the KTV library has the following drawbacks:
1) the reason why the song library is not updated timely is that the song library of the high version is required to be integrally substituted for the original song library, but the song library of the whole high version can not be provided at any time;
2) the traffic is wasted because some songs are not needed to be replaced when the high-version song library is integrally replaced with the original song library.
Disclosure of Invention
The invention provides a method, a device, a terminal and a non-transitory computer readable storage medium for updating a library of songs, so as to save flow and update the library of songs in time.
In one aspect, the present invention provides a method for updating a koji library, the method comprising:
periodically and sequentially executing newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on an original song library according to song related resource information requested from a cloud end to obtain a primarily updated song library, wherein the song related resource information comprises all song point singing amount resources, newly-added song resources, song languages, song ranking list resources and singer names;
sorting the song list and the singer list of the preliminary updated song library to obtain a sorted updated song library;
checking the updated music database after the sorting, and if no error exists, taking the updated music database after the sorting as a final updated music database.
Specifically, the step of sequentially executing newly-added 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 preliminarily updated song library includes:
inserting newly added song information and song ranking list information into the original song library according to all the song singing amount resources, the newly added song resources and the song ranking list resources to obtain a first operation song library;
deleting the cold song of each language from the first operation song library by adopting a cold algorithm to obtain a second operation song library;
inserting singer information into the second operation song library to obtain a third operation song library;
and executing a song off-shelf task on the third operation song library according to the song off-shelf resource information requested from the cloud end to obtain the initial updated song library.
Specifically, the step of inserting new song information and song ranking list information into the original song library according to the total song singing amount resources, the new song resources and the song ranking list resources to obtain a first operation song library includes:
inserting the singing amount of newly added songs, the names and languages of the newly added songs and song ranking list information into the original song library in batches according to the all song singing amount resources, the newly added song resources and the song ranking list resources to obtain a first operation song library;
and recording the related information of the operation of inserting the newly added song data.
Specifically, the obtaining a second operation music library by deleting the cold song of each language from the first operation music library by using a cold algorithm includes:
confirming the language with the newly added song;
acquiring a cold song to-be-deleted list under each language with the newly added songs according to the warehousing time of each song, the newly added song resources and all song singing amount resources;
deleting the cold songs listed in the cold song deletion list to obtain the second operation song library;
and recording the relevant information of the operation of deleting the cold song in each language from the first operation song library.
Specifically, the step of executing a song off-shelf task on the third operation song library according to the song off-shelf resource information requested from the cloud to obtain the preliminary updated song library includes:
generating a downloading operation instruction according to the song downloading resource information requested from the cloud;
according to the shelf-off operation instruction, performing shelf-off operation on the song library song table and the song library classification table of the third operation song library and the song corresponding to the shelf-off operation instruction in the third party song library;
and recording relevant information of the operation of executing the song off-shelf task on the third operation song library.
Specifically, the checking the sorted updated music library, and if there is no error, taking the sorted updated music library as a final updated music library, includes:
checking whether each operation of the newly added song data insertion, the cold song data deletion, the singer information insertion and the song off-shelf task has errors or not and checking whether the updated song library and the data thereof after the arrangement have errors or not;
and if no error exists, determining the updated music database after arrangement as the final updated music database, otherwise, abandoning the updated music database after arrangement.
Specifically, the method further comprises:
and in the initialization stage of the starting-up music library, according to the comparison copying condition and the upgrading replacement condition, covering the finally updated music library with the music library left in the last time of music library updating.
In another aspect, the present invention provides a device for updating a koji library, comprising:
the updating module is used for periodically executing tasks of newly added song data insertion, cold song data deletion, singer information insertion and song off-shelf to an original operation song library according to song related resource information requested from the cloud to obtain a primary updated song library, wherein the song related resource information comprises all song ordering quantity resources, newly added 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;
and the error detection module is used for checking the sorted updated song library, and if no error exists, the sorted updated song library is used as a final updated song library.
In a third aspect, the present invention provides a terminal, which includes a memory, a processor and a computer program stored in the memory and operable on the processor, and when the processor executes the computer program, the steps of the method according to the above technical solution are implemented.
In a fourth aspect, the invention provides a non-transitory computer-readable storage medium, storing a computer program which, when executed by a processor, implements the steps of the method as described in the above technical solution.
Different from the prior art that the whole high-version song library is downloaded and upgraded to replace the original song library, which causes untimely update of the song library and waste of flow, the technical scheme of the invention only performs local and small-range operations such as newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on the original song library on one hand, so that the consumed flow is small; on the other hand, local and small-scale operations are not required to be executed until all data of the entire database in the cloud end are updated, but are executed periodically (for example, every day), so that the music library can be updated in time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for updating a thesaurus according to an embodiment of the present invention;
fig. 2 is a flowchart for sequentially performing tasks of newly-added song data insertion, cold song data deletion, singer information insertion, and song off-shelf on an original song library to obtain a preliminarily updated song library according to the embodiment of the present invention;
fig. 3 is a flowchart of obtaining a second operation song library by deleting a cold song in each language from the first operation song library by using a cold algorithm according to an embodiment of the present invention;
fig. 4 is a flowchart of executing a song off-shelf task on a third operation song library according to the song off-shelf resource information requested from the cloud end to obtain a preliminarily updated song library according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a music library updating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this specification, adjectives such as first and second may only be used to distinguish one element or action from another, without necessarily requiring or implying any actual such relationship or order. References to an element or component or step (etc.) should not be construed as limited to only one of the element, component, or step, but rather to one or more of the element, component, or step, etc., where the context permits.
In the present specification, the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The invention provides a method for updating a koji library, which mainly comprises the following steps of S101 to S103 as shown in figure 1:
step S101: and periodically executing newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks to the original song library in sequence according to the song related resource information requested from the cloud end to obtain a primarily updated song library.
In the embodiment of the present invention, the original song library refers to a song library before being updated, that is, an object when the song library is updated each time, and specifically, the original song library may be a song library obtained after being updated successfully when the song library is updated last time, or a song library obtained before the song library is updated unsuccessfully and is updated unsuccessfully last time, and the information on the related resources of the songs mainly includes information on all song ordering amount resources, newly added song resources, song languages, song ranking list resources, singer names, and the like. It should be noted that, the above-mentioned all song singing amount resources, i.e., the frequency of singing and the number of times of singing of each song, are requested from the cloud server first. If the request from the cloud server fails or the resources are not updated, directly analyzing all song singing amount resources which are requested to be downloaded from the cloud server to the local last time, and if the local files for recording or storing all song singing amount resources do not exist, defaulting the singing amount of the newly added song to be 0. It should be noted that, the above-mentioned periodic execution of the tasks of newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf to the original song library in turn according to the song-related resource information requested from the cloud, where the "period" may be a period of days, i.e. the task is executed once a day, or a fixed period of days, or a period of a week, etc.; the period may be determined according to actual needs, and the present invention is not limited to this.
As an embodiment of the present invention, periodically and sequentially executing tasks of newly-added song data insertion, cold song data deletion, singer information insertion, and song off-shelf to an original song library according to song-related resource information requested from a cloud, and obtaining a primarily updated song library may be implemented by steps S201 to S204 as illustrated in fig. 2, which are described as follows:
step S201: and periodically inserting newly added song information and song ranking list information into the original song library according to all song singing amount resources, newly added song resources and song ranking list resources to obtain a first operation song library.
The step S201 may be specifically implemented as follows: inserting the singing amount of the newly added songs, the names and the languages of the newly added songs and the song ranking list information into the original song library in batch according to all song singing amount resources, the newly added song resources and the song ranking list resources to obtain a first operation song library; and recording the related information of the operation of inserting the new song data. The newly added song resources comprise an ID or name of the newly added song, a type, a language, a first spelling of the name, storage time, a singing amount, a star corresponding to the newly added song, and the like, wherein the singing amount is obtained when song related resource information is requested from the cloud in the execution process of the step S101. It should be noted that, no matter the insertion of the new song information or the insertion of the song ranking list information, the last insertion task is preferably completed. For example, if a task of inserting newly added song information and song ranking list information which are not completed last time exists, the task of inserting the newly added song information and the song ranking list information last time is processed preferentially, and then newly added song resources and song ranking list resources are requested from the cloud; and if the request is successful, analyzing the newly added song resource and the song ranking list resource, and performing operation of inserting the newly added song information and the song ranking list information into the original song library in batches, wherein the step of inserting is skipped if the inserting operation is not needed.
Regarding the recording of the related information of the operation of inserting the newly added song data, it is considered that the operations of the music library performed when the music library is updated last time are convenient to know when the music library is updated last time. The recorded content includes the time of performing the operation of inserting the newly added song data, the amount of inserted data, the song name and ID in the data in which each operation succeeds, and the like; the recorded information is generated into a document and then stored.
Step S202: and deleting the cold song of each language from the first operation song library by adopting a cold algorithm to obtain a second operation song library.
The cold songs, i.e. songs in the song library which have long storage time and are not popular with users or have low song-ordering frequency, if the cold songs are stored in the song library for a long time, not only the storage resources are occupied, but also the computing resources of the central processing unit are consumed when the users search the target songs, and bad use experience is brought to the users when the users search the target songs. Therefore, when the music library is updated, an important operation is to delete the cold song from the music library.
As an embodiment of the present invention, the second operation song library obtained by deleting the cold song of each language from the first operation song library by using the cold algorithm may be implemented by steps S301 to S304 as illustrated in fig. 3, and the following detailed description is provided:
step S301: and confirming the language with the newly added song.
As described above, the first operation music library is a music library to which the new song is added, and therefore, in this step, it is determined which language or languages in the first operation music library the new song is added. In the embodiment of the present invention, the language of the song includes national language, cantonese, Minnan, English, Korean, Russian, Malai, French, Vietnamese, Thai, Indonesia, Burmese and others.
Step S302: and acquiring a cold song to-be-deleted list under each language with the newly added songs according to the storage time of each song, the newly added song resources and all song ordering amount resources.
In the embodiment of the invention, the acquisition of the list of the cold songs to be deleted is divided into two steps: firstly, according to the warehousing time of each song, newly added song resources and all song ordering amount resources, some songs which are determined in the step S301 and have long warehousing time and are not popular with users or have low ordering frequency are screened, and the songs are classified into a list, namely a preliminary cold song to-be-deleted list. Considering that songs meeting the condition of long warehousing time and not popular with users or low singing frequency of users cannot be regarded as cold songs, the preliminary cold song to-be-deleted list is further screened, namely, songs meeting any one or combination of the following conditions from one to three are screened out:
the first condition is as follows: songs with local singing amount higher than a preset threshold value in the preliminary cold song to-be-deleted list can be searched in a local singing amount database;
and a second condition: the songs which are added to the third-party storage medium by the user in the preliminary cold song to-be-deleted list independently, such as songs added to songs of a U disk of the user, have special IDs, and therefore can be identified easily;
and (3) carrying out a third condition: the initial cold song list is a special category of songs belonging to a special category, for example, drama clips, which generally belong to cold songs but are not suitable for being used as cold songs because of special audience groups (for example, old people).
And deleting the songs meeting any one or combination of the three conditions from the preliminary cold song list to be deleted, recording the deleted number, and circularly and continuously performing the operation on the preliminary cold song list to be deleted until the deleted number reaches the preset number requirement, wherein the obtained list is the final cold song list to be deleted.
Step S303: and deleting the cold songs listed in the cold song deletion list to obtain a second operation song library.
The cold song to be deleted list in step S303 is the final cold song to be deleted list obtained in step S302.
Step S304: information related to the operation of deleting the cold song in each language from the first operation song library is recorded.
As for the recording of the related information of the operation of deleting the cold song of each language from the first operation music library, similar to the recording of the related information of the operation of inserting the newly added song data, it is also considered that it is convenient to know what operations were performed on the music library when the music library was updated last time in the following each time. The recorded content includes the time for executing the operation of deleting the cold song of each language from the first operation song library, the data amount of the deleted cold song, the song name and ID in the data of each successful operation, and the like; the recorded information is generated into a document and then stored.
Step S203: inserting singer information into the second operation music library to obtain a third operation music library.
Step S203 is realized by analyzing newly added singer data from song related resource information, including information such as newly added singer ID, name abbreviation, nationality, comprehensive singing amount and the like, to generate a singer information list, then inserting the generated singer information list into a singer list of a second operation song library, and finally recording the operation of inserting singer information into the second operation song library, wherein the main content includes the execution time of the operation of inserting singer information into the second operation song library, the number of inserted singer information, the ID of inserted singer, the name and the like, to generate a document, thereby facilitating understanding of newly added singer information inserted each time.
Step S204: and executing a song off-shelf task on the third operation song library according to the song off-shelf resource information requested from the cloud end to obtain a preliminary update song library.
Step S204 can be implemented by steps S401 to S403 as illustrated in fig. 4, and is described as follows:
step S401: and generating a shelf unloading operation instruction according to the song shelf unloading resource information requested from the cloud.
In the embodiment of the invention, the shelf-off operation instruction mainly comprises the name or ID of the song to be shelved.
Step S402: and according to the operation instruction for putting down the shelves, carrying out song library song list and song library classification list of the third operation song library and the song corresponding to the operation instruction for putting down the shelves in the third operation song library.
The songs corresponding to the shelf-off operation instructions, that is, the songs contained in the shelf-off operation instructions and corresponding to the names or IDs of the songs to be shelved, and the third-party song library may be a song library such as WeChat plus songs and U-disk plus songs, and the songs in the songs may also be the songs to be shelved.
Step S403: and recording the related information of the operation of executing the song off-shelf task on the third operation song library.
The content recorded in step S403 mainly includes information such as the operation time for executing the song putting task to the third operation song library, and the specific content of the putting operation instruction, and the like, and the information is generated into a document, which information is generated and which operation is executed each time the song putting task is executed to the third operation song library, and the like are conveniently known.
Step S102: and sorting the song list and the singer list of the preliminarily updated song library to obtain a sorted updated song library.
In the embodiment of the invention, the sorting of the song list and the singer list of 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 singing amount, increasing information such as a song index and a singer index and the like, and facilitating the use of a user in searching songs.
Step S103: checking the updated music library after sorting, and if no error exists, taking the updated music library after sorting as the final updated music library.
In the embodiment of the invention, the step S101 is mainly used for checking whether each operation of newly-added song data insertion, cold song data deletion, singer information insertion, song off-shelf tasks and the like in the step S101 is wrong or not and checking whether errors exist in the sorted updated song library and the data thereof obtained in the step S102 or not, wherein the errors in the sorted updated song library obtained in the step S102 mainly include errors in the functions of the sorted updated song library, and the errors in the data of the sorted updated song library mean whether the sorted updated song library can be normally opened, whether the data can be normally searched and whether the number of songs is within a preset range or not, and the like. And if no error exists, determining the arranged updated music library as the final updated music library, otherwise, giving up the arranged updated music library.
Through steps S101 to S103, a final updated library is obtained, and in the initialization stage of the library at the next system startup, the final updated library is covered with the library left when the library was updated last time according to the comparison copy condition and the update replacement condition, where the comparison copy condition is that the update state after the last library update was recorded in the configuration file is successful, that is, the library is updated successfully, the final updated library exists, that the version numbers of the two libraries, that is, the final updated library and the library left when the library was updated last time, are the same, and the update replacement condition is that the last update state recorded in the configuration file is successful while the comparison condition is satisfied. Specifically, in the initialization stage of the starting-up music library, according to the comparison copy condition and the update replacement condition, the step of covering the finally updated music library with the music library left when the music library is updated last time may be: comparing the final updated song library after starting with the song library left in the last song library updating, and judging whether the comparison copying condition and the upgrading replacement condition are met; if the comparison copying condition and the upgrade replacing condition are met, namely the song library is successfully updated, the finally updated song library exists, and the version number of the finally updated song library is the same as that of the song library left when the song library is updated last time, covering the finally updated song library with the song library left when the song library is updated last time; and if the comparison copying condition and the upgrade replacement condition are not met or the final updated music library is abnormal or does not exist, copying the music library left when the music library is updated last time, and determining the music library left when the music library is updated last time as the final updated music library.
It can be known from the above-mentioned song library updating method illustrated in fig. 1 that, unlike the prior art, the whole high-version song library is downloaded and upgraded to replace the original song library, which results in untimely update of the song library and waste of the flow, on one hand, the technical scheme of the present invention only performs operations of adding new song data to the original song library, deleting the cold song data, inserting the singer information, downloading the song, etc. in a local and small range, so the consumed flow is small; on the other hand, local and small-scale operations are not required to be executed until all data of the entire database in the cloud end are updated, but are executed periodically (for example, every day), so that the music library can be updated in time.
Referring to fig. 5, a library updating apparatus according to an embodiment of the present invention includes an updating module 501, a sorting module 502, and an error detecting module 503, which are detailed as follows:
the updating module 501 is configured to periodically perform tasks of newly added song data insertion, cold song data deletion, singer information insertion and song off-shelf on an original song library according to song related resource information requested from a cloud to obtain a preliminary updated song library, where the song related resource information includes all song ordering amount resources, newly added song resources, song languages, song ranking list resources and singer names;
a sorting module 502, configured to sort the song list and the singer list of the preliminarily updated song library to obtain a sorted updated song library;
and the error detection module 503 is configured to check the sorted updated song library, and if there is no error, use the sorted updated song library as the final updated song library.
It can be seen from the above description of the technical solutions that, unlike the prior art, the whole high-version song library is downloaded and upgraded to replace the original song library, which results in untimely update of the song library and waste of the flow, the technical solution of the present invention only performs local and small-scale operations such as newly-added song data insertion, cold song data deletion, singer information insertion, song off-shelf tasks, etc. on the original song library, so that the consumed flow is relatively small; on the other hand, local and small-scale operations are not required to be executed until all data of the entire database in the cloud end are updated, but are executed periodically (for example, every day), so that the music library can be updated in time.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal illustrated in fig. 6 mainly includes: a processor 60, a memory 61 and a computer program 62, such as a program of a library update method, stored in the memory 61 and executable on the processor 60. The processor 60 executes the computer program 62 to implement the steps in the embodiment of the library updating method, such as steps S101 to S103 shown in fig. 1, or the processor 60 executes the computer program 62 to implement the functions of the modules/units in the embodiments of the apparatuses, such as the functions of the updating module 501, the sorting module 502 and the error detection module 503 shown in fig. 4.
Illustratively, the computer program 62 of the music library updating method mainly includes: periodically executing newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks to the original song library in sequence according to song related resource information requested from the cloud to obtain a primarily updated song library; sorting the song list and the singer list of the preliminarily updated song library to obtain a sorted updated song library; checking the updated music library after sorting, and if no error exists, taking the updated music library after sorting as the 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 implement the present invention. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the terminal 5. For example, the computer program 62 may be divided into functions of an update module 501, a sort module 502, and an error detection module 503 (modules in a virtual device), and the specific functions of each module are as follows: the updating module 501 is configured to periodically perform tasks of newly added song data insertion, cold song data deletion, singer information insertion and song off-shelf on an original song library according to song related resource information requested from a cloud to obtain a preliminary updated song library, where the song related resource information includes all song ordering amount resources, newly added song resources, song languages, song ranking list resources and singer names; a sorting module 502, configured to sort the song list and the singer list of the preliminarily updated song library to obtain a sorted updated song library; and the error detection module 503 is configured to check the sorted updated song library, and if there is no error, use the sorted updated song library as the final updated song library.
The terminal 6 may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a terminal 6 and does not constitute a limitation on terminal 6, and may include more or fewer components than shown, or some components in combination, 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 (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. 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, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like provided on the terminal 6. Further, the memory 61 may also include both an internal storage unit of the terminal 6 and an external storage device. The memory 61 is used for storing 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, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as required to different functional units and modules, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
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 implementation. 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 invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described device/terminal embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, multiple units or components may be combined or integrated into another device, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a non-transitory computer readable storage medium. Based on such understanding, all or part of the processes in the method of the embodiments of the present invention may also be completed by instructing related hardware through a computer program, where the computer program of the song library updating method may be stored in a non-transitory computer-readable storage medium, and when being executed by a processor, the computer program may implement the steps of the embodiments of the methods, that is, periodically, according to the song-related resource information requested from the cloud, sequentially perform new song data insertion, cold song data deletion, singer information insertion, and song off-shelf tasks on the original song library to obtain a preliminary updated song library; sorting the song list and the singer list of the preliminarily updated song library to obtain a sorted updated song library; checking the updated music library after sorting, and if no error exists, taking the updated music library after sorting as the final updated music library. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The non-transitory computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the non-transitory computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, non-transitory computer readable media does not include electrical carrier signals and telecommunications signals as subject to legislation and patent practice. The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for updating a koji library, the method comprising:
periodically and sequentially executing newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf tasks on an original song library according to song related resource information requested from a cloud end to obtain a primarily updated song library, wherein the song related resource information comprises all song point singing amount resources, newly-added song resources, song languages, song ranking list resources and singer names;
sorting the song list and the singer list of the preliminary updated song library to obtain a sorted updated song library;
checking the updated music database after the sorting, and if no error exists, taking the updated music database after the sorting as a final updated music database.
2. The song library updating method of claim 1, wherein the periodically performing tasks of newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf on the original song library in sequence according to the song-related resource information requested from the cloud to obtain a primarily updated song library comprises:
periodically inserting newly-added song information and song ranking list information into the original song library according to all the song singing amount resources, newly-added song resources and song ranking list resources to obtain a first operation song library;
deleting the cold song of each language from the first operation song library by adopting a cold algorithm to obtain a second operation song library;
inserting singer information into the second operation song library to obtain a third operation song library;
and executing a song off-shelf task on the third operation song library according to the song off-shelf resource information requested from the cloud end to obtain the initial updated song library.
3. The song library updating method according to claim 2, wherein the inserting new song information and song ranking list information into the original song library according to the total song singing amount resource, the new song resource and the song ranking list resource to obtain a first operation song library comprises:
inserting the singing amount of newly added songs, the names and languages of the newly added songs and song ranking list information into the original song library in batches according to the all song singing amount resources, the newly added song resources and the song ranking list resources to obtain a first operation song library;
and recording the related information of the operation of inserting the newly added song data.
4. The song library updating method according to claim 2, wherein the step of deleting the cold song of each language from the first operation song library by using a cold algorithm to obtain a second operation song library comprises:
confirming the language with the newly added song;
acquiring a cold song to-be-deleted list under each language with the newly added songs according to the warehousing time of each song, the newly added song resources and all song singing amount resources;
deleting the cold songs listed in the cold song deletion list to obtain the second operation song library;
and recording the relevant information of the operation of deleting the cold song in each language from the first operation song library.
5. The song library updating method of claim 2, wherein the step of performing a song off-shelf task on the third operation song library according to the song off-shelf resource information requested from the cloud to obtain the preliminary updated song library comprises:
generating a downloading operation instruction according to the song downloading resource information requested from the cloud;
according to the shelf-off operation instruction, performing shelf-off operation on the song library song table and the song library classification table of the third operation song library and the song corresponding to the shelf-off operation instruction in the third party song library;
and recording relevant information of the operation of executing the song off-shelf task on the third operation song library.
6. The library updating method according to any one of claims 1 to 5, wherein the checking the sorted updated library, and if there is no error, taking the sorted updated library as a final updated library comprises:
checking whether each operation of the newly added song data insertion, the cold song data deletion, the singer information insertion and the song off-shelf task has errors or not and checking whether the updated song library and the data thereof after the arrangement have errors or not;
and if no error exists, determining the updated music database after arrangement as the final updated music database, otherwise, abandoning the updated music database after arrangement.
7. The library updating method according to any one of claims 1 to 5, wherein the method further comprises:
and in the initialization stage of the starting-up music library, according to the comparison copying condition and the upgrading replacement condition, covering the finally updated music library with the music library left in the last time of music library updating.
8. A curved storehouse renew device, its characterized in that, the device includes:
the updating module is used for periodically executing tasks of newly-added song data insertion, cold song data deletion, singer information insertion and song off-shelf to an original song library according to song related resource information requested from the cloud to obtain a primary updated song library, wherein the song related resource information comprises all song ordering quantity resources, newly-added 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;
and the error detection module is used for checking the sorted updated song library, and if no error exists, the sorted updated song library is used as a final updated song library.
9. 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 7 when executing the computer program.
10. A non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 7.
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 true CN111488483A (en) 2020-08-04
CN111488483B 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)

Cited By (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
CN113726893A (en) * 2021-08-31 2021-11-30 广州艾美网络科技有限公司 Method and device for updating song library, KTV box, song server and network KTV system

Citations (15)

* 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
US20060056324A1 (en) * 2004-09-10 2006-03-16 Nokia Corporation Apparatus and method to provide mobile music appliance with subscription-based play-list service
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

Patent Citations (15)

* 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
US20060056324A1 (en) * 2004-09-10 2006-03-16 Nokia Corporation Apparatus and method to provide mobile music appliance with subscription-based play-list service
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
"雷客"惊艳"点歌机", 数字社区&智能家居, no. 03 *

Cited By (3)

* 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
CN113726893A (en) * 2021-08-31 2021-11-30 广州艾美网络科技有限公司 Method and device for updating song library, KTV box, song server and network KTV system
CN113726893B (en) * 2021-08-31 2024-01-09 广州艾美网络科技有限公司 Method and device for updating music library, KTV box, song server and network KTV system

Also Published As

Publication number Publication date
CN111488483B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
US6367075B1 (en) Method and apparatus for producing instructions describing the removal of updates to a computer system
US6289509B1 (en) Software patch generator
US6675180B2 (en) Data updating apparatus that performs quick restoration processing
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN111078481B (en) Method, device, electronic equipment and storage medium for acquiring configuration checklist
CN111443912A (en) Page rendering method and device based on components, computer equipment and storage medium
CN107368513B (en) Method and device for updating client database
CN111488483B (en) Method, device, terminal and non-transitory computer readable storage medium for updating a library
CN111596945B (en) Differential upgrading method for dynamic multi-partition firmware of embedded system
CN116431520A (en) Test scene determination method, device, electronic equipment and storage medium
CN112988280B (en) Configuration data processing method and device
CN112948485B (en) Question-answer data synchronization method, device, system, server and storage medium
CN114385657A (en) Data storage method, device and storage medium
CN112540776A (en) Operating system image management method based on ISO9660 image slicing duplicate removal technology
CN113760600A (en) Database backup method, database restoration method and related device
CN112164433A (en) Hospital background data processing method and system
CN111209075A (en) Multi-language interface maintenance method, system, storage medium and intelligent device
CN111142965A (en) Language configuration method and device, electronic equipment and storage medium
CN116664129B (en) Block chain account book data iteration method, electronic equipment and readable storage medium
CN117251500B (en) Dynamic read-write separation method for database
CN112445390B (en) Submenu selection method and device and terminal equipment
CN117971279A (en) Rollback method and device of system version and server
CN113742002A (en) Method, device, equipment and storage medium for acquiring dependency relationship of dynamic library
CN115185559A (en) Method and device for determining sequence of software versions
CN116301597A (en) Data storage method, device, equipment and storage medium

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