Mercurial > libervia-web
comparison browser_side/radiocol.py @ 398:462fc3359ee3
browser_side: radiocol accepts mime type audio/mp3 in addition to audio/mpeg
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 11 Mar 2014 12:31:29 +0100 |
parents | 6148e9063069 |
children | 20c508f9b32a |
comparison
equal
deleted
inserted
replaced
397:6148e9063069 | 398:462fc3359ee3 |
---|---|
86 vPanel = VerticalPanel() | 86 vPanel = VerticalPanel() |
87 | 87 |
88 types = [('audio/ogg', '*.ogg', 'Ogg Vorbis Audio'), | 88 types = [('audio/ogg', '*.ogg', 'Ogg Vorbis Audio'), |
89 ('video/ogg', '*.ogv', 'Ogg Vorbis Video'), | 89 ('video/ogg', '*.ogv', 'Ogg Vorbis Video'), |
90 ('application/ogg', '*.ogx', 'Ogg Vorbis Multiplex'), | 90 ('application/ogg', '*.ogx', 'Ogg Vorbis Multiplex'), |
91 ('audio/mpeg', '*.mp3', 'MPEG-Layer 3')] | 91 ('audio/mpeg', '*.mp3', 'MPEG-Layer 3'), |
92 ('audio/mp3', '*.mp3', 'MPEG-Layer 3'), | |
93 ] | |
92 self.file_upload = FilterFileUpload("song", 10, types) | 94 self.file_upload = FilterFileUpload("song", 10, types) |
93 vPanel.add(self.file_upload) | 95 vPanel.add(self.file_upload) |
94 | 96 |
95 hPanel = HorizontalPanel() | 97 hPanel = HorizontalPanel() |
96 self.upload_btn = Button("Upload song", getattr(self, "onBtnClick")) | 98 self.upload_btn = Button("Upload song", getattr(self, "onBtnClick")) |