forked from rDrama/rDrama
kos
parent
5aa2c0e8c0
commit
76b4863433
|
@ -237,9 +237,9 @@ class Submission(Base):
|
||||||
if self.url.startswith('/'): return SITE
|
if self.url.startswith('/'): return SITE
|
||||||
print('3')
|
print('3')
|
||||||
domain = urlparse(self.url).netloc
|
domain = urlparse(self.url).netloc
|
||||||
print('4')
|
print(domain)
|
||||||
if domain.startswith("www."): domain = domain.split("www.")[1]
|
if domain.startswith("www."): domain = domain.split("www.")[1]
|
||||||
print('5')
|
print(domain)
|
||||||
return domain.replace("old.reddit.com", "reddit.com")
|
return domain.replace("old.reddit.com", "reddit.com")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue