Changeset ec5ac22f1f4ce5c2a658d1690fd6ca44c732c643
- Timestamp:
- 02/03/08 10:28:52 (1 year ago)
- git-parent:
[d1133d570686ff1c270dd7750434c939c1578a9c], [ae0b9b35097c476bde6d089bce3c093b21e5b507]
- Files:
-
- plugins/video/video.ext (added)
- plugins/video/video.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/video/video.py
r1041a57 rec5ac22 14 14 CLASS_NAME = 'Video' 15 15 16 extfile = os.path.join(SCRIPTDIR, 'video.ext') 17 try: 18 extensions = file(extfile).read().split() 19 except: 20 extensions = None 21 16 22 debug = config.getDebug() 17 23 hack83 = config.getHack83() … … 41 47 if os.path.isdir(full_path): 42 48 return True 43 return transcode.supported_format(full_path) 49 if extensions: 50 return os.path.splitext(full_path)[1].lower() in extensions 51 else: 52 return transcode.supported_format(full_path) 44 53 45 54 def hack(self, handler, query, subcname): … … 204 213 return 205 214 206 tsn = handler.headers.getheader('tsn', '')215 tsn = handler.headers.getheader('tsn', '') 207 216 208 217 o = urlparse("http://fake.host" + handler.path)
