Improve detection of filename extension of audio/video files

This commit is contained in:
Chocobo1
2021-02-21 17:06:30 +08:00
parent 529dd6e3a8
commit e1f9083c81
4 changed files with 21 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ namespace Utils::Misc
int friendlyUnitPrecision(SizeUnit unit);
qint64 sizeInBytes(qreal size, SizeUnit unit);
bool isPreviewable(const QString &extension);
bool isPreviewable(const QString &filename);
// Take a number of seconds and return a user-friendly
// time duration like "1d 2h 10m".