To automate the content of the catalog of films and series in Smarty, you can use external sources of meta. At the moment, 2 sources are integrated into Smarty:
- KINOPOISK_API_UNOFFICIAL — unofficial API for obtaining meth about movies from the resource Kinopoisk. The access key is configured using the option
.TVMIDDLEWARE_KINOPOISK_API_UNOFFICIAL_API_KEY - TMDB — not available in Russia, has the ability to import meth in different languages using the parameter
TVMIDDLEWARE_TMDB_IMPORT_LANGUAGE. The access key is configured using the optionTVMIDDLEWARE_TMDB_API_KEYWhen creating a Video object, it is necessary to specify whether it is a film or a series (both when creating Video in the admin and through the admin) API).
Scenarios for the use of meth sources
Creation/editing of films and actors in adminka
When creating a film in the admin, you need to specify the identifier of the film in the external system in a special field and click on the button « Download data » The data will be loaded for a while, after which the empty fields will be filled with information from an external resource. For image fields, the field with the image URL is filled from which, after clicking on the button «Save» the image is downloaded to the Smarty server.


Create/Edit Movies Through Content API
To download meth for movies and TV shows when working through the API, you should transfer the parameter load_meta methodically VideoCreate/VideoModify. To load meths for actors, an indication of the parameter is required movie_db_id request ActorCreate/ActorModify.
Integration with online cinemas
Not all integrated online cinemas provide a complete set of meths for their films, for example, for Premier movies, no data on actors is provided — this information can be filled in using the option -load_actor_meta_from_mdb team premier_sync_content.
Available Meta for Films/Series
| Field | KINOPOISK_API_UNOFFICIAL | TMDB |
| Title | eat | eat |
| Original | eat | eat |
| Age rating | eat | eat |
| Cinema search rating | eat | eat |
| IMDB rating | eat | eat |
| Duration of film | eat | eat |
| Description | eat | eat |
| Brief description | eat | no |
| Language | no | no |
| Countries of production | eat | eat |
| Year of release | eat | eat |
| Directors | eat | eat |
| Actors | eat | eat |
| Genres | eat | eat |
| Poster | eat | eat |
| Screenshot from the film | eat | no |
| Banner advertising | no | no |
| Seasons of the series | eat | no |
| Series series | eat | no |
| Series titles | eat | no |
| Descriptions of series | eat | no |
Affordable Meta for Actors
| Field | KINOPOISK_API_UNOFFICIAL | TMDB |
| Name | eat | eat |
| Original | eat | eat |
| Paul | eat | eat |
| Date of birth | eat | eat |
| Country | eat | eat |
| Profession | eat | eat |
| Biography | no | no |
| Photo | eat | eat |
| Actor shot | no | no |
FAQ
How will the movie/actor data behave if you start importing meth twice?
- When reimporting a film's meta, old descriptions and images are only deleted if they are replaced by new data.
- Re-importing meta for actors fills in data only for new actors and actors without photos.