// SPDX-FileCopyrightText: 2026 Tri Vo Khac // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include namespace MediaInfo { // A short title for a media file name, without the release tags: "Show.S01E01.Pilot.1080p.WEB.mkv" // becomes "S01E01 ยท Pilot" and "Movie.2024.2160p.BluRay.mkv" becomes "Movie (2024)". Returns the // name without its extension when nothing better is found. QString cleanTitle(const QString &fileName); // Length of the media file at \a path in seconds, or nothing when it can't be read. std::optional probeDuration(const QString &path); }