Update plexdb.py
This commit is contained in:
parent
f27021a371
commit
f48e407813
@ -29,11 +29,10 @@ def run_db_injection(db_path):
|
|||||||
print("[*] Found {} unanalyzed STRM files. Injecting metadata...".format(len(unanalyzed)))
|
print("[*] Found {} unanalyzed STRM files. Injecting metadata...".format(len(unanalyzed)))
|
||||||
|
|
||||||
for part_id, item_id, file_path in unanalyzed:
|
for part_id, item_id, file_path in unanalyzed:
|
||||||
# 1. Update Media Item with dummy dimensions and duration (1080p H264 profile)
|
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
UPDATE media_items
|
UPDATE media_items
|
||||||
SET width=1920, height=1080, duration=7200000, container='mkv', video_codec='h264', audio_codec='aac',
|
SET width=1920, height=1080, duration=7200000, container='mkv', video_codec='h264', audio_codec='aac',
|
||||||
video_frame_rate='24p', size=112
|
size=112
|
||||||
WHERE id = ?
|
WHERE id = ?
|
||||||
""", (item_id,))
|
""", (item_id,))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user