HMS

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

nobif.py (457B)


      1 #!/usr/bin/env python
      2 """
      3     Print a list of movies in the current directory w/o .bif files
      4 
      5     Copyright 2013 by Brian C. Lane <bcl@brianlane.com>
      6     All Rights Reserved
      7 """
      8 import os
      9 from glob import glob
     10 
     11 def main():
     12     """
     13     Main code goes here
     14     """
     15     for f in glob("*.m??"):
     16         bif = os.path.splitext(f)[0] + "-SD.bif"
     17         if not os.path.exists(bif):
     18             print("%s is missing" % bif)
     19 
     20 if __name__ == '__main__':
     21     main()
     22