JohnDoee / autotorrent

Matches torrents with files and gets them seeded
MIT License
269 stars 34 forks source link

IOError: [Errno 22] Invalid argument #34

Open adamwinn opened 5 years ago

adamwinn commented 5 years ago
Traceback (most recent call last):
  File "cmd.py", line 288, in <module>
    commandline_handler()
  File "cmd.py", line 214, in commandline_handler
    result = at.handle_torrentfile(os.path.join(current_path, torrent_file), dry_run)
  File "/usr/lib/python2.7/site-packages/autotorrent-1.7.0-py2.7.egg/autotorrent/at.py", line 428, in handle_torrentfile
    found_size, missing_size, files = self.parse_torrent(torrent)
  File "/usr/lib/python2.7/site-packages/autotorrent-1.7.0-py2.7.egg/autotorrent/at.py", line 319, in parse_torrent
    files = self.index_torrent(torrent)
  File "/usr/lib/python2.7/site-packages/autotorrent-1.7.0-py2.7.egg/autotorrent/at.py", line 308, in index_torrent
    modified_result, result = self.find_hash_checks(torrent, result)
  File "/usr/lib/python2.7/site-packages/autotorrent-1.7.0-py2.7.egg/autotorrent/at.py", line 138, in find_hash_checks
    match_start, match_end = pieces.match_file(db_file, start_size, end_size)
  File "/usr/lib/python2.7/site-packages/autotorrent-1.7.0-py2.7.egg/autotorrent/utils.py", line 159, in match_file
    f.seek(seek_offset)
IOError: [Errno 22] Invalid argument
matemoln commented 4 years ago

Got this error on file: DJ Küsse & .....torrent

JohnDoee commented 4 years ago

@matemoln also on f.seek ? Feels like that'd be on a filesystem that does not support.

matemoln commented 4 years ago

$ autotorrent -a torrents/DJ_K++sse_and_Khshathra....torrent

Found 1 torrent(s)
Traceback (most recent call last):
  File "/home/mate/.local/bin/autotorrent", line 10, in <module>
    sys.exit(commandline_handler())
  File "/home/mate/.local/lib/python2.7/site-packages/autotorrent/cmd.py", line 210, in commandline_handler
    result = at.handle_torrentfile(os.path.join(current_path, torrent), dry_run)
  File "/home/mate/.local/lib/python2.7/site-packages/autotorrent/at.py", line 428, in handle_torrentfile
    found_size, missing_size, files = self.parse_torrent(torrent)
  File "/home/mate/.local/lib/python2.7/site-packages/autotorrent/at.py", line 319, in parse_torrent
    files = self.index_torrent(torrent)
  File "/home/mate/.local/lib/python2.7/site-packages/autotorrent/at.py", line 308, in index_torrent
    modified_result, result = self.find_hash_checks(torrent, result)
  File "/home/mate/.local/lib/python2.7/site-packages/autotorrent/at.py", line 138, in find_hash_checks
    match_start, match_end = pieces.match_file(db_file, start_size, end_size)
  File "/home/mate/.local/lib/python2.7/site-packages/autotorrent/utils.py", line 159, in match_file
    f.seek(seek_offset)
IOError: [Errno 22] Invalid argument
awcip commented 3 years ago

I solved this problem by removing hash_name from scan_mode in my .conf. I have no idea why it works.