Ticket #237: samsung.patch
| File samsung.patch, 1.7 kB (added by simonsocke, 3 years ago) |
|---|
-
Coherence/coherence/upnp/core/DIDLLite.py
old new 178 178 additional_info = ['*'] 179 179 if content_format == 'video/x-ms-wmv': 180 180 additional_info = ['DLNA.ORG_PN=WMV_BASE']+simple_dlna_tags 181 if content_format in ['video/avi', 'video/divx']: 182 additional_info = ['DLNA.ORG_PN=AVI']+simple_dlna_tags 183 if content_format == 'video/quicktime': 184 additional_info = ['DLNA.ORG_PN=QUICKTIME']+simple_dlna_tags 181 185 if content_format == '*': 182 186 additional_info = simple_dlna_tags 183 187 -
Coherence/coherence/backends/fs_storage.py
old new 21 21 mimetypes.add_type('video/mp4', '.mp4') 22 22 mimetypes.add_type('video/mpegts', '.ts') 23 23 mimetypes.add_type('video/divx', '.divx') 24 mimetypes.add_type('video/divx', '.avi') 24 25 25 26 from urlparse import urlsplit 26 27 … … 741 742 'http-get:*:video/mpeg:*', 742 743 'internal:%s:video/avi:*' % self.server.coherence.hostname, 743 744 'http-get:*:video/avi:*', 745 'internal:%s:video/divx:*' % self.server.coherence.hostname, 746 'http-get:*:video/divx:*', 744 747 'internal:%s:video/quicktime:*' % self.server.coherence.hostname, 745 748 'http-get:*:video/quicktime:*', 746 749 'internal:%s:image/gif:*' % self.server.coherence.hostname,
