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

[RUS] Ошибка при обновлении торрента с rutracker в qbittorrent #86

Open
MaksimShakavin opened this issue Jan 23, 2023 · 4 comments
Labels

Comments

@MaksimShakavin
Copy link

MaksimShakavin commented Jan 23, 2023

Текст ошибки:

Traceback (most recent call last):
  File "/usr/local/bin/torrt", line 8, in <module>
    sys.exit(process_commands())
             ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/torrt/main.py", line 197, in process_commands
    walk(forced=args['forced'], silent=True)
  File "/usr/local/lib/python3.11/site-packages/torrt/toolbox.py", line 324, in walk
    updated = update_torrents(cfg['torrents'], remove_outdated=remove_outdated)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/torrt/toolbox.py", line 402, in update_torrents
    raw_last_updated = torrents[rpc_torrent['hash']]['page']['date_updated']
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'date_updated'

в клиенте только один торрент и только один торрент добавлен в torrt c помощью
torrt register_torrent -u https://rutracker.org/forum/viewtopic.php?t=<id> --verbose <existing hash>

в configs.json page для торрента просто пустой объект

@idlesign idlesign added the bug label Jan 24, 2023
@idlesign
Copy link
Owner

Спасибо за информацию.
А это версия из pypi или из мастер-ветки?

@MaksimShakavin
Copy link
Author

Из мастер ветки

@idlesign
Copy link
Owner

idlesign commented Jan 30, 2023 via email

@idlesign idlesign changed the title Ошибка при обновлении торрента с rutracker в qbittorrent [RUS] Ошибка при обновлении торрента с rutracker в qbittorrent Feb 3, 2023
@idlesign
Copy link
Owner

idlesign commented Feb 3, 2023

Чуть скорректировал код. Можно попробовать из мастера.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants