Skip to content

Commit f67de22

Browse files
committed
Oops
1 parent 0b39676 commit f67de22

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

imageresolver/plugins/twitter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get_image(self, url, **kwargs):
1010
if re.search('http(s*):\/\/(mobile\.|m\.)*twitter.com\/[a-zA-z0-9]*\/status\/\d+', url):
1111
logger = logging.getLogger('ImageResolver')
1212
logger.debug('Resolving using plugin ' + str(os.path.basename(__file__)) + ' ' + str(url))
13-
parsed = urlparse(parsed)
13+
parsed = urlparse(url)
1414
r = requests.get(url)
1515
if r.status_code == 200:
1616
soup = BeautifulSoup(r.text)
@@ -22,5 +22,4 @@ def get_image(self, url, **kwargs):
2222
else:
2323
tag = soup.find('meta',{'property':'og:image'})
2424
if tag:
25-
return return tag['content']
26-
25+
return tag['content']

0 commit comments

Comments
 (0)