Working. Removed binary

This commit is contained in:
Kyle Brown 2020-12-12 21:13:53 -08:00
parent 2a722b7517
commit b63410d60c
5 changed files with 4 additions and 16 deletions

2
.gitignore vendored
View file

@ -2,4 +2,4 @@
nimcache/
nimblecache/
htmldocs/
chibirss

BIN
chibirss

Binary file not shown.

View file

@ -1,3 +1,4 @@
download_dir=/tmp/torrents/
[url]
"1"="https://nyaa.si/?page=rss"
[quality]

View file

@ -1,13 +0,0 @@
[
url:
- https://www.nyaa.si/?page=rss
quality:
- 720p
subber:
- HorribleSubs
title:
- Assassination Classroom S2
]

View file

@ -11,6 +11,7 @@ var urlList = initDoublyLinkedList[string]()
var qualityList = initDoublyLinkedList[string]()
var subberList = initDoublyLinkedList[string]()
var titleList = initDoublyLinkedList[string]()
var download_dir = dict.getSectionValue("", "download_dir")
urlList.append(dict.getSectionValue("url", "1"))
urlList.append(dict.getSectionValue("url", "2"))
@ -36,6 +37,5 @@ for item in feed.items:
if qul in item.title and not isEmptyOrWhitespace(qul):
for ti in titleList:
if ti in item.title and not isEmptyOrWhitespace(ti):
let filename = item.link & ".torrent"
echo item.link
client.downloadFile(item.link, filename)
client.downloadFile(item.link, download_dir & item.title & ".torrent")