[UPD ES] Filmaffinity 4.0

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Taino75
Posts: 10
Joined: 2025-01-31 22:00:12

Re: [UPD ES] Filmaffinity 4.0

Post by Taino75 »

Gracias por el esfuerzo. Cuesta, pero va funcionando. Lo que no consigo, es que me ponga el REPARTO, los actores. ¿Hago algo mal o es fallo del script?

* * * * * *

Thanks for the effort. It's hard, but it's working. What I can't seem to get is the CAST, the actors. Am I doing something wrong, or is it a script error?
masterchipo
Posts: 114
Joined: 2010-02-22 23:15:05

Re: [UPD ES] Filmaffinity 4.0

Post by masterchipo »

Y seguí intentando, pero no hubo forma.
Agradezco a todos los implicados, pero no me funciona la ruta.
Probé con todo y todas las C D ,cree una carpeta de temporales en descarga y no me sale la información encuentra la película al apretar f6 pero no guarda la información en el lugar correcto.
Seguiré usando IMDB, hasta que se pueda solucionar esto
silverluckyman
Posts: 4
Joined: 2025-07-14 14:38:42

Re: [UPD ES] Filmaffinity 4.0

Post by silverluckyman »

masterchipo wrote: 2025-07-16 18:51:32 Y seguí intentando, pero no hubo forma.
Agradezco a todos los implicados, pero no me funciona la ruta.
Probé con todo y todas las C D ,cree una carpeta de temporales en descarga y no me sale la información encuentra la película al apretar f6 pero no guarda la información en el lugar correcto.
Seguiré usando IMDB, hasta que se pueda solucionar esto

Pero cuando pones a buscar la película con el programa, la buscas por titulo o directamente con el link de filmaffinity?

A mi solo me funciona poniendo el link y re-escribes todo el tiempo sobre el mismo archivo de la carpeta de temporal (AMC_FilmAffinity.html)
Taino75 wrote: 2025-07-16 18:14:31 Gracias por el esfuerzo. Cuesta, pero va funcionando. Lo que no consigo, es que me ponga el REPARTO, los actores. ¿Hago algo mal o es fallo del script?

* * * * * *

Thanks for the effort. It's hard, but it's working. What I can't seem to get is the CAST, the actors. Am I doing something wrong, or is it a script error?
No lo se, pero será que no tienes clicada esa opción y por eso no te lo añade?
Cuando te sale la info que te va a añadir, a la izda, tienes todas las opciones, mira si tienes la de interpretes sin clicar.
raulsara01
Posts: 11
Joined: 2024-09-18 08:26:59

Re: [UPD ES] Filmaffinity 4.0

Post by raulsara01 »

Hola he probado el nuevo script de Filmaffinity y va muy bien pero es para cuando quieres documentar pocas peliculas, en mi caso una vez al año meto varios cientos de pelis y no me es practico. Al final tiraré de IMDB, una vez con los datos de las pelis, lo exporto a CSV, con una función de excel traduzco Sinopsis y Comentarios y después lo vuelvo a importar. Va perfecto y tengo toda la info además de sinopsis y comentarios en castellano. Para la categoria y el pais que también esta en ingles, hago un replace en el excel (Por ejemplo Comedy por Comedia) y asi lo tengo todo en castellano. Es mas laborioso pero cuando hablamos de muchas pelis sale a cuenta. Lastima que no se haya encontrado ninguna solución para importar las pelis directamente de Filmaffinity.

Un saludo
MrObama2022
Posts: 112
Joined: 2022-02-02 00:03:55

Re: [UPD ES] Filmaffinity 4.0

Post by MrObama2022 »

Ertehe wrote: 2025-07-13 14:40:57
antp wrote: 2025-07-08 06:56:07
Ertehe wrote: 2025-07-05 15:28:00 Mientras alguien encuentra una solución, yo para salir del paso, estoy utilizando el script de IMDB

[...]
Aquí dejo el script por si a alguien le interesa.
https://drive.proton.me/urls/PQ8DEY2VDM#E84yh8ktAp1e
Maybe it would be good to find a way to integrate your changes as options of the official script, as that one is still evolving it will be difficult to keep the two up to date separately.
Maybe check with MrObama2022 if he can include some of your changes?
viewtopic.php?p=92469#p92469
Alright, I'll check with him, thanks!
I released a new IMDB version using @Ertehe improvements, if you have requests or you want test and report bugs please use this thread
MrObama2022
Posts: 112
Joined: 2022-02-02 00:03:55

Re: [UPD ES] Filmaffinity 4.0

Post by MrObama2022 »

I have an idea for fixing Filmaffinity (if you like it).

Open Windows prompt then try this:

curl "https://www.filmaffinity.com/es/film811435.html" -H "Accept: text/html, */*" -H "Accept-Language: it" -H "DNT: 1" -H "Priority: u=0, i" -H "Sec-Ch-Ua: \"Not)A;Brand\";v=\"8\", \"Chromium\";v=\"138\", \"Google Chrome\";v=\"138\"" -H "Sec-Ch-Ua-Mobile: ?0" -H "Sec-Ch-Ua-Platform: \"Windows\"" -H "Sec-Fetch-Dest: Document" -H "Sec-Fetch-Mode: Navigate" -H "Sec-Fetch-Site: None" -H "Sec-Fetch-User: ?1" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36"

This works. So this is the idea: a simple powershell script that starts at windows login. The script monitor a directory. When AMC must visit filmaffinity it write the url in a txt file (requesthttp.txt) inside this directory. When the file is changed then the powershell script use curl to access that file and write the output in a result.txt file. The Filmaffinity script monitor the directory and when the result.txt is written it access to get the html.

I can simply all the steps for newbies and you will get a no-hassle working script. I hope so ... it's 6:36 am so I should have same rest now, but tell me if you like the idea and if you like to have a beta script to test on your pc.
Taino75
Posts: 10
Joined: 2025-01-31 22:00:12

Re: [UPD ES] Filmaffinity 4.0

Post by Taino75 »

silverluckyman wrote: 2025-07-16 19:21:19
masterchipo wrote: 2025-07-16 18:51:32 Y seguí intentando, pero no hubo forma.
Agradezco a todos los implicados, pero no me funciona la ruta.
Probé con todo y todas las C D ,cree una carpeta de temporales en descarga y no me sale la información encuentra la película al apretar f6 pero no guarda la información en el lugar correcto.
Seguiré usando IMDB, hasta que se pueda solucionar esto

Pero cuando pones a buscar la película con el programa, la buscas por titulo o directamente con el link de filmaffinity?

A mi solo me funciona poniendo el link y re-escribes todo el tiempo sobre el mismo archivo de la carpeta de temporal (AMC_FilmAffinity.html)
Taino75 wrote: 2025-07-16 18:14:31 Gracias por el esfuerzo. Cuesta, pero va funcionando. Lo que no consigo, es que me ponga el REPARTO, los actores. ¿Hago algo mal o es fallo del script?

* * * * * *

Thanks for the effort. It's hard, but it's working. What I can't seem to get is the CAST, the actors. Am I doing something wrong, or is it a script error?
No lo se, pero será que no tienes clicada esa opción y por eso no te lo añade?
Cuando te sale la info que te va a añadir, a la izda, tienes todas las opciones, mira si tienes la de interpretes sin clicar.
Tengo marcada la opción Intérpretes, pero aún así, no me los añade. No sé el motivo.
antp
Site Admin
Posts: 9734
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [UPD ES] Filmaffinity 4.0

Post by antp »

MrObama2022 wrote: 2025-07-20 04:37:50 I have an idea for fixing Filmaffinity (if you like it).
The problem of making too-automatic solutions for FilmAffinity is that they could complain about AMC then, that gets their data without approval.
I guess it is OK if people make it on their side, but I won't include it officially (also the reason why I didn't put an option to change the user agent in AMC: so site owners can block it easily if they want).
MrObama2022
Posts: 112
Joined: 2022-02-02 00:03:55

Re: [UPD ES] Filmaffinity 4.0

Post by MrObama2022 »

antp wrote: 2025-07-21 07:05:57
MrObama2022 wrote: 2025-07-20 04:37:50 I have an idea for fixing Filmaffinity (if you like it).
The problem of making too-automatic solutions for FilmAffinity is that they could complain about AMC then, that gets their data without approval.
I guess it is OK if people make it on their side, but I won't include it officially (also the reason why I didn't put an option to change the user agent in AMC: so site owners can block it easily if they want).
Totally agree but it is ok for you if I release only in this forum CurlHandlerUnofficial.ifs and a filmAffinityUnofficial.ifs ? This ifs will not be updated in official script dir. By the way, I'm at 75% of this work but I don't know yet if it will work or not.
MrObama2022
Posts: 112
Joined: 2022-02-02 00:03:55

Re: [UPD ES] Filmaffinity 4.0

Post by MrObama2022 »

Ok, I just finished. This works on my pc BUT PLEASE DON'T USE. THIS IS ONLY FOR STUDY, LOOK AT THE CODE BUT DON'T USE. I HAVE TO DO A LOT OF TEST. REPEAT: DON'T USE AND WAIT, THIS IS AN HIGHLY EXPERIMENTAL VERSION

ExternalCurlHandler.pas
FilmAffinity (ES).ifs unofficial 5.0 alpha 1

Here’s how it works. All the work is handled by an external library, ExternalCurlHandler.pas.
FilmAffinity (ES).ifs is based on the old version of the script and works as usual. Very little has changed:
now it uses ExternalCurlHandler.pas instead of StringUtils7552 (which is already called by ExternalCurlHandler.pas); it uses GetPage5Advanced() instead of GetPage(), and when starting, it performs a check to see if the PC setup is okay (if (not setupScript()) then exit;).
So far, everything is very simple. This approach allows any script to make use of ExternalCurlHandler.pas without being heavily changed: you just reference the unit in place of StringUtils7552, replace GetPage() with GetPage5Advanced(), and (optional) apply the initial check.

The library does one simple thing: through the setupScript() function, it creates a subfolder in which it places a single batch file.
If your catalog is located at D:\catalogs\movies.amc, the subfolder will be D:\catalogs\movies_curlscript\, and inside it, the created file will be called setup.bat.

This file needs to be run only once (I still have to make changes to handle more catalogs!).
So, the first time FilmAffinity (ES) is launched, it creates this file and you’ll be asked to close the window and run the `setup.bat` file.

The GetPage5Advanced() function, on the other hand, is an alternative to GetPage5() with the same parameters, but it is based on curl.
It writes the URL (and the headers) to call into a text file (curlRequestHeaders.txt) and waits for a response text file (curlOutput.html).
At the moment, the function still needs to be completed, but it already works partially.
This was my original idea.

The magic is done by the setup.bat file, which performs some fairly complex operations:

1. It checks if Task Scheduler has a process called ExternalCurlHandler. If this process doesn’t exist, it creates it (it asks for admin permission).
This process will automatically run every time the PC starts and will execute the file ExternalCurlHandler.ps1.
The ExternalCurlHandler.ps1 file is the one that waits for curlRequestHeaders.txt to appear and then generates the `curlOutput.html` file.

2. It creates the file ExternalCurlHandler.ps1 if it doesn’t already exist.

3. It manually starts ExternalCurlHandler.ps1 if it's not already running (so you don't need to reboot your pc).

I’ve tested the entire setup locally on my PC and it works. You need Windows 10 or 11, I don't know if this could works on Windows 7 or 8 (maybe ...)
For the end user, aside from the initial setup, everything is transparent — nothing changes, and the script works as it always has.
No browser launches, execution time is the same — everything is identical: 100% the same as before.

I tested both by searching with "Superman" and by directly providing the URL:
[https://www.filmaffinity.com/es/film811435.html](https://www.filmaffinity.com/es/film811435.html)

The only limitation of this solution is image handling — but fortunately, for movies, there are no changes needed in this script regarding that.

This is a "last chance option" when everything fails and you still need to access to a site. This will never be an official version and you will never find it in official release and official update scripts.
MrObama2022
Posts: 112
Joined: 2022-02-02 00:03:55

Re: [UPD ES] Filmaffinity 4.0

Post by MrObama2022 »

https://dai.ly/k5YFHzCfgEYWPzDtMAu

The powershell window is for debug only, in the real world it will be 100% hidden
raulsara01
Posts: 11
Joined: 2024-09-18 08:26:59

Re: [UPD ES] Filmaffinity 4.0

Post by raulsara01 »

Hi MrObama2022, I've modified the Filmaffinity script several times when the webmaster made changes, but this completely eludes me. You're doing a great job. It's hard to follow everything you're saying, but from what I understand, we can continue using the script as we have been doing up until now. You'll post the script with instructions for using it once you've tested it thoroughly. It's clear to us that this won't be the official script. Thanks for everything.
Post Reply