Skip to content

Commit 1ecff96

Browse files
Merge branch 'master' of https://github.com/lzzy12/python-aria-mirror-bot into master
2 parents eb2f963 + 03313d8 commit 1ecff96

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bot/helper/mirror_utils/upload_utils/gdriveTools.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@ def drive_list(self, fileName):
433433
if INDEX_URL is not None:
434434
url = requests.utils.requote_uri(f'{INDEX_URL}/{file.get("name")}/')
435435
msg += f' | <a href="{url}"> Index URL</a>'
436+
437+
elif file.get('mimeType') == 'application/vnd.google-apps.shortcut':
438+
msg += f"⁍ <a href='https://drive.google.com/drive/folders/{file.get('id')}'>{file.get('name')}" \
439+
f"</a> (shortcut)"
440+
# Excluded index link as indexes cant download or open these shortcuts
436441
else:
437442
msg += f"⁍ <a href='https://drive.google.com/uc?id={file.get('id')}" \
438443
f"&export=download'>{file.get('name')}</a> ({get_readable_file_size(int(file.get('size')))})"

0 commit comments

Comments
 (0)