Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError, when getting get_download().name #103

Closed
SayanthD opened this issue Sep 3, 2021 · 1 comment
Closed

IndexError, when getting get_download().name #103

SayanthD opened this issue Sep 3, 2021 · 1 comment

Comments

@SayanthD
Copy link

SayanthD commented Sep 3, 2021

Describe the bug
Aria2p results in IndexError, while returning get_download().name

To Reproduce
Steps to reproduce the behavior:

  1. run aria2c --enable-rpc
  2. Add a direct link download, get gid and print name
import aria2p

api = aria2p.API()
uri = 'https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_640_3MG.mp4'

gid = api.add_uris([uri]).gid
name = api.get_download(gid).name

print(name)
  1. See error
    aria2p_4

Expected behavior
Prints 'file_example_MP4_640_3MG.mp4'

Screenshots
If applicable, add screenshots to help explain your problem.

System (please complete the following information):

  • aria2p version: 0.10.4
  • Python version: 3.9.5
  • OS: Linux

Additional context
JSON-RPC result with aria2.tellStatus

aria2p_3

@pawamoy
Copy link
Owner

pawamoy commented Sep 10, 2021

I cannot replicate :/

Screenshot_2021-09-10_12-40-35

But I think it's the same as this issue: #68 (comment)

I'll close as duplicate.

@pawamoy pawamoy closed this as completed Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants