File: VideoTools.py

package info (click to toggle)
subdownloader 2.0.18-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,560 kB
  • ctags: 879
  • sloc: python: 19,085; makefile: 43; sh: 13
file content (15 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
# Copyright (c) 2010 SubDownloader Developers - See COPYING - GPLv3

import re, os, logging
import modules.videofile as videofile
import modules.subtitlefile as subtitlefile
from FileManagement import get_extension, clear_string, without_extension
from languages import Languages, autodetect_lang

log = logging.getLogger("subdownloader.FileManagement.Video")

def isVideofile(filepath):
    if get_extension(filepath).lower() in videofile.VIDEOS_EXT:
        return True
    return False