Coder Social home page Coder Social logo

Comments (5)

Laharah avatar Laharah commented on June 2, 2024

Looks like deluge 3 raises an actual exception on duplicate torrents being added. I've stopped duplicate torrents being downloaded and added some error handling for pre-exsisting torrents.

Give the new version a try and let me know if it solves the issue.

from redlist.

BoBeR182 avatar BoBeR182 commented on June 2, 2024
Traceback (most recent call last):
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 220, in entry_point
    results.append(loop.run_until_complete(main(splist, options.yes)))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/bober/redlist/lib/python3.8/site-packages/redlist/__main__.py", line 133, in main
    for torrent in set(downloads.values())
TypeError: unhashable type: 'dict'

from redlist.

Laharah avatar Laharah commented on June 2, 2024

Sorry, can't really test on my phone, give that a try.

from redlist.

BoBeR182 avatar BoBeR182 commented on June 2, 2024

Looks patched, is it possible to not have it try the duplicates, by removing them before the REDAPI calls are made https://github.com/Laharah/redlist/blob/master/redlist/__main__.py#L59 here?
I don't know enough python to attempt this on my own.

matched = list(set(matched)) #maybe?

from redlist.

Laharah avatar Laharah commented on June 2, 2024

I incorporated your suggestion. I couldn't prune the duplicates that early, it had to be after the tracks were matched to torrents on redacted. You can see the actual change here: 135fe84

I was able to get to a laptop and test properly, so version 0.2.4 should work as intended. Give it a shot, and if you run into any more issues let me know. I'm gonna mark this as closed for now, but feel free to re-open if you run into the same problem again.

Thanks for your help improving the tool!

from redlist.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.