MEGA URL ERROR CODE, CANT GET IMAGE FOR OMM DECK

Before the error happened, I was…
[Downloaded OMM deck, trying to get the media to work. Using the mega file url. keep getting error code.]

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-14.1.2-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-12-12 18:02:18

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "/Users/natesampson/Library/Application Support/Anki2/addons21/1322529746/media_import/tabs/base.py", line 130, in on_done
    self.rootpath = fut.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "/Users/natesampson/Library/Application Support/Anki2/addons21/1322529746/media_import/tabs/mega.py", line 29, in create_root_file
    return MegaRoot(url)

  File "/Users/natesampson/Library/Application Support/Anki2/addons21/1322529746/media_import/pathlike/mega.py", line 187, in __init__
    self.get_data()

  File "/Users/natesampson/Library/Application Support/Anki2/addons21/1322529746/media_import/pathlike/mega.py", line 205, in get_data
    self.search_files(nodes, root_id, recursive=True)

  File "/Users/natesampson/Library/Application Support/Anki2/addons21/1322529746/media_import/pathlike/mega.py", line 217, in search_files
    key = mega.decrypt_node_key(node["k"], self.shared_key)

  File "/Users/natesampson/Library/Application Support/Anki2/addons21/1322529746/media_import/pathlike/mega.py", line 155, in decrypt_node_key
    encrypted_key = base64_to_a32(key_data.split(":")[1])

IndexError: list index out of range

Sentry link (for developers)

You can work around the issue for now by downloading the files from the Mega link normally then importing them using the Local Folder option in the add-on.

@ProductTeam appears to be a bug in the Mega importer.