forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-25 20:09:53 +02:00
parent 5aa2c0e8c0
commit 76b4863433
1 changed files with 2 additions and 2 deletions

View File

@ -237,9 +237,9 @@ class Submission(Base):
if self.url.startswith('/'): return SITE
print('3')
domain = urlparse(self.url).netloc
print('4')
print(domain)
if domain.startswith("www."): domain = domain.split("www.")[1]
print('5')
print(domain)
return domain.replace("old.reddit.com", "reddit.com")
@property