ryelogheat / xpbot

Analyze a media file, identify the TMDB/IMDB, and generate all the necessary info to upload a torrent to a private tracker using the UNIT3D codebase
56 stars 27 forks source link

error uploading to aither #19

Closed rj-d2 closed 3 years ago

rj-d2 commented 3 years ago

hi,

im getting an error when trying to upload to ath, bhd and blu working fine the api for aither is in the config.env, it was working the version before

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home27/scr4tch/.apps/xpbot-masterttttttttttt/auto_upload.py:1630 in <module>                    │
│                                                                                                  │
│   1627 │   if "{tracker}_api_key".format(tracker=str(tracker).lower()) in api_keys_dict:         │
│   1628 │   │   # Make sure that an API key is set for that site                                  │
│   1629 │   │   try:                                                                              │
│ ❱ 1630 │   │   │   if len(api_keys_dict[(str(tracker).lower()) + "_api_key"]) <= 1:              │
│   1631 │   │   │   │   raise AssertionError("Provide at least 1 tracker we can upload to (e.g.   │
│   1632 │   │   │   if str(tracker).upper() not in upload_to_trackers:                            │
│   1633 │   │   │   │   upload_to_trackers.append(str(tracker).upper())                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: object of type 'NoneType' has no len()
ryelogheat commented 3 years ago

Can I see the command you used to trigger the script? Also double check config.env and ideally copy over the ATH info from config.env.sample to your active config.env to verify you don't have a space or letter missing etc

ATH_API_KEY=XXXXXXXXXXXXXXXXX ATH_ANNOUNCE_URL=https://aither.cc/announce/XXXXXXXXXXXXXX

rj-d2 commented 3 years ago

i setup the .env again, its working now! must have made a mistake copying the apis.

thx for your fast help