Soporte de The Movie Database

I am trying to run concurrent threads which each do their own TMDB lookups, however it appears that the python module is not thread safe and I can't find a way of creating a new instance of the import without actually copying the entire package or using multiprocessing which dupes the entire process space.

Has anyone else run into this problem/knows how to solve it?

Thanks!

2 respuestas (en la página 1 de 1)

Jump to last post

Hi @quietearth We don't maintain the libraries so you'll probably have better luck contacting the developer directly.

Unless someone else comes along who has experience with it of course...

For those searching from the future:

I cut out the tmdb3 caching backend (as it used a single file) and directly cached every entry by modifying put() and get() which is where all lookups are fed through (cache.py). Also, all tmdb3 lookups, eg searchMovie, require locks. This includes instance shortcuts such as title.imdb and title.alternative_titles which also performed additional lookups when accessed.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión