Soporte de The Movie Database

Hi. First I would say sorry if it's hard to read because I am not a native speaker.

I've just started to learn about using this API and doing some experiments to get in this thing. I tried to use COMMA and PIPE separation for 'with_release_type' as the document says it can be, but I faced the problem that both comma and pipe separation put out same result.

The below are the queries I used for the test. First one used pipe and expected to output many results matched either 3 or 4, and the second used comma and expected to output NONE because there is no movie released both in theater and digital within designated period (only two digital-only movies returned for '4 only' discover query). But both queries output 23 results and it seems both comma and pipe are processed like pipe.

https://api.themoviedb.org/3/discover/movie?api_key=[api_key]&language=ko-KR&region=KR&sort_by=primary_release_date.desc&include_adult=false&include_video=false&page=1&primary_release_date.gte=2019-10-01&primary_release_date.lte=2019-11-01&with_release_type=3|4&with_original_language=ko

https://api.themoviedb.org/3/discover/movie?api_key=[api_key]&language=ko-KR&region=KR&sort_by=primary_release_date.desc&include_adult=false&include_video=false&page=1&primary_release_date.gte=2019-10-01&primary_release_date.lte=2019-11-01&with_release_type=3,4&with_original_language=ko

please let me know if I'm doing something wrong . Thanks a lot to all.

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

Jump to last post

You are correct to assume essentially zero movies with 3 AND 4 release types. Having looked at the code just now though, I can tell you I am not executing the and/or logic on with_release_type. I am only executing this filer as an OR, no matter what you enter (comma or pipe.)

Thanks for quick reply. Thx.

No problem. I could add the AND execution to with_release_type but I suspect it would almost never get used, so it's a fairly low priority.

¿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 discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
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