From 3c9793e788f912725b65bb3220e3d0f60f451758 Mon Sep 17 00:00:00 2001 From: Hydrus Network Developer Date: Wed, 27 Mar 2024 17:23:03 -0500 Subject: [PATCH] Revert "Revert "Fixing URL comparison issue"" This reverts commit 9ab079a80f4aab656b11f8a62a3f5f17f5c13469. --- .../client/importing/ClientImportFileSeeds.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/hydrus/client/importing/ClientImportFileSeeds.py b/hydrus/client/importing/ClientImportFileSeeds.py index 6f274b5e..37970441 100644 --- a/hydrus/client/importing/ClientImportFileSeeds.py +++ b/hydrus/client/importing/ClientImportFileSeeds.py @@ -133,6 +133,18 @@ class FileSeed( HydrusSerialisable.SerialisableBase ): 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 @@ class FileSeed( HydrusSerialisable.SerialisableBase ): 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 )