kannibalox / pyrosimple

An overhauled fork of the pyrocore tools for rTorrent
https://kannibalox.github.io/pyrosimple/
GNU General Public License v3.0
48 stars 5 forks source link

Adding tags throws an attribute error #12

Closed BristleBeard closed 1 year ago

BristleBeard commented 1 year ago

This behavior is happening when trying to add a tag. rtcontrol --tag "processed" completed=-12h

Traceback (most recent call last):
  File "/home/youser/.local/bin/rtcontrol", line 8, in <module>
    sys.exit(run())
  File "/home/youser/.local/lib/python3.9/site-packages/pyrosimple/scripts/rtcontrol.py", line 908, in run
    RtorrentControl().run()
  File "/home/youser/.local/lib/python3.9/site-packages/pyrosimple/scripts/base.py", line 180, in run
    self.mainloop()
  File "/home/youser/.local/lib/python3.9/site-packages/pyrosimple/scripts/rtcontrol.py", line 806, in mainloop
    getattr(item, action["method"])(*args)
  File "/home/youser/.local/lib/python3.9/site-packages/pyrosimple/torrent/rtorrent.py", line 309, in tag
    tagset = previous.copy()
AttributeError: 'str' object has no attribute 'copy'
kannibalox commented 1 year ago

Thanks for the report, I'll have a new release out in a bit.

BristleBeard commented 1 year ago

Thank you! This fixed some issues I was also seeing with being able to return results using filters.

rtcontrol '*HDTV*' was not working but now does.