|
|
@@ -79,9 +79,10 @@ from MediaServer import MediaServer |
|
|
|
medianode = static.File('media') |
|
|
|
medianode.contentTypes.update( { |
|
|
|
'.wmv': 'video/x-ms-wmv', |
|
|
|
'.ts': 'video/mp2t', |
|
|
|
#'.ts': 'video/mpeg', # we may want this instead of mp2t |
|
|
|
'.mp4': 'video/mp4', |
|
|
|
#'.ts': 'video/mp2t', |
|
|
|
'.ts': 'video/mpeg', # we may want this instead of mp2t |
|
|
|
#'.mp4': 'video/mp4', |
|
|
|
'.mp4': 'video/mpeg', |
|
|
|
}) |
|
|
|
root.putChild('media', medianode) |
|
|
|
|
|
|
@@ -95,6 +96,8 @@ for i in os.listdir('media'): |
|
|
|
log.msg('skipping: %s' % fpath) |
|
|
|
continue |
|
|
|
fn, ext = os.path.splitext(i) |
|
|
|
if ext == '.ts': |
|
|
|
continue |
|
|
|
mt = medianode.contentTypes[ext] |
|
|
|
ty = mt.split('/')[0] |
|
|
|
if ty == 'video': |
|
|
|