aboutsummaryrefslogtreecommitdiff
path: root/src/FileAnalyzer.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-31 22:54:59 +0100
committerdec05eba <dec05eba@protonmail.com>2022-10-31 22:54:59 +0100
commit53316e4bada29f1392df2528d8616afde17f570b (patch)
tree4b687dc2bd2b46da1b2d31648bc40ceb6179972f /src/FileAnalyzer.cpp
parent9540ab168be53f3ec2aec513d855df0194d9cb8a (diff)
Add ctrl+shift+s to download files without a dialog
Diffstat (limited to 'src/FileAnalyzer.cpp')
-rw-r--r--src/FileAnalyzer.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/FileAnalyzer.cpp b/src/FileAnalyzer.cpp
index 0f312cf..b02d0c2 100644
--- a/src/FileAnalyzer.cpp
+++ b/src/FileAnalyzer.cpp
@@ -108,7 +108,7 @@ namespace QuickMedia {
|| strcase_equals(ext, ".flv")
|| strcase_equals(ext, ".vob")
|| strcase_equals(ext, ".ogv")
- || strcase_equals(ext, ".ogg")
+ //|| strcase_equals(ext, ".ogg")
|| strcase_equals(ext, ".avi")
//|| strcase_equals(ext, ".ts")
|| strcase_equals(ext, ".mov")
@@ -121,6 +121,24 @@ namespace QuickMedia {
|| strcase_equals(ext, ".3gp");
}
+ bool is_music_ext(const char *ext) {
+ return strcase_equals(ext, ".aac")
+ || strcase_equals(ext, ".alac")
+ || strcase_equals(ext, ".flac")
+ || strcase_equals(ext, ".m4a")
+ || strcase_equals(ext, ".m4p")
+ || strcase_equals(ext, ".mp3")
+ || strcase_equals(ext, ".ogg")
+ || strcase_equals(ext, ".oga")
+ || strcase_equals(ext, ".mogg")
+ || strcase_equals(ext, ".opus")
+ || strcase_equals(ext, ".vox")
+ || strcase_equals(ext, ".wav")
+ || strcase_equals(ext, ".wma")
+ || strcase_equals(ext, ".mid");
+
+ }
+
static int accumulate_string(char *data, int size, void *userdata) {
std::string *str = (std::string*)userdata;
str->append(data, size);