Closed ddwdsc closed 2 months ago
大佬好,我在尝试使用CloudDrive的离线下载功能。调用CloudDriveClient.client.AddOfflineFiles( )方法后,能够成功离线下载,但返回的FileOperationResult对象只有success属性,查看文档,应该还有errorMessage和resultFilePaths,但貌似没有。主要是想获得离线下载后的文件路径,方便获取信息。请大佬指点,感谢!
import clouddrive from clouddrive import CloudDriveClient, CloudDriveFileSystem client = CloudDriveClient("http://localhost:19798", "username", "password") fs = CloudDriveFileSystem(client) fs.chdir('/115') mag = "magnet:?xt=urn:btih:xxxx..." request = clouddrive.pb2.AddOfflineFileRequest(urls=mag, toFolder='/115/temp') result = client.AddOfflineFiles(request) print(result.success) print(result.errorMessage) print(result.resultFilePaths)
output: True
[]
测试了一下,似乎是CloudDrive本身就没有返回
大佬好,我在尝试使用CloudDrive的离线下载功能。调用CloudDriveClient.client.AddOfflineFiles( )方法后,能够成功离线下载,但返回的FileOperationResult对象只有success属性,查看文档,应该还有errorMessage和resultFilePaths,但貌似没有。主要是想获得离线下载后的文件路径,方便获取信息。请大佬指点,感谢!
output: True
[]