use tor hidden service instead of ed25515 as peer id
This commit is contained in:
parent
cc258fb5ee
commit
7c1e5c691a
23 changed files with 1139 additions and 324 deletions
|
|
@ -395,7 +395,6 @@ class Item(db.Model):
|
|||
def remove_file(self):
|
||||
for f in self.files.all():
|
||||
path = f.fullpath()
|
||||
logger.debug('remove file %s', path)
|
||||
if os.path.exists(path):
|
||||
os.unlink(path)
|
||||
remove_empty_folders(os.path.dirname(path))
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@ def add_file(id, f, prefix, from_=None):
|
|||
user = state.user()
|
||||
path = f[len(prefix):]
|
||||
data = media.metadata(f, from_)
|
||||
print(path)
|
||||
file = File.get_or_create(id, data, path)
|
||||
item = file.item
|
||||
if 'primaryid' in file.info:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue