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

followed_by not being updated #51

Closed
m-lyon opened this issue Mar 29, 2020 · 2 comments
Closed

followed_by not being updated #51

m-lyon opened this issue Mar 29, 2020 · 2 comments
Labels
bug Something isn't working module:downloads

Comments

@m-lyon
Copy link

m-lyon commented Mar 29, 2020

A metadata download object returned from the API module will not return the followed_by list, even after completion, even with download.live and download.update() methods, for example:

import time

magnetlink = 'magnet:?...'
download = api.add_magnet(magnetlink, options={'dir': '/tmp'})
while not download.live.is_complete:
    time.sleep(5)
print(download.followed_by)

Will always return []
However, the following will return the correct followed_by download objects:

import time

magnetlink = 'magnet:?...'
download = api.add_magnet(magnetlink, options={'dir': '/tmp'})
while not download.live.is_complete:
    time.sleep(5)
download = api.get_download(download.gid)
print(download.followed_by)

Is this expected behaviour? I was under the impression that the Download.live and Download.update() methods would ideally return the updated followed_by list.

@pawamoy pawamoy added bug Something isn't working module:downloads labels Mar 29, 2020
@pawamoy
Copy link
Owner

pawamoy commented Mar 29, 2020

Hey, thanks, it was a bug indeed, fixed in 19510a7

@pawamoy
Copy link
Owner

pawamoy commented Mar 29, 2020

Just released v0.8.1, open a new issue if something's not working 🙂

@pawamoy pawamoy closed this as completed Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:downloads
Projects
None yet
Development

No branches or pull requests

2 participants