“Torrent To Google Drive Downloader V1” 有 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)
    )

    回覆

發表評論