[chan] update to new format

This commit is contained in:
Mike Fährmann
2015-11-21 03:13:06 +01:00
parent 2d498b19a1
commit 2dfe97dd00
3 changed files with 10 additions and 26 deletions

View File

@@ -13,13 +13,15 @@ from .. import text
class ChanExtractor(Extractor):
directory_fmt = ["{category}", "{board}-{thread}"]
filename_fmt = "{tim}-{filename}{ext}"
api_url = ""
file_url = ""
def __init__(self, category, board, thread):
def __init__(self, board, thread):
Extractor.__init__(self)
self.metadata = {
"category": category,
"category": self.category,
"board": board,
"thread": thread,
}