File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
bot/helper/mirror_utils/upload_utils Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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' )))} )"
You can’t perform that action at this time.
0 commit comments