Created
March 11, 2014 13:07
-
-
Save connors511/9485246 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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