[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: 13
Joined: 2025-01-31 22:00:12

Re: [UPD ES] Filmaffinity 4.0

Post by Taino75 »

Respecto al bloqueo, a mí se suele pasar cuando hago entre 20 y 25 búsquedas casi seguidas.

Para intentar evitarlo, suelo hacer unas 15 búsquedas y luego dejo pasar 40/50 minutos y hago otras tantas. Aún así, en alguna ocasión me ha saltado el bloqueo, pero al menos puedo añadir unas pocas más cada día.

Pasito a pasito. Gracias.
Garada wrote: 2025-09-16 15:18:15 Ayer me tocó hacer copia de seguridad y actualizar el catálogo. Así que he podido hacer pruebas reales.

Al final he optado por desechar el script que uso normalmente y usar el script oficial actualizado pero he añadido los cambios que me gustan: Borrado del texto "(FILMAFFINITY)" que pone al final en la descripción y que si ya hay una duración en la ficha (que viene del archivo de vídeo) que no la modifique. Si interesa, añado enlace de descarga.

He estado metiendo una buena cantidad de pelis y series y antes de terminar me salió el problema del bloqueo. Con los cambios que se han hecho el uso ha sido normal, sin solicitudes desproporcionadas y como si usara el navegador. La mayoría con un resultado o sólo una pantalla, en pocos tuve que solicitar más páginas de resultados pero todo a velocidad de usuario. 😕
Pues eso, incluso así salió el problema del bloqueo cuando estaba terminando. Al final tuve que reiniciar el router para terminar las que faltaban por catalogar ya que el bloqueo no es de unos minutos, me cansé de esperar a que me desbloquearan. 😉

Cuando me bloqueó tuve oportunidad de probar con proxy y va bien pero es una solución complicada para el usuario medio, tiene que modificar el script. A menos que se use un VNP o Proxy a nivel de sistema.

Y de paso añadí al script que detecte que ha sido bloqueado y avise al dar los resultados. 😁
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

Garada wrote: 2025-09-15 00:26:11Por cierto, para mi uso personal tengo una versión antigua que fui corrigiendo a medida que hacían cambios en Filmaffinity y no se corresponde con la oficial. Hasta el último cambio no me dio por buscar si habían actualizaciones y no sabía de este hilo.
El rollo viene pq al hacer esta corrección al oficial, me he dado cuenta que no estaba haciendo caso a la opción "DontAsk" y siempre descargaba automáticamente la información si sólo hay un resultado.
Cómo he corregido de paso la opción para que funcione... la pregunta es si en algún momento se decidió que fuera así y debo dejarlo como estaba antes: este activado o no la opción "DontAsk", si hay un resultado no se muestra y se descarga la información.
Pues ni idea de si se hizo a propósito o fue algún despiste en alguna actualización.
No lo utilizaba nunca hasta ahora con tú ultima versión y te tengo que decir que a mi me parece perfecto como lo has dejado. Que pregunte y pida confirmación de todo si no está activado. Y que si está activado pues coja directamente el titulo original o el titulo traducido si no está el original para hacer la búsqueda, y que si solo hay un resultado pues que se salte la ventana de resultados de búsqueda y pase directamente a la de datos de la película para que lo confirmemos.
Como ya comenté yo copiaba el nombre del archivo de la película y lo pegaba para hacer la búsqueda. Ahora lo pego en la ficha y después ejecuto el script y con el modo DontAsk activado tal y como lo has dejado un 90% de las veces me salto la ventana de búsqueda pasando directamente a la de descarga de información.

Por ponerle una pega y para rizar el rizo, pasa que en el caso de tener el DontAsk activado y tener los campos Título Original y Título Traducido de la ficha en blanco, al ejecutar el script da el mensaje de No hay resultados. Si en esta situación pues preguntara por el título como hace sin el DontAsk activado pues ya sería perfecto.
Es que me ha pasado ya algunas veces que se me ha olvidado de pegar el título antes de ejecutar el script :innocent: . La costumbre de ejecutar directamente el script con F6, ya se me irá quitando.
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

Garada wrote: 2025-09-16 15:18:15Al final he optado por desechar el script que uso normalmente y usar el script oficial actualizado pero he añadido los cambios que me gustan: Borrado del texto "(FILMAFFINITY)" que pone al final en la descripción y que si ya hay una duración en la ficha (que viene del archivo de vídeo) que no la modifique. Si interesa, añado enlace de descarga.
Pues a mi me interesa, si no te importa pues publica el enlace.

PD: Es la versión con la búsqueda paginada o normal?
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

Garada wrote: 2025-09-16 15:18:15 He estado metiendo una buena cantidad de pelis y series y antes de terminar me salió el problema del bloqueo. Con los cambios que se han hecho el uso ha sido normal, sin solicitudes desproporcionadas y como si usara el navegador. La mayoría con un resultado o sólo una pantalla, en pocos tuve que solicitar más páginas de resultados pero todo a velocidad de usuario. 😕
Pues eso, incluso así salió el problema del bloqueo cuando estaba terminando. Al final tuve que reiniciar el router para terminar las que faltaban por catalogar ya que el bloqueo no es de unos minutos, me cansé de esperar a que me desbloquearan. 😉

Cuando me bloqueó tuve oportunidad de probar con proxy y va bien pero es una solución complicada para el usuario medio, tiene que modificar el script. A menos que se use un VNP o Proxy a nivel de sistema.

Y de paso añadí al script que detecte que ha sido bloqueado y avise al dar los resultados. 😁
Pues parece que sistema de bloqueo es bastante agresivo, supongo tendrá en cuenta tanto peticiones muy seguidas como numero de peticiones en X tiempo.

Yo he hecho una prueba hoy con el navegador a ver si me bloqueaba. Utilizo Firefox y tengo la extensión Context Search web-ext, en esta tengo configurada una búsqueda de FilmAfinnity con lo cual puedo hacer búsquedas directas sin pasar por la página inicial de FilmAffinity, es decir tal y como hace el script.
He realizado unas 100 búsquedas seguidas, cerrando y abriendo navegador entre cada una y bastante rápido no más de 15-20s entre ellas. Pues no me ha bloqueado.

Así que o bien detecta algo diferente en el script que le indica que no es un navegador o otra cosa.
La otra cosa que veo diferente, aparte de utilizar un navegador, es que yo en la prueba que he hecho utilizo la URL de búsqueda normal en la extensión en lugar de la URL de búsqueda avanzada que utiliza el script.
El script utiliza

Code: Select all

https://www.filmaffinity.com/es/advsearch.php?page=1&stext=PALABRA BUSQUEDA
y yo en la extensión utilizo

Code: Select all

https://www.filmaffinity.com/es/search.php?stype=title&stext=PALABRA BUSQUEDA&orderby=relevance
Tendrá algo que ver? Que al detectar tantas búsquedas avanzadas directas desde la misma IP sin pasar por la página inicial acabe bloqueando?

Una pregunta a los que sabéis modificar el script ¿sería muy complicado modificarlo con la URL de búsqueda normal para probar si bloquea también?
La estructura de las paginas de resultados de la búsqueda normal y de la búsqueda avanzada son casi iguales, la principal diferencia es que en la normal también pone el año a la izquierda del mini poster de algunas películas. Así que los cambios entiendo que deberían ser mínimos en este sentido.
El principal cambio supongo que sería en la manera que el script genera las URLs de búsqueda. Por lo que yo veo, (mis conocimientos no dan para modificar pero algo pillo al ver el código del script :hihi: ), en la búsqueda avanzada suma 1 a cada pagina hasta que no encuentra >> lo que significa que es la última.
En la búsqueda normal la página va sumando 50 y también están los caracteres >> que desaparecen en la última página.

Code: Select all

https://www.filmaffinity.com/es/search.php?stype=title&stext=PALABRA BUSQUEDA&orderby=relevance
https://www.filmaffinity.com/es/search.php?stype=title&stext=PALABRA BUSQUEDA&from=50&orderby=relevance
https://www.filmaffinity.com/es/search.php?stype=title&stext=PALABRA BUSQUEDA&from=100&orderby=relevance
https://www.filmaffinity.com/es/search.php?stype=title&stext=PALABRA BUSQUEDA&from=150&orderby=relevance
etc...
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

Radagast wrote: 2025-09-21 04:05:14 Por ponerle una pega y para rizar el rizo, pasa que en el caso de tener el DontAsk activado y tener los campos Título Original y Título Traducido de la ficha en blanco, al ejecutar el script da el mensaje de No hay resultados. Si en esta situación pues preguntara por el título como hace sin el DontAsk activado pues ya sería perfecto.
Es que me ha pasado ya algunas veces que se me ha olvidado de pegar el título antes de ejecutar el script :innocent: . La costumbre de ejecutar directamente el script con F6, ya se me irá quitando.
Hecho, es sólo cambiar una línea
En mi caso no pego el título, añado la peli con "información de archivo" (F7) para el título y características del vídeo y luego busco la info con el script (F6). De hecho tengo activado las opciones para solo darle al botón "Añadir" y ya el AMC hace las dos cosas.
Radagast wrote: 2025-09-21 04:13:31 Pues a mi me interesa, si no te importa pues publica el enlace.

PD: Es la versión con la búsqueda paginada o normal?
Sí, con la paginación.
Dejo aquí el script actualizado:
https://mega.nz/file/wc1mjaqb#Bj9Hmdd1w ... qUC-d-HM6s
Radagast wrote: 2025-09-21 05:40:43 na pregunta a los que sabéis modificar el script ¿sería muy complicado modificarlo con la URL de búsqueda normal para probar si bloquea también?
Tardaría un poco más pero lo puedo mirar. Efectivamente, es casi igual pero creo que perdería alguna cosa que creo que nadie utiliza: buscar por director, guion, foto (?), música o productor.
antp
Site Admin
Posts: 9759
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [UPD ES] Filmaffinity 4.0

Post by antp »

@masterchipo if you pass around here, contact me via e-mail to re-enable your account. It seems that it was stolen by a spammer, so I blocked it.
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

Radagast wrote: 2025-09-21 05:40:43Una pregunta a los que sabéis modificar el script ¿sería muy complicado modificarlo con la URL de búsqueda normal para probar si bloquea también?
Hecho, te dejo el script para probarlo. Tiene un nombre diferente al original para que puedas mantener los dos (FilmAffinity V2 (ES))
El script te permite trabajar con la búsqueda avanzada como siempre o la normal, sólo tienes que cambiar el parámetro "AdvancedSearch"
https://mega.nz/file/Bd0mAR7R#eUbRbWbzI ... MLiZA8VuAA

La búsqueda normal se distingue fácilmente pq devuelve los resultados de 50 en 50.
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

Garada wrote: 2025-09-28 20:55:05Hecho, te dejo el script para probarlo. Tiene un nombre diferente al original para que puedas mantener los dos (FilmAffinity V2 (ES))
El script te permite trabajar con la búsqueda avanzada como siempre o la normal, sólo tienes que cambiar el parámetro "AdvancedSearch"
https://mega.nz/file/Bd0mAR7R#eUbRbWbzI ... MLiZA8VuAA

La búsqueda normal se distingue fácilmente pq devuelve los resultados de 50 en 50.
Eres un máquina Garada, porqué no hay un emoticono haciendo la ola si no te lo ponía :clapping:
A ver si el finde lo puedo probar que ando liado con el trabajo.
Yo creo que en algún punto del pasado ya tuvo que estar trabajando con la búsqueda normal. Hay una opción en el script llamada SortByYear que dentro tiene 2 opciones, ordenar por año o por relevancia. Y el orden por relevancia solo lo tiene la búsqueda normal, no existe en la avanzada. A no ser que antiguamente si que existiera ese orden en la avanzada cosa que no me suena.
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

No hay que darlas. 👍

No me había fijado en el detalle, es verdad.
De hecho hay código desactivado de una antigua función para analizar una página, debe de ser para la búsqueda estándar.

En la búsqueda estándar siguen funcionando las opciones SearchByTitle, SearchByCast y SortByYear
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

Garada wrote: 2025-09-28 20:55:05Hecho, te dejo el script para probarlo. Tiene un nombre diferente al original para que puedas mantener los dos (FilmAffinity V2 (ES))
El script te permite trabajar con la búsqueda avanzada como siempre o la normal, sólo tienes que cambiar el parámetro "AdvancedSearch"
https://mega.nz/file/Bd0mAR7R#eUbRbWbzI ... MLiZA8VuAA

La búsqueda normal se distingue fácilmente pq devuelve los resultados de 50 en 50.
Probado este fin de semana y funciona bien, la búsqueda normal parece más eficaz. Al estar ordenada por relevancia rara vez hay que buscar en la siguiente pagina, incluso buscando películas antiguas que en la avanzada al estar ordenada por año aparecen por las ultimas paginas.
Solo hay un bug por la forma en que actúa FilmAffinity en la búsqueda normal cuando solo hay 1 resultado.
En la búsqueda avanzada aunque solo exista un resultado siempre muestra la pagina de resultados. Si buscamos la película 8 millas muestra la página de resultado.

Code: Select all

https://www.filmaffinity.com/es/advsearch.php?stext=8+millas&stype[]=title&country=&genre=&fromyear=&toyear=
En cambio en la búsqueda normal si solo hay un resultado directamente muestra la página de la película, estilo a la opción DontAsk del script.

Code: Select all

https://www.filmaffinity.com/es/film642021.html
Cuando pasa esto el script da el error de que no se ha encontrado ninguna película. Supongo que espera la página de resultados pero se encuentra la de la película.
¿Quizá se podría solucionar haciendo que el script distinga si la URL devuelta es la de la película y entonces salte directamente a la parte del script que extrae los datos?

La URL de resultados siempre tiene la estructura

Code: Select all

https://www.filmaffinity.com/es/search........
y la linea 4 del código HTML

Code: Select all

<title>Resultados para........
y la URL de las películas siempre tiene la estructura

Code: Select all

https://www.filmaffinity.com/es/film........
y la linea 4 del código HTML

Code: Select all

<title>NOMBRE PELICULA........
PD: Sorprendentemente si se pone la opción SortByYear para que ordene los resultados por año medio funciona. La primera página aparece ordenada por año descendiente, las siguientes no
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

Sí, me dí cuenta del fallo cuando hay un resultado anoche buscando "Tango y Cash" pero era ya tarde para revisar código. 💤💤

Ya lo he arreglado y el error de la segunda página cuando se ordena por fechas. 👍
https://mega.nz/file/sBkiAQTJ#xujzighhS ... vBcNYXzkFI
antp
Site Admin
Posts: 9759
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [UPD ES] Filmaffinity 4.0

Post by antp »

Hi,
I didn't really follow how all this subject evolved in the last weeks, what can I say to users who ask what to do?
I suppose that the current system still relies on cURL then, seeing that the script here above seems to require ExternalCurlHandler.
Where is the last version of that one? Maybe I should include it officially in AMC then...
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

Garada wrote: 2025-10-06 18:47:52 Sí, me dí cuenta del fallo cuando hay un resultado anoche buscando "Tango y Cash" pero era ya tarde para revisar código. 💤💤

Ya lo he arreglado y el error de la segunda página cuando se ordena por fechas. 👍
https://mega.nz/file/sBkiAQTJ#xujzighhS ... vBcNYXzkFI
Probado y funciona todo OK.
Gracias compañero
Radagast
Posts: 72
Joined: 2016-04-22 16:07:15

Re: [UPD ES] Filmaffinity 4.0

Post by Radagast »

antp wrote: 2025-10-11 11:12:39 Hi,
I didn't really follow how all this subject evolved in the last weeks, what can I say to users who ask what to do?
I suppose that the current system still relies on cURL then, seeing that the script here above seems to require ExternalCurlHandler.
Where is the last version of that one? Maybe I should include it officially in AMC then...
Hello Antoine,
Thanks to the efforts and great work of MrObama2022 and Garada we now have a 100% functional script again.
Yes, it needs cURL to work, it's the only way to get around Filmaffinity's protection.
Currently to work I think it would need ExternalCurlHandler.pas, StringUtils7552.pas and StringUtils1.pas
Now the script allows to use both advanced and normal search, it is selected with the AdvancedSearch option.
To minimize the number of requests to FilmAffinity that can generate a block, the results are displayed paginated using the "find more" button to load the following pages in case there is more than one.
Garada implemented options in ExternalCurlHandler.pas in case some users use versions lower than W10, Linux or do not want to use VBS. They can be changed by editing ExternalCurlHandler.pas

About include it officially in AMC, if you're concerned about whether filmaffinity might take some action against AMC for bypassing its protection. In my opinion, the AMC block is a collateral damage. Surely the main target of their firewall are the AI ​​bots that are obtaining information from FilmAffinity for free for their own benefit, in addition to the fact that the AI ​​bots surely generate thousands and thousands of requests every day with the monetary cost in traffic for filmaffinity.
I don't think they care about a small group of private users using a free program for their personal use, if this were the case they could have blocked it much sooner. In addition, I'm sure that like me, most of AMC users are also Filmaffinity users and visit the page, generating money with the banners. But of course it is your decision.

The code of last version of ExternalCurlHandler.pas is this (there are not link to download a file, only the code on Garada post viewtopic.php?p=92950#p92950)

Code: Select all

unit ExternalCurlHandler;

uses StringUtils7552;

const
  UseVBS = True; // Use Visual Basic Script to hide curl windows, disable if you do not want to or cannot use VBS (p.e. Linux)
  tmpDir = ''; // (optional) if you want get your scripts directory clean, set here your tmp working dir, example C:\Users\YOURWINDOWSUSER\AppData\Local\Temp\
  delayBetweenRequest = 2001;
  curlPath = 'curl.exe'; // if you use Windows 7 or 8 download curl.exe for Windows (it's free) and set here the right path
  vbsScript = 'ExternalCurlHandler.vbs';
  curlOutput = 'curlOutput.html';
  curlUserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36';
  TimeOut = 10000; // Time to wait for response in ms

var
  InstallerPath: string;
  
function GetPage5Advanced(address: string; referer: string; cookies: string; content: string; headers: string): string;
var
  cnt: integer;
  fileContent: TStringList;
  curlOutputResult: string;
  sCommand: string;
  wh,wm,ws,wms: Word;
  IP: string;
begin
  Result := '';
  
  // Create VBS file if not exists
  if setupScript then
  begin
    // Delete temporal files
    if fileExists(InstallerPath + curlOutput) then
      DeleteFile(InstallerPath + curlOutput);  
    curlOutputResult := curlOutput + '.result';
    if fileExists(InstallerPath + curlOutputResult) then
      DeleteFile(InstallerPath + curlOutputResult);  
    
    // Random IP
    DecodeTime(Now, wh, wm, ws, wms);
    IP := IntToStr(wms mod 255) + '.' + IntToStr(ws) + '.' + IntToStr(wm) + '.' + IntToStr(wh);
    
    // CURL parameters:
    // Create info file with return codes and possible errors, it's created after page is downloaded
    sCommand := '-w "%output{' + InstallerPath + curlOutputResult + '}%{url}\nExitCode: %{exitcode}\nErrorMsg: %{errormsg}\nResponseCode: %{http_code}"';
    // Download page and save to file
    sCommand := sCommand + ' -L --output "' + InstallerPath + curlOutput + '" --url "' + address + '" ' + '-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 "X-Forwarded-For: ' + IP + '" -H "User-Agent: ' + curlUserAgent + '"';
    //test slow connection, don't uncomment
    //sCommand := '--limit-rate 1 ' + sCommand;

    Sleep(delayBetweenRequest);
    
    if UseVBS then
    begin
      // Launch CURL. Change " for #1 as VBS uses " for parameters. The VBS script undone the changes.
      Launch('wscript.exe', '"' +InstallerPath + vbsScript + '" "' + curlPath + '" ' + StringReplace(sCommand, '"', #1)); 
    end
    else
      Launch(curlPath, sCommand); 
    
    // Wait for end info file or timeout
    cnt := 0;
    while (not FileExists(InstallerPath + curlOutputResult)) and (cnt < TimeOut div 50) do
    begin
      cnt := cnt + 1; 
      Sleep(50);
    end;  
    
    // if info file exists
    if (fileExists(InstallerPath + curlOutputResult)) then
    begin
      fileContent := TStringList.Create;
      try
        // Read and delete info file 
        fileContent.LoadFromFile(InstallerPath + curlOutputResult); 
        DeleteFile(InstallerPath + curlOutputResult);
        
        // if return error
        if TextBetween(fileContent.Text, 'ErrorMsg: ', #13) <> '' then
          ShowError('Error downloading page.' + #13 + fileContent.Text)
        else if (fileExists(InstallerPath + curlOutput)) then // if downloaded page exits
        begin
          // Read and delete downloaded page
          fileContent.LoadFromFile(InstallerPath + curlOutput);
          DeleteFile(InstallerPath + curlOutput);
          // Return page
          Result := fileContent.Text;
          
          //if Pos('</html>', Result) < 1 then
          //  ShowError('TRIM!!!');
        end
        else // no error, no download, no timeout...
          ShowError('The page did not download');
      finally
        fileContent.Free;
      end;
    end
    else // if not: timeout
      ShowError('Internal Timeout!!');
  end
  else
  begin
    Sleep(delayBetweenRequest);
    Result := GetPage5(address, referer, cookies, content, headers);
  end;  
end;


function setupScript: boolean;
var 
  ScriptContent: TStringList;
begin
  Result := False;
  
  // initialize working path
  if (tmpDir <> '') then
    InstallerPath := tmpDir
  else  
    InstallerPath := dirScripts;
  InstallerPath := IncludeTrailingPathDelimiter(InstallerPath);
  
  // Create a generic VBS script that
  // open a command with parameters in hidden window
  if UseVBS then
  if (not FileExists(InstallerPath + vbsScript)) then
  begin
    ScriptContent := TStringList.Create;
    ScriptContent.Add('Dim Args()');
    ScriptContent.Add('ReDim Args(WScript.Arguments.Count - 1)');
    ScriptContent.Add('Args(0) = """" & WScript.Arguments(0) & """"');
    ScriptContent.Add('For i = 1 To WScript.Arguments.Count - 1');
    ScriptContent.Add('   Args(i) = Replace(WScript.Arguments(i), chr(1), chr(34))');
    ScriptContent.Add('Next');
    ScriptContent.Add('CreateObject("Wscript.Shell").Run Join(Args), 0, False');
    ScriptContent.SaveToFile(InstallerPath + vbsScript); 
    ScriptContent.Free;   
  end;

  Result := true;  
end;  

begin
end.
The link of last version of FilmAffinity (ES).ifs is this https://mega.nz/file/sBkiAQTJ#xujzighhS ... vBcNYXzkFI

If you finally decide to officially include it in AMC as an official version I think it would be good to change filename and some lines of the INFO in the script, especially if you want the previous one to be overwritten using UPDATE_SCRIPTS.ifs
1- The filename from FilmAffinity V2 (ES).ifs to FilmAffinity (ES).ifs
2- The line Title=FilmAffinity Unofficial v2 (ES) to Title=FilmAffinity (ES)
3- The line Version=5.0 unofficial to maybe Version=5.0
4- Add to line Comments=adaptation for compatibility with 4.2 version. Added Extras capture. Changed Charset ISO-> utf8 - new searh page structure something like this Added cURL compatibility, need ExternalCurlHandler.pas to let people also need to have ExternalCurlHandler.pas
5- And finally add to line Authors=aviloria (aviloria@yahoo.com) modded by: rodpedja (rodpedja@gmail.com), kreti (bisoft@hotmail.com), MrK, gilistico, juliojs, Albher, Arturo, jacqlittle, AgustinG, Fulvio53s03, MrObama2022 the name Garada. He didn't put his name and has done a great job and he deserves it :clapping: . Of course if he is agree to include it!!
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

Radagast has given a perfect summary of the situation. 👍

antp, I'll create a ZIP file with the updated files to make it easier for you to include them in AMC.
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

ant, this is a link to final script:
https://mega.nz/file/tRMAxC5a#OUBLTEZGU ... 9EHhh1lQJU

Radagast:
Te he añadido como agradecimientos en los comentarios, espero que no te importe.
(I've thanked you in the comments, I hope you don't mind.)
m1m2
Posts: 1
Joined: 2025-10-13 06:47:22

Re: [UPD ES] Filmaffinity 4.0

Post by m1m2 »

Have you tried it properly?
It still doesn't work for me.

Lo habeis probado bien?
A mi sigue sin funcionarme.
antp
Site Admin
Posts: 9759
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [UPD ES] Filmaffinity 4.0

Post by antp »

Garada wrote: 2025-10-12 11:22:18 ant, this is a link to final script:
https://mega.nz/file/tRMAxC5a#OUBLTEZGU ... 9EHhh1lQJU
Thanks, I'll check that when I've some time :)
Radagast wrote: 2025-10-12 02:56:52 About include it officially in AMC, if you're concerned about whether filmaffinity might take some action against AMC for bypassing its protection. In my opinion, the AMC block is a collateral damage.
Well, we don't know, that's the problem :D
It does not work with cURL and the default AMC user agent, I suppose?
Another test to do (I don't remember if we did) is to try a completely custom user agent (a random value like "Testing a new script"), then the theory of collateral damage is possible.
In that case, a user agent like this would be a better choice if it works:

Code: Select all

'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 (Ant Movie Catalog via cURL)';
So they can still block this one explicitly if they want, but otherwise it would not be blocked by a "Web browsers only" rule like what they may use.
I should try to include the use of cURL officially within AMC, that could be useful for this and other future incompatibilities, and would work more cleanly (no need of VBS to hide the cURL window, and no temp files around).
Garada
Posts: 35
Joined: 2025-08-10 12:39:21

Re: [UPD ES] Filmaffinity 4.0

Post by Garada »

antp wrote: 2025-10-14 15:11:32 Well, we don't know, that's the problem :D
It does not work with cURL and the default AMC user agent, I suppose?
You are right 😆
I test the curl call with no headers and the AMC's user agent and... it's works

FilmAffinity is not blocking AMC by its useragent string, maybe an outdated openssl?

m1m2 wrote: 2025-10-13 06:54:58 Have you tried it properly?
It still doesn't work for me.

Lo habeis probado bien?
A mi sigue sin funcionarme.
¿Qué falla exactamente y que sistema operativo usas?
Revisa los problemas anteriores como son ficheros mal ubicados o uso de AMC en linux.
Post Reply