Skip to content

Commit

Permalink
Fixing URL comparison issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrusnetwork committed Mar 20, 2024
1 parent 35eca25 commit 1da4a80
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hydrus/client/importing/ClientImportFileSeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 )

Expand Down

0 comments on commit 1da4a80

Please sign in to comment.