Gfy

broken srrs

Gfy
Jun 8th, 2015
253
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ python check.py
  2. Directory listing complete! Starting.
  3. Dark.World.Das.Tal.der.Hexenkoenigin.3D.2010.German.1080p.BluRay.x264-STEREOSCOPiC.srr
  4. Die.Drei.vom.Pfandhaus.S04E59.Verschlusssache.GERMAN.DOKU.720p.HDTV.x264-TVP.srr
  5. Lotus_Plaza-Spooky_Action_At_A_Distance-CD-FLAC-2012-JLM.srr
  6.  
  7. import rescene
  8. import os
  9.  
  10. srrfiles = ""
  11. outlog = "brokenpy.txt"
  12. started = False
  13.  
  14. for f in os.listdir(srrfiles):
  15.         if not started:
  16.                 started = True
  17.                 print("Directory listing complete! Starting.")
  18.         srr = os.path.join(srrfiles, f)
  19.         # print(f)
  20.         try:
  21.                 rescene.info(srr)
  22.         except:
  23.                 print(f)
  24.                 with open(outlog, "a") as logf:
  25.                         logf.write(f + "\n")
RAW Paste Data