參與討論

1 則留言

  1. Source Code (只列出相關部分)
    ————————————————————————————————————————

    ### Add From Torrent File
    You can run this cell to add more files as many times as you want

    from google.colab import files

    source = files.upload()
    params = {
    “save_path”: “/content/drive/My Drive/Torrent”,
    “ti”: lt.torrent_info(list(source.keys())[0]),
    }
    downloads.append(ses.add_torrent(params))

    ————————————————————————————————————————

    ### Add From Magnet Link
    You can run this cell to add more files as many times as you want

    params = {“save_path”: “/content/drive/My Drive/Torrent”}

    while True:
    magnet_link = input(“Enter Magnet Link Or Type Exit: “)
    if magnet_link.lower() == “exit”:
    break
    downloads.append(
    lt.add_magnet_uri(ses, magnet_link, params)
    )

發佈留言

發佈回覆給「laputa」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *