Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDoee committed Feb 20, 2015
2 parents f6b4465 + 41b5bdb commit d530880
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (C) 2013 Anders Jensen
Copyright (C) 2015 Anders Jensen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
3 changes: 3 additions & 0 deletions autotorrent/cmd.py
Expand Up @@ -71,10 +71,13 @@ def commandline_handler():
at.populate_torrents_seeded()

if args.rebuild:
print('Rebuilding database')
db.rebuild()
print('Database rebuilt')

if args.addfile:
print('Found %s torrent(s)' % len(args.addfile))
at.populate_torrents_seeded()
for torrent in args.addfile:
at.handle_torrentfile(os.path.join(current_path, torrent))

Expand Down
8 changes: 4 additions & 4 deletions autotorrent/db.py
Expand Up @@ -31,9 +31,9 @@ def rebuild(self):
logger.info('Rebuilding database')
self.truncate()

for path in self.paths:
logger.info('Scanning %s' % path)
for root, dirs, files in os.walk(path):
for root_path in self.paths:
logger.info('Scanning %s' % root_path)
for root, dirs, files in os.walk(root_path):
for f in files:
normalized_filename = self.normalize_filename(f)

Expand All @@ -56,7 +56,7 @@ def rebuild(self):
logger.warning('Duplicate key %s and %s' % (path, self.db[key]))

self.db[key] = path
logger.info('Done scanning %s' % path)
logger.info('Done scanning %s' % root_path)
self.db.sync()

def find_file_path(self, f, size):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Expand Up @@ -13,21 +13,21 @@ def read_description():

setup(
name='autotorrent',
version='1.3.0',
version='1.3.1',
description='AutoTorrent allows easy cross-seeding',
long_description=read_description(),
author='Anders Jensen',
author_email='johndoee+autotorrent@tidalstream.org',
maintainer='John Doee',
url='https://github.com/JohnDoee/autotorrent',
packages=['autotorrent'],
packages=['autotorrent', 'autotorrent.clients'],
install_requires=['six'],
license='BSD',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: POSIX :: Other',
Expand Down

0 comments on commit d530880

Please sign in to comment.