synodriver / aioqbittorrent

Qbittorrent rpc with asyncio
4 stars 1 forks source link

TypeError: can only join an iterable #1

Open vvaarriiuumm opened 2 months ago

vvaarriiuumm commented 2 months ago

Hey there trying to use this for a project of mine. When I try to use torrents_info function in any way I receive TypeError: can only join an iterable.

line 723 in torrents_info:

hashes = hashes if isinstance(hashes, str) else "|".join(hashes)

synodriver commented 2 months ago

Can you provide an example to reproduce?

vvaarriiuumm commented 2 months ago

Can you provide an example to reproduce?

    async def testcheck(self):
        async with Client(url="my_url", username="my_user", password="my_password") as client:
            await client.auth_login()
            result = await client.torrents_info(filter="all")
            print(result)

It's any time I call the function. I get the same error, doesn't matter what I pass into it.

synodriver commented 2 months ago

Sorry for the late reply. I hava fixed this problem, try upgrade to the latest version.