migrate configured download directory instead of assuming the default
This commit is contained in:
parent
ed3e825472
commit
cde78f8134
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ from lbrynet.database.storage import SQLiteStorage
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
default_download_directory = conf.default_download_dir
|
||||
download_directory = conf.settings['download_directory']
|
||||
|
||||
|
||||
def run_operation(db):
|
||||
|
@ -129,7 +129,7 @@ def do_migration(db_dir):
|
|||
# insert the file
|
||||
transaction.execute(
|
||||
"insert or ignore into file values (?, ?, ?, ?, ?)",
|
||||
(stream_hash, stream_name, default_download_directory.encode('hex'),
|
||||
(stream_hash, stream_name, download_directory.encode('hex'),
|
||||
data_rate, status)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue