diff --git a/ycdl/objects.py b/ycdl/objects.py index 08b094b..13ec57a 100644 --- a/ycdl/objects.py +++ b/ycdl/objects.py @@ -24,7 +24,6 @@ class Channel(ObjectBase): def __init__(self, ycdldb, db_row): super().__init__(ycdldb) - db_row = self.ycdldb.normalize_db_row(db_row, self.table) self.id = db_row['id'] self.name = db_row['name'] or self.id @@ -326,7 +325,6 @@ class Video(ObjectBase): def __init__(self, ycdldb, db_row): super().__init__(ycdldb) - db_row = self.ycdldb.normalize_db_row(db_row, self.table) self.id = db_row['id'] self.published = db_row['published'] diff --git a/ycdl/ycdldb.py b/ycdl/ycdldb.py index 07498fa..f2ae0b1 100644 --- a/ycdl/ycdldb.py +++ b/ycdl/ycdldb.py @@ -476,6 +476,7 @@ class YCDLDB( self.data_directory.makedirs(exist_ok=True) self.sql = sqlite3.connect(self.database_filepath) + self.sql.row_factory = sqlite3.Row if existing_database: if not skip_version_check: