mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 19:57:45 +03:00
- Added a lot of supported media extensions for preview (tried to be exhaustive but the best way would probably be to use mime types)
This commit is contained in:
parent
e4ab5ceb43
commit
1e64d0a3e4
2 changed files with 3 additions and 3 deletions
|
@ -44,8 +44,8 @@ bittorrent::bittorrent(){
|
||||||
// To avoid some exceptions
|
// To avoid some exceptions
|
||||||
fs::path::default_name_check(fs::no_check);
|
fs::path::default_name_check(fs::no_check);
|
||||||
// Supported preview extensions
|
// Supported preview extensions
|
||||||
// XXX: might be incomplete
|
// XXX: A bit dirty to do it this way (use mime types?)
|
||||||
supported_preview_extensions << "AVI" << "DIVX" << "MPG" << "MPEG" << "MP3" << "OGG" << "WMV" << "WMA" << "RMV" << "RMVB" << "ASF" << "MOV" << "WAV" << "MP2" << "SWF" << "AC3" << "OGM" << "MP4" << "FLV" << "VOB";
|
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
|
// Creating bittorrent session
|
||||||
s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0));
|
s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0));
|
||||||
// Set severity level of libtorrent session
|
// Set severity level of libtorrent session
|
||||||
|
|
|
@ -101,7 +101,7 @@ class previewSelect: public QDialog, private Ui::preview {
|
||||||
previewList->setModel(previewListModel);
|
previewList->setModel(previewListModel);
|
||||||
listDelegate = new PreviewListDelegate(this);
|
listDelegate = new PreviewListDelegate(this);
|
||||||
previewList->setItemDelegate(listDelegate);
|
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);
|
previewList->header()->resizeSection(0, 200);
|
||||||
// Fill list in
|
// Fill list in
|
||||||
this->h = h;
|
this->h = h;
|
||||||
|
|
Loading…
Reference in a new issue