Simon Volpert fediscover / 4faa2d8
Normalize profile URLs passed on the command line before processing Simon Volpert 5 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
115115 elif args.command == 'crawl':
116116 # Add URLs passed on the command line to the front of the queue
117117 for _url in reversed(args.URL):
118 # Normalize the page between Mastodon/Pleroma username formats
119 _url = _url.replace('/@', '/users/')
118120 if _url in urls.done:
119121 urls.done.remove(_url)
120122 store_url(_url, True)