Audionut / Upload-Assistant

A fork of L4G attempting to keep updated
https://discord.gg/QHHAZu7e2A
69 stars 23 forks source link

Qbittorrent existing torrent checking updates #14

Closed Audionut closed 2 months ago

Schaka commented 2 months ago
Unexpected error during torrent search: name 'meta' is not defined
[12:22:37]  Error during torrent search: name 'meta' is not       clients.py:222
           defined                                                              
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /Upload-Assistant/src/clients.py:217 in search_qbit_for_torrent              │
│                                                                              │
│   214 │   │   │   │   console.log(f"[debug] Retrieved torrents from qBittorr │
│   215 │   │   │   for torrent in torrents:                                   │
│   216 │   │   │   │   torrent_path = self.get_torrent_path(torrent, meta, re │
│ ❱ 217 │   │   │   │   if torrent_path and await self.is_matching_torrent(met │
│   218 │   │   │   │   │   return torrent.hash                                │
│   219 │   │   except Exception as e:                                         │
│   220 │   │   │   console.print(f"[bold red]Unexpected error during torrent  │
│                                                                              │
│ /Upload-Assistant/src/clients.py:252 in is_matching_torrent                  │
│                                                                              │
│   249 │   async def is_matching_torrent(self, meta, torrent, torrent_path, t │
│   250 │   │   if meta['is_disc'] in ("", None) and len(meta['filelist']) ==  │
│   251 │   │   │   if torrent_path == meta['filelist'][0] and len(torrent.fil │
│ ❱ 252 │   │   │   │   return await self.verify_torrent(torrent, torrent_stor │
│   253 │   │   elif meta['path'] == torrent_path:                             │
│   254 │   │   │   return await self.verify_torrent(torrent, torrent_storage_ │
│   255 │   │   return False                                                   │
│                                                                              │
│ /Upload-Assistant/src/clients.py:258 in verify_torrent                       │
│                                                                              │
│   255 │   │   return False                                                   │
│   256 │                                                                      │
│   257 │   async def verify_torrent(self, torrent, torrent_storage_dir):      │
│ ❱ 258 │   │   valid, torrent_path = await self.is_valid_torrent(meta, f"{tor │
│   259 │   │   if valid:                                                      │
│   260 │   │   │   console.print(f"[green]Found a matching .torrent with hash │
│   261 │   │   │   return True                                                │
╰──────────────────────────────────────────────────────────────────────────────╯
NameError: name 'meta' is not defined
No Valid .torrent found
Creating .torrent with a piece size of 8MiB... (No valid --torrenthash was 
provided to reuse)
Hashing...: 0%
Hashing...: 5%
Hashing...: 8%
Hashing...: 13%
Hashing...: 18%
Hashing...: 21%
Hashing...: 26%
Hashing...: 31%
Hashing...: 34%
Hashing...: 38%
Hashing...: 41%
Hashing...: 44%
Hashing...: 49%
Hashing...: 55%
Hashing...: 62%
Hashing...: 67%
Hashing...: 72%
Hashing...: 77%
Hashing...: 83%
Hashing...: 88%
Hashing...: 94%
Hashing...: 100%
Hashing...: 100%
.torrent created
DEBUG: True
Prep material saved to 
/Upload-Assistant/tmp/英伦对决.The.Foreigner.2017.2160p.WEB-DL.H265.10bit.HDR.DD
P5.1-LeagueWEB
Audionut commented 2 months ago

Got it, thanks. New image is live. Linked issue https://github.com/Audionut/Upload-Assistant/issues/13