working on subdirs by feed

This commit is contained in:
bel
2019-09-02 09:08:53 -06:00
parent 2518c3f263
commit 6efa4e95d9
6 changed files with 25 additions and 13 deletions

View File

@@ -11,6 +11,7 @@ import (
"local/storage"
"log"
"net/http"
"path"
"regexp"
"strings"
"time"
@@ -114,7 +115,7 @@ func pull(db storage.DB, vpntor, outdir, url string) error {
if err != nil {
return err
}
if err := handle(vpntor, outdir, s); err != nil {
if err := handle(vpntor, path.Join(outdir, gofeed.Copyright), s); err != nil {
return err
}
if err := db.Set(item.Link, []byte{}); err != nil {