Skip to content

KeyError: 'url' when tagging torrents with no hardlinks #63

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

Closed
mousecloak opened this issue Dec 21, 2021 · 2 comments · Fixed by #65
Closed

KeyError: 'url' when tagging torrents with no hardlinks #63

mousecloak opened this issue Dec 21, 2021 · 2 comments · Fixed by #65
Labels
bug Something isn't working

Comments

@mousecloak
Copy link

I'm seeing this in the logs:

|====================================================================================================|
|                           _     _ _                                                                |
|                          | |   (_) |                                                               |
|                      __ _| |__  _| |_   _ __ ___   __ _ _ __   __ _  __ _  ___                     |
|                     / _` | '_ \| | __| | '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \                    |
|                    | (_| | |_) | | |_  | | | | | | (_| | | | | (_| | (_| |  __/                    |
|                     \__, |_.__/|_|\__| |_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|                    |
|                        | |         ______                            __/ |                         |
|                        |_|        |______|                          |___/                          |
|     Version: 3.1.1                                                                                 |
|====================================================================================================|
|     --run (QBT_RUN): False                                                                         |
|     --schedule (QBT_SCHEDULE): 30                                                                  |
|     --config-file (QBT_CONFIG): config.yml                                                         |
|     --log-file (QBT_LOGFILE): activity.log                                                         |
|     --cross-seed (QBT_CROSS_SEED): False                                                           |
|     --recheck (QBT_RECHECK): False                                                                 |
|     --cat-update (QBT_CAT_UPDATE): False                                                           |
|     --tag-update (QBT_TAG_UPDATE): True                                                            |
|     --rem-unregistered (QBT_REM_UNREGISTERED): False                                               |
|     --rem-orphaned (QBT_REM_ORPHANED): True                                                        |
|     --tag-nohardlinks (QBT_TAG_NOHARDLINKS): True                                                  |
|     --skip-recycle (QBT_SKIP_RECYCLE): True                                                        |
|     --dry-run (QBT_DRY_RUN): False                                                                 |
|     --log-level (QBT_LOG_LEVEL): DEBUG                                                             |
|     --divider (QBT_DIVIDER): =                                                                     |
|     --width (QBT_WIDTH): 100                                                                       |
|     --debug (QBT_DEBUG): False                                                                     |
|     --trace (QBT_TRACE): False                                                                     |
|                                                                                                    |
|     Scheduled Mode: Running every 30 minutes.                                                      |
|====================================================================================================|
|                                            Starting Run                                            |
|====================================================================================================|
| Locating config...                                                                                 |
| Using /config/config.yml as config                                                                 |
| Config Warning: apprise attribute not found                                                        |
| Config Warning: notifiarr attribute not found                                                      |
| Connecting to Qbittorrent...                                                                       |
| Host: qbittorrent:5555, Username: admin, Password: [REDACTED]                                      |
| Qbt Connection Successful                                                                          |
|======================================= Getting Torrent List =======================================|
|========================================== Updating Tags ===========================================|
| No new torrents to tag.                                                                            |
|================================ Tagging Torrents with No Hardlinks ================================|
|    Torrent Name: a torrent                                                                         |
|       Added Tag: noHL                                                                              |
| Traceback (most recent call last):                                                                 |
|                                                                                                    |
|   File "/app/qbit_manage.py", line 283, in <module>                                                |
|     start()                                                                                        |
|                                                                                                    |
|   File "/app/qbit_manage.py", line 201, in start                                                   |
|     num_tagged,num_untagged,num_deleted,num_deleted_contents = cfg.qbt.tag_nohardlinks()           |
|                                                                                                    |
|   File "/app/modules/qbittorrent.py", line 242, in tag_nohardlinks                                 |
|     body += print_line(util.insert_space(f'Tracker: {tags["url"]}',8),loglevel)                    |
|                                                                                                    |
| KeyError: 'url'                                                                                    |
|                                                                                                    |

This occurs when running the latest docker develop tag.

Please let me know if you need a copy of my config or any other data.

bobokun added a commit that referenced this issue Dec 21, 2021
@bobokun
Copy link
Collaborator

bobokun commented Dec 21, 2021

Update your develop branch again, it should be fixed now.

@mousecloak
Copy link
Author

mousecloak commented Dec 21, 2021

Success. Thank you for fixing this in less time than it took me to write up the issue!

@bobokun bobokun mentioned this issue Dec 23, 2021
@bobokun bobokun linked a pull request Dec 23, 2021 that will close this issue
@bobokun bobokun added the bug Something isn't working label Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants