inial commit

This commit is contained in:
uvos 2024-02-11 15:17:07 +01:00
commit 62ea8ab3e3
31 changed files with 6611 additions and 0 deletions

20
tag.h Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <filesystem>
#include <string>
class AiTags
{
private:
static bool formatCandiateTag(std::string& tag);
static bool checkCandiateTag(std::string tag, const std::filesystem::path& path);
public:
std::filesystem::path path;
std::string artist;
std::string title;
std::string album;
bool isFilled() const;
void parseFromResponse(const std::string& response, const std::filesystem::path &path, bool noAlbum = false);
bool writeToFile() const;
};