Skip to content

Instantly share code, notes, and snippets.

@connors511
Created March 11, 2014 13:07
Show Gist options
  • Save connors511/9485246 to your computer and use it in GitHub Desktop.
Save connors511/9485246 to your computer and use it in GitHub Desktop.
def isDVDFile(self, file_name):
if list(set(file_name.lower().split(os.path.sep)) & set(['video_ts', 'audio_ts'])):
return True
for needle in ['vts_', 'video_ts', 'audio_ts', 'bdmv', 'certificate']:
if needle in file_name.lower():
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment