Skip to content

Instantly share code, notes, and snippets.

@sengiv
sengiv / random-show-watch.py
Created April 18, 2024 12:43
Randomly selects and plays shows from multiple local file location. Nice for rewatching same series shows, but from random points.
import os
import random
import subprocess
import json
def get_mp4_files(paths, depth=1):
mp4_files = []
for path in paths:
if depth < 0:
return mp4_files