mirror of
https://github.com/hacks-guide/Guide_3DS.git
synced 2025-08-23 16:53:16 +02:00
Update torrent list
Removed unused torrents Fixed small bug in rss.py
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -27,3 +27,6 @@ codekit-config.json
|
||||
.sass-cache
|
||||
_asset_bundler_cache
|
||||
_site
|
||||
|
||||
# torrent stuff
|
||||
torrents
|
3
rss.py
3
rss.py
@@ -30,7 +30,8 @@ with open(rss, "w") as xml:
|
||||
infohash = hashlib.sha1(bencodepy.encode(tor[b"info"])).hexdigest().upper()
|
||||
magp = {"xt": "urn:btih:{0}".format(infohash), "dn": tor[b"info"][b"name"], "xl": tor[b"info"][b"length"]}
|
||||
magstr = urllib.parse.urlencode(magp)
|
||||
for anncl in tor[b"announce-list"]:
|
||||
if b'announce-list' in tor:
|
||||
for anncl in tor[b'announce-list']:
|
||||
if isinstance(anncl, list):
|
||||
for annc in anncl:
|
||||
trackers.append(annc.decode("utf-8"))
|
||||
|
Reference in New Issue
Block a user