Update plexdb.py
This commit is contained in:
parent
f48e407813
commit
5b50cf000c
@ -42,7 +42,7 @@ def run_db_injection(db_path):
|
|||||||
# 3. Insert Video Stream record
|
# 3. Insert Video Stream record
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
INSERT INTO media_streams (
|
INSERT INTO media_streams (
|
||||||
media_part_id, stream_type_id, codec, index, language,
|
media_part_id, stream_type_id, codec, [index], language,
|
||||||
bitrate, class, display_title, created_at, updated_at
|
bitrate, class, display_title, created_at, updated_at
|
||||||
) VALUES (?, 1, 'h264', 0, 'eng', 5000000, 'video', '1080p H.264', datetime('now'), datetime('now'))
|
) VALUES (?, 1, 'h264', 0, 'eng', 5000000, 'video', '1080p H.264', datetime('now'), datetime('now'))
|
||||||
""", (part_id,))
|
""", (part_id,))
|
||||||
@ -50,7 +50,7 @@ def run_db_injection(db_path):
|
|||||||
# 4. Insert Audio Stream record
|
# 4. Insert Audio Stream record
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
INSERT INTO media_streams (
|
INSERT INTO media_streams (
|
||||||
media_part_id, stream_type_id, codec, index, language,
|
media_part_id, stream_type_id, codec, [index], language,
|
||||||
channels, bitrate, class, display_title, created_at, updated_at
|
channels, bitrate, class, display_title, created_at, updated_at
|
||||||
) VALUES (?, 2, 'aac', 1, 'eng', 2, 192000, 'audio', 'AAC Stereo', datetime('now'), datetime('now'))
|
) VALUES (?, 2, 'aac', 1, 'eng', 2, 192000, 'audio', 'AAC Stereo', datetime('now'), datetime('now'))
|
||||||
""", (part_id,))
|
""", (part_id,))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user