Tidying up (#5)

* Update delete.py

* Update mirror.py

* Update README.md
This commit is contained in:
Hafitz Setya 2021-02-20 14:03:55 +07:00 committed by GitHub
parent 6a296bf0de
commit 195c04112a
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -89,7 +89,4 @@ machine host login username password my_youtube_password
where host is the name of extractor (eg. youtube, twitch). Multiple accounts of different hosts can be added each separated by a new line
## Credits
- [Izzy12](https://github.com/lzzy12)
- [Dank-del](https://github.com/Dank-del)
- [magneto261290](https://github.com/magneto261290)
- [everyone](https://github.com/breakdowns/slam-mirrorbot/graphs/contributors)
Huge thanks to [everyone](https://github.com/breakdowns/slam-mirrorbot/graphs/contributors) who has helped make this bot awesome!

View File

@ -15,7 +15,7 @@ def deletefile(update, context):
link = msg_args[1]
LOGGER.info(msg_args[1])
except IndexError:
msg = 'send a link along with command'
msg = 'Send a link along with command'
if msg == '' :
drive = gdriveTools.GoogleDriveHelper()

View File

@ -140,7 +140,7 @@ class MirrorListener(listeners.MirrorListeners):
share_url = requests.utils.requote_uri(f'{INDEX_URL}/{download_dict[self.uid].name()}')
if os.path.isdir(f'{DOWNLOAD_DIR}/{self.uid}/{download_dict[self.uid].name()}'):
share_url += '/'
msg += f'\n\n Shareable link: <a href="{share_url}">here</a>'
msg += f'\n\nShareable link: <a href="{share_url}">here</a>'
if self.message.from_user.username:
uname = f"@{self.message.from_user.username}"
else: