Skip to content

Commit

Permalink
fixed deepsource (UsergeTeam#162)
Browse files Browse the repository at this point in the history
* some changes + fixed deepsource

* typo.

* old commit + fixed deepsource
  • Loading branch information
Krishna-Singhal authored Sep 27, 2020
1 parent f697a91 commit 9d6c00a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions userge/plugins/misc/instadl.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,12 @@ async def _insta_post_downloader(message: Message):
await message.err('Failed to save session file, probably due to invalid login.')
await asyncio.sleep(5)
else:
await message.edit('Login Credentials not found. `[NOTE]`: '
await message.edit('Login Credentials not found.\n`[NOTE]`: '
'**You may not be able to download private contents or so**')
await asyncio.sleep(2)

url_patern = r'^https:\/\/www\.instagram\.com\/(p|tv|reel)\/([A-Za-z0-9\-]*)\/(\?igshid=[a-zA-Z0-9]*)?$'
# pylint: disable=C0301
match = re.search(url_patern, message.input_str)
p = r'^https:\/\/www\.instagram\.com\/(p|tv|reel)\/([A-Za-z0-9\-]*)\/(\?igshid=[a-zA-Z0-9]*)?$'
match = re.search(p, message.input_str)

if '-u' in message.flags:
username = message.filtered_input_str
Expand Down

0 comments on commit 9d6c00a

Please sign in to comment.