v1.9.0 (#114)
* IMGUR API is no longer used * --skip now accepts file types instead of domain * --skip-domain added * --no-download added * --no-dupe now supports YouTube * Duplicates of older posts will not be dowloaded if --no-dupe and --downloaded-posts options are given together * Invalid characters in MacOS and Linux platforms are removed from filenames * Bug fixes
This commit is contained in:
@@ -17,8 +17,8 @@ class Store:
|
||||
def __call__(self):
|
||||
return self.list
|
||||
|
||||
def add(self, filehash):
|
||||
self.list.append(filehash)
|
||||
def add(self, data):
|
||||
self.list.append(data)
|
||||
if self.directory:
|
||||
with open(self.directory, 'a') as f:
|
||||
f.write("{filehash}\n".format(filehash=filehash))
|
||||
f.write("{data}\n".format(data=data))
|
||||
|
||||
Reference in New Issue
Block a user