Working. Removed binary
This commit is contained in:
parent
2a722b7517
commit
b63410d60c
5 changed files with 4 additions and 16 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -2,4 +2,4 @@
|
|||
nimcache/
|
||||
nimblecache/
|
||||
htmldocs/
|
||||
|
||||
chibirss
|
||||
|
|
BIN
chibirss
BIN
chibirss
Binary file not shown.
|
@ -1,3 +1,4 @@
|
|||
download_dir=/tmp/torrents/
|
||||
[url]
|
||||
"1"="https://nyaa.si/?page=rss"
|
||||
[quality]
|
||||
|
|
13
example.cfg
13
example.cfg
|
@ -1,13 +0,0 @@
|
|||
[
|
||||
url:
|
||||
- https://www.nyaa.si/?page=rss
|
||||
|
||||
quality:
|
||||
- 720p
|
||||
|
||||
subber:
|
||||
- HorribleSubs
|
||||
|
||||
title:
|
||||
- Assassination Classroom S2
|
||||
]
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue