Disclosure of Invention
The embodiment of the invention provides a method and a device for storing and displaying film information, which are used for solving the problems of poor pertinence and high search cost of the existing film information display method.
The embodiment of the invention provides a method for storing movie information, which comprises the following steps:
sending information of at least one pre-established film data sub-library to a terminal, wherein the film data sub-library comprises part of film information of a film database;
receiving a film information acquisition request aiming at a film data sub-library sent by a terminal;
and sending the film information corresponding to the film data sub-database to a terminal according to the film information acquisition request.
Optionally, before the sending information of the at least one pre-established movie database to the terminal, the method further includes:
receiving screening operation of a film database triggered by an administrator;
and establishing a film data sub-database, and storing the film information which accords with the screening condition corresponding to the screening operation in the film data sub-database to the film data sub-database.
Optionally, the information of the movie database includes a movie database name and movie database introduction information.
The embodiment of the invention provides a method for displaying film information, which comprises the following steps:
receiving information of at least one film data sub-library sent by a server;
displaying the information of the film data sub-database;
receiving a selection operation of a film data sub-database triggered by a user, and sending a film information acquisition request to a server according to the selection operation;
receiving film information which is sent by a server and corresponds to the selected film data sub-database;
and displaying the film information.
Optionally, the movie information includes:
film name, film poster, film actor, and film director.
An embodiment of the present invention provides a movie information storage device, including:
the system comprises a film data sub-library information sending unit, a terminal and a display unit, wherein the film data sub-library information sending unit is used for sending information of at least one pre-established film data sub-library to the terminal, and the film data sub-library comprises part of film information of the film database;
the device comprises a film information acquisition request receiving unit, a film information acquisition request processing unit and a film information acquisition unit, wherein the film information acquisition request receiving unit is used for receiving a film information acquisition request aiming at a film data sub-library sent by a terminal;
and the film information sending unit is used for sending the film information corresponding to the film data sub-library to a terminal according to the film information acquisition request.
Optionally, the method further comprises:
the screening operation receiving unit is used for receiving screening operation of the film database triggered by an administrator;
and the film data sub-database establishing unit is used for establishing a film data sub-database and storing the film information which accords with the screening condition corresponding to the screening operation in the film data sub-database into the film data sub-database.
Optionally, the information of the movie database includes a movie database name and movie database introduction information.
An embodiment of the present invention provides a movie information display device, including:
the movie data sub-library information receiving unit is used for receiving the information of at least one movie data sub-library sent by the server;
the film data sub-library information display unit is used for displaying the information of the film data sub-library;
the system comprises a film information acquisition request sending unit, a server and a display unit, wherein the film information acquisition request sending unit is used for receiving selection operation of a film database triggered by a user and sending a film information acquisition request to the server according to the selection operation;
the film information receiving unit is used for receiving the film information which is sent by the server and corresponds to the selected film data sub-database;
and the film information display unit is used for displaying the film information.
Optionally, the movie information includes:
film name, film poster, film actor, and film director.
The method and the device for storing and displaying the film information provided by the embodiment of the invention send the information of at least one pre-established film data sub-database to a terminal, wherein the film data sub-database comprises part of film information of the film database; receiving a film information acquisition request aiming at a film data sub-library sent by a terminal; and sending the film information corresponding to the film data sub-database to a terminal according to the film information acquisition request. The method comprises the steps of establishing a film data sub-database based on a film database, and sending film information of the film data sub-database to a terminal according to selection of a user; the terminal displays the film information in the film data sub-library to the user; the pertinence of showing the film information is improved, and meanwhile, the searching time of a user is reduced.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Fig. 1 is a flowchart illustrating a movie information saving method according to an embodiment of the present invention. As shown in fig. 1, the embodiment of the present invention uses a server as an execution main body, and includes:
s11: sending information of at least one pre-established film data sub-library to a terminal, wherein the film data sub-library comprises part of film information of a film database;
it should be noted that, the server according to the embodiment of the present invention sends the information of the at least one established movie database to the terminal. In practical applications, the information of the movie database includes a name of the movie database and introduction information of the movie database. When the server establishes a plurality of film data sub-databases in advance, the plurality of film data sub-databases are sent to the terminal in a list form so that the user can select from the plurality of film data sub-databases.
S12: receiving a film information acquisition request aiming at a film data sub-library sent by a terminal;
it should be noted that, the user selects the movie data sub-library displayed by the terminal, and the terminal sends a movie information acquisition request for the movie data sub-library to the server according to the selection operation of the user.
S13: sending the film information corresponding to the film data sub-database to a terminal according to the film information acquisition request;
it should be noted that, the server according to the embodiment of the present invention does not send all movie information to the terminal as in the prior art, but sends movie information corresponding to the movie database selected by the user to the terminal.
The method for storing the film information provided by the embodiment of the invention comprises the steps of establishing a film data sub-library based on a film database, and sending the film information of the film data sub-library to a terminal according to the selection of a user; the terminal displays the film information in the film data sub-library to the user; the pertinence of showing the film information is improved, and meanwhile, the searching time of a user is reduced.
In an optional implementation manner of the embodiment of the present invention, before the sending information of at least one pre-established movie database to the terminal, the method further includes:
receiving screening operation of a film database triggered by an administrator;
and establishing a film data sub-database, and storing the film information which accords with the screening condition corresponding to the screening operation in the film data sub-database to the film data sub-database.
For example, the administrator opens the management page of the server, enters the movie database building page after inputting the correct user name and password. The administrator establishes a screening function of the page through the film database, inputs screening conditions such as (2016, U.S. and science fiction films), stores the film information meeting the screening conditions from the film database into the film database, and names the sub-database as a 'latest science fiction film'; the administrator can also input the introduction information of the film data sub-library, so that the user can conveniently select a favorite film data sub-library from each film data sub-library according to the introduction information of the film data sub-library.
Fig. 2 is a flowchart illustrating a movie information presentation method according to an embodiment of the present invention. As shown in fig. 2, the embodiment of the present invention uses a terminal as an execution main body, and includes:
s21: receiving information of at least one film data sub-library sent by a server;
it should be noted that, in the embodiment of the present invention, the server establishes at least one movie data sub-library in advance, and the server sends information of the movie data sub-library to the terminal.
S22: displaying the information of the film data sub-database;
it should be noted that, the terminal according to the embodiment of the present invention receives the information of the movie database sent by the server and then displays the information. When a plurality of film data sub-libraries exist, the terminal displays the information of each film data sub-library in a list form.
S23: receiving a selection operation of a film data sub-database triggered by a user, and sending a film information acquisition request to a server according to the selection operation;
for example, the movie data sub-libraries displayed by the terminal include a latest science fiction movie, a continental love movie and a homemade swordsman movie, and the user selects the latest science fiction movie from the three movie data sub-libraries; and after receiving the selection operation of the latest science fiction large film triggered by the user, the terminal sends a movie information acquisition request of the latest science fiction large film to the server.
S24: receiving film information which is sent by a server and corresponds to the selected film data sub-database;
it should be noted that the server sends the movie information corresponding to the movie database selected by the user to the terminal.
S25: displaying the film information;
in practical applications, the film information includes a film name, a film poster, film actors and a film director.
The method for displaying the film information provided by the embodiment of the invention comprises the steps of establishing a film data sub-library based on a film database, and sending the film information of the film data sub-library to a terminal according to the selection of a user; the terminal displays the film information in the film data sub-library to the user; the pertinence of showing the film information is improved, and meanwhile, the searching time of a user is reduced.
Fig. 3 is a schematic structural diagram of a movie information storage apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus of the embodiment of the present invention includes a movie database information sending unit 31, a movie information acquisition request receiving unit 32, and a movie information sending unit 33, specifically:
a film data sub-library information sending unit 31, configured to send information of at least one pre-established film data sub-library to a terminal, where the film data sub-library includes part of film information of the film database;
a movie information acquisition request receiving unit 32, configured to receive a movie information acquisition request for the movie database sent by the terminal;
and a movie information sending unit 33, configured to send, according to the movie information acquisition request, movie information corresponding to the movie database to a terminal.
The film information storage device provided by the embodiment of the invention establishes the film data sub-library based on the film database, and sends the film information of the film data sub-library to the terminal according to the selection of the user; the terminal displays the film information in the film data sub-library to the user; the pertinence of showing the film information is improved, and meanwhile, the searching time of a user is reduced.
In an optional implementation manner of the embodiment of the present invention, the apparatus further includes:
the screening operation receiving unit is used for receiving screening operation of the film database triggered by an administrator;
and the film data sub-database establishing unit is used for establishing a film data sub-database and storing the film information which accords with the screening condition corresponding to the screening operation in the film data sub-database into the film data sub-database.
Specifically, the information of the movie database includes a movie database name and movie database introduction information.
Fig. 4 is a schematic structural diagram of a movie information presentation apparatus according to an embodiment of the present invention. As shown in fig. 4, the apparatus of the embodiment of the present invention includes: a movie data sub-library information receiving unit 41, a movie data sub-library information presentation unit 42, a movie information acquisition request sending unit 43, a movie information receiving unit 44, and a movie information presentation unit 45, specifically:
a movie data sub-library information receiving unit 41, configured to receive information of at least one movie data sub-library sent by the server;
a movie data sub-library information display unit 42, configured to display information of the movie data sub-library;
a movie information acquisition request sending unit 43, configured to receive a selection operation of the movie database triggered by a user, and send a movie information acquisition request to the server according to the selection operation;
a movie information receiving unit 44, configured to receive movie information sent by the server and corresponding to the selected movie database;
and a movie information display unit 45, configured to display the movie information.
The film information display device provided by the embodiment of the invention establishes the film data sub-library based on the film database, and sends the film information of the film data sub-library to the terminal according to the selection of the user; the terminal displays the film information in the film data sub-library to the user; the pertinence of showing the film information is improved, and meanwhile, the searching time of a user is reduced.
Specifically, the movie information includes:
film name, film poster, film actor, and film director.
The apparatus of the embodiment of the present invention may be used to implement the above method embodiments, and the principle and technical effect are similar, which are not described herein again.
Fig. 5 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Referring to fig. 5, the electronic device includes: a first processor (processor)51, a first memory (memory)52, and a first bus 53; wherein,
the first processor 51 and the first memory 52 complete communication with each other through the first bus 53;
the first processor 51 is used for calling program instructions in the first memory 52 to execute the movie information saving method provided by the above-mentioned embodiments of the methods.
In addition, the logic instructions in the first memory 52 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Fig. 6 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Referring to fig. 6, the electronic device includes: a second processor (processor)61, a second memory (memory)62, and a second bus 63; wherein,
the second processor 61 and the second memory 62 complete communication with each other through a second bus 63;
the second processor 61 is configured to call program instructions in the second memory 62 to execute the movie information presentation method provided by the above-mentioned embodiments of the method.
In addition, the logic instructions in the second memory 62 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiments provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The method and the device for storing and displaying the film information provided by the embodiment of the invention send the information of at least one pre-established film data sub-database to a terminal, wherein the film data sub-database comprises part of film information of the film database; receiving a film information acquisition request aiming at a film data sub-library sent by a terminal; and sending the film information corresponding to the film data sub-database to a terminal according to the film information acquisition request. The method comprises the steps of establishing a film data sub-database based on a film database, and sending film information of the film data sub-database to a terminal according to selection of a user; the terminal displays the film information in the film data sub-library to the user; the pertinence of showing the film information is improved, and meanwhile, the searching time of a user is reduced.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.