Update plexdb.py
This commit is contained in:
parent
5b50cf000c
commit
9a914ae643
@ -12,6 +12,12 @@ def run_db_injection(db_path):
|
|||||||
conn = sqlite3.connect(db_path)
|
conn = sqlite3.connect(db_path)
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
|
|
||||||
|
# Print table columns for debugging
|
||||||
|
cursor.execute("PRAGMA table_info(media_items)")
|
||||||
|
print("[*] media_items columns: {}".format([row[1] for row in cursor.fetchall()]))
|
||||||
|
cursor.execute("PRAGMA table_info(media_streams)")
|
||||||
|
print("[*] media_streams columns: {}".format([row[1] for row in cursor.fetchall()]))
|
||||||
|
|
||||||
# Find unanalyzed STRM files
|
# Find unanalyzed STRM files
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
SELECT media_parts.id, media_items.id, media_parts.file
|
SELECT media_parts.id, media_items.id, media_parts.file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user