diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index f6823e5e3..5b4812867 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -44,8 +44,8 @@ bittorrent::bittorrent(){ // To avoid some exceptions fs::path::default_name_check(fs::no_check); // Supported preview extensions - // XXX: might be incomplete - supported_preview_extensions << "AVI" << "DIVX" << "MPG" << "MPEG" << "MP3" << "OGG" << "WMV" << "WMA" << "RMV" << "RMVB" << "ASF" << "MOV" << "WAV" << "MP2" << "SWF" << "AC3" << "OGM" << "MP4" << "FLV" << "VOB"; + // XXX: A bit dirty to do it this way (use mime types?) + supported_preview_extensions << "AVI" << "DIVX" << "MPG" << "MPEG" << "MPE" << "MP3" << "OGG" << "WMV" << "WMA" << "RMV" << "RMVB" << "ASF" << "MOV" << "WAV" << "MP2" << "SWF" << "AC3" << "OGM" << "MP4" << "FLV" << "VOB" << "QT" << "MKV" << "AIF" << "AIFF" << "AIFC" << "MID" << "MPG" << "RA" << "RAM" << "AU" << "M4A" << "FLAC" << "M4P" << "3GP" << "AAC" << "RM" << "SWA" << "MPC" << "MPP"; // Creating bittorrent session s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0)); // Set severity level of libtorrent session diff --git a/src/previewSelect.h b/src/previewSelect.h index 370275dc6..468fe3b61 100644 --- a/src/previewSelect.h +++ b/src/previewSelect.h @@ -101,7 +101,7 @@ class previewSelect: public QDialog, private Ui::preview { previewList->setModel(previewListModel); listDelegate = new PreviewListDelegate(this); previewList->setItemDelegate(listDelegate); - supported_preview_extensions<<"AVI"<<"DIVX"<<"MPG"<<"MPEG"<<"MP3"<<"OGG"<<"WMV"<<"WMA"<<"RMV"<<"RMVB"<<"ASF"<<"MOV"<<"WAV"<<"MP2"<<"SWF"<<"AC3"; + supported_preview_extensions << "AVI" << "DIVX" << "MPG" << "MPEG" << "MPE" << "MP3" << "OGG" << "WMV" << "WMA" << "RMV" << "RMVB" << "ASF" << "MOV" << "WAV" << "MP2" << "SWF" << "AC3" << "OGM" << "MP4" << "FLV" << "VOB" << "QT" << "MKV" << "AIF" << "AIFF" << "AIFC" << "MID" << "MPG" << "RA" << "RAM" << "AU" << "M4A" << "FLAC" << "M4P" << "3GP" << "AAC" << "RM" << "SWA" << "MPC" << "MPP"; previewList->header()->resizeSection(0, 200); // Fill list in this->h = h;