diff --git a/ythdd_inv_tl.py b/ythdd_inv_tl.py index 3bdb1e1..9036f82 100644 --- a/ythdd_inv_tl.py +++ b/ythdd_inv_tl.py @@ -279,7 +279,7 @@ def rebuildFormatsFromYtdlpApi(ydata: dict): height = str(safeTraverse(stream, ["height"], default=0)) width = str(safeTraverse(stream, [ "width"], default=0)) newRow[ "type"] = "video/" + type - newRow[ "resolution"] = height + "p" + newRow[ "resolution"] = (height if height in ("144", "240", "360", "480", "720", "1080") else "360") + "p" # mpv won't play the video inside of Yattee if it's a non-standard resolution (bug?) newRow[ "fps"] = safeTraverse(stream, ["fps"], default=30) newRow[ "qualityLabel"] = height + "p" + str(int(newRow['fps'])) * (newRow["fps"] > 30) # also a placeholder newRow[ "size"] = width + "x" + height