From cde78f8134bd06aad126204b151499c047f3f4d4 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 13 Mar 2018 11:40:34 -0400 Subject: [PATCH] migrate configured download directory instead of assuming the default --- lbrynet/database/migrator/migrate5to6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/database/migrator/migrate5to6.py b/lbrynet/database/migrator/migrate5to6.py index 7bf23dce6..3eb15e2b8 100644 --- a/lbrynet/database/migrator/migrate5to6.py +++ b/lbrynet/database/migrator/migrate5to6.py @@ -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) )