HMS

Home Media Server for Roku Players
git clone https://www.brianlane.com/git/HMS
Log | Files | Refs | README | LICENSE

commit bee87120c757c50c5e9b1918f9f79a11655225c9
parent 61af840b9beb3976c8a95b557cf56aa4f92f350a
Author: Brian C. Lane <bcl@ibrianlane.com>
Date:   Sun, 21 Jul 2013 08:50:28 -0700

nobif: Print movies without .bif files

Diffstat:
Ascripts/nobif.py | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/scripts/nobif.py b/scripts/nobif.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +""" + Print a list of movies in the current directory w/o .bif files + + Copyright 2013 by Brian C. Lane <bcl@brianlane.com> + All Rights Reserved +""" +import os +from glob import glob + +def main(): + """ + Main code goes here + """ + for f in glob("*.m??"): + bif = os.path.splitext(f)[0] + "-SD.bif" + if not os.path.exists(bif): + print("%s is missing" % bif) + +if __name__ == '__main__': + main() +