@@ -507,7 +507,7 @@ def create_directories(self,main_directory, dir_name,thumbnail,thumbnail_only):
507507        return 
508508
509509
510-     # Download Images  
510+     # Download Image thumbnails  
511511    def  download_image_thumbnail (self ,image_url ,main_directory ,dir_name ,return_image_name ,print_urls ,socket_timeout ,print_size ,no_download ,save_source ,img_src ,ignore_urls ):
512512        if  print_urls  or  no_download :
513513            print ("Image URL: "  +  image_url )
@@ -576,14 +576,14 @@ def download_image_thumbnail(self,image_url,main_directory,dir_name,return_image
576576
577577    # Download Images 
578578    def  download_image (self ,image_url ,image_format ,main_directory ,dir_name ,count ,print_urls ,socket_timeout ,prefix ,print_size ,no_numbering ,no_download ,save_source ,img_src ,silent_mode ,thumbnail_only ,format ,ignore_urls ):
579+         if  not  silent_mode :
580+             if  print_urls  or  no_download :
581+                 print ("Image URL: "  +  image_url )
579582        if  ignore_urls :
580583            if  any (url  in  image_url  for  url  in  ignore_urls .split (',' )):
581-                 return  "fail" ,"Image ignored"  , None ,None 
584+                 return  "fail" ,  "Image ignored due to 'ignore url' parameter"  ,  None ,  image_url 
582585        if  thumbnail_only :
583586            return  "success" , "Skipping image download..." , str (image_url [(image_url .rfind ('/' )) +  1 :]), image_url 
584-         if  not  silent_mode :
585-             if  print_urls  or  no_download :
586-                 print ("Image URL: "  +  image_url )
587587        if  no_download :
588588            return  "success" ,"Printed url without downloading" ,None ,image_url 
589589        try :
0 commit comments