diff --git a/hydrus/client/importing/ClientImportFileSeeds.py b/hydrus/client/importing/ClientImportFileSeeds.py index 6f274b5e3..379704410 100644 --- a/hydrus/client/importing/ClientImportFileSeeds.py +++ b/hydrus/client/importing/ClientImportFileSeeds.py @@ -133,6 +133,18 @@ def __init__( self, file_seed_type: int = None, file_seed_data: str = None ): self.file_seed_data = file_seed_data self.file_seed_data_for_comparison = file_seed_data + if self.file_seed_type == FILE_SEED_TYPE_URL: + + try: + + self.file_seed_data_for_comparison = CG.client_controller.network_engine.domain_manager.NormaliseURL( self.file_seed_data ) + + except: + + pass + + + self.created = HydrusTime.GetNow() self.modified = self.created self.source_time = None @@ -298,6 +310,20 @@ def _InitialiseFromSerialisableInfo( self, serialisable_info ): serialisable_hashes ) = serialisable_info + self.file_seed_data_for_comparison = self.file_seed_data + + if self.file_seed_type == FILE_SEED_TYPE_URL: + + try: + + self.file_seed_data_for_comparison = CG.client_controller.network_engine.domain_manager.NormaliseURL( self.file_seed_data ) + + except: + + pass + + + self._external_filterable_tags = set( serialisable_external_filterable_tags ) self._external_additional_service_keys_to_tags = HydrusSerialisable.CreateFromSerialisableTuple( serialisable_external_additional_service_keys_to_tags )