jDownloadsownloads.com

Author Topic: Recreate thumbnail if file size has changed  (Read 249 times)

0 Members and 1 Guest are viewing this topic.

Offline zadazdaz

  • Newbie
  • *
  • Posts: 18
Recreate thumbnail if file size has changed
« on: 05.02.2021 10:58:06 »
Hi,

can someone tell me how to change 'scan.php' file so thumb is regenerated if file size has changed?

As name remains the same on file updates, file size is a good hint to tell that fila ha changed somehow and thumb should be regenerated. At least, for PDF files.

Thanks.

Offline ColinM

  • Moderator
  • *
  • Posts: 3.977
Re: Recreate thumbnail if file size has changed
« Reply #1 on: 05.02.2021 16:54:49 »
Hi
If you want to reset the default size of ALL  thumbnails then use the Remake all Thumbnails in jD Options - Pictures & Buttons tab


But I would suggest a better solution is to use in jD Options - Pictures & Buttons tab, the 'option 'How long is a Download UPDATED' 

This will give a 'button' showing it is updated but you do need to also set the 'Mark Download as Updated' field in the updating process - this is to distinguish a say a minor correction to the Description as opposed to a real update such as a new file.

Colin
« Last Edit: 05.02.2021 16:59:35 by ColinM »

Offline zadazdaz

  • Newbie
  • *
  • Posts: 18
Re: Recreate thumbnail if file size has changed
« Reply #2 on: 05.02.2021 17:56:25 »
Hi ColinM thanks,

but i'll study a solution to do it automatically at scan time (than run every 10mn trough cron), we have more than 10K files and growing, this just can't be done manually...

Offline ColinM

  • Moderator
  • *
  • Posts: 3.977
Re: Recreate thumbnail if file size has changed
« Reply #3 on: 07.02.2021 10:51:49 »
Hi

Let us know how you get on
Colin