Smartcraw doenst work in website with custom upload dir

my site uses /media instead of /wp-content/upload and when smartcraw is active the url becomes the absolute server directory.

ex:

myurl.com/wp-content/uploads//home/myuser/public_html/media/2019/08/archive.png

to test in your wordpress add

define( ‘UPLOADS’, ‘media’ );

in wp-config.php to change our directory and test with smartcraw.