master
Aevann1 2022-02-25 20:12:04 +02:00
parent 9b109251dc
commit 4b2dc9f337
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ class Submission(Base):
print('2')
if self.url.startswith('/'): return SITE
print(f'url: {self.url}')
domain = urlparse(self.url).netloc
domain = urlparse(self.url).hostname
print(f'domain1: {domain}')
if domain.startswith("www."): domain = domain.split("www.")[1]
print(f'domain2: {domain}')