diff include/core/torrent.h @ 118:39521c47c7a3

*: another huge megacommit, SORRY The torrents page works a lot better now Added the edit option to the anime list right click menu Vectorized currently playing files Available player and extensions are now loaded at runtime from files in (dotpath)/players.json and (dotpath)/extensions.json These paths are not permanent and will likely be moved to (dotpath)/recognition ... ... ...
author Paper <mrpapersonic@gmail.com>
date Tue, 07 Nov 2023 23:40:54 -0500
parents ab191e28e69d
children 4d461ef7d424
line wrap: on
line diff
--- a/include/core/torrent.h	Tue Nov 07 16:06:17 2023 -0500
+++ b/include/core/torrent.h	Tue Nov 07 23:40:54 2023 -0500
@@ -4,11 +4,14 @@
 #include <string>
 #include <QDateTime>
 
-/* this will be moved into its own namespace if
+/* this is really just a fancy struct...
+
+   this will be moved into its own namespace if
    it's deemed necessary */
 class Torrent {
 	public:
 		std::string GetTitle() const { return _title; };
+		std::string GetCategory() const { return _category; };
 		std::string GetEpisode() const { return _episode; };
 		std::string GetGroup() const { return _group; };
 		size_t GetSize() const { return _size; };
@@ -23,6 +26,7 @@
 		QDateTime GetDate() const { return _date; };
 
 		void SetTitle(const std::string& title) { _title = title; };
+		void SetCategory(const std::string& category) { _category = category; };
 		void SetEpisode(const std::string& episode) { _episode = episode; };
 		void SetGroup(const std::string& group) { _group = group; };
 		void SetSize(const size_t size) { _size = size; };
@@ -38,6 +42,7 @@
 
 	private:
 		std::string _title;
+		std::string _category;
 		std::string _episode;
 		std::string _group;
 		size_t _size = 0;