about summary refs log tree commit diff stats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorComradeCrow <comradecrow@vivaldi.net>2023-04-27 23:33:49 -0700
committerComradeCrow <comradecrow@vivaldi.net>2023-04-27 23:33:49 -0700
commita58e7083712a14f3e644b8d3badf4254191199fa (patch)
tree79a2adf67081e0525ecd59c627cf4579bcda83c2 /src/main.cpp
parent42452b644f4acc7425546d7c46d627b720cbafa6 (diff)
downloadytcpp-a58e7083712a14f3e644b8d3badf4254191199fa.tar.gz
video update
seperate out video, add more conversions, add to invapi cuz it will be
needed
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 02afb7b..100d2b5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -8,8 +8,10 @@
 // #include <vector>
 #include <fstream>
 #include <filesystem>
+#include <stdlib.h>
 
 #include "tui.hpp"
+#include "video.hpp"
 #include "invapi.hpp"
 #include "YtdlpWrapper.hpp"
 #include "sqliteinterface.hpp"
@@ -37,7 +39,7 @@ void validateStructConversions() {
         
         if (i.key() != "formats") {
             
-            assert(j.at(i.key()) == info.at(i.key()));
+            assert(i.value() == info.at(i.key()));
             cout << i.key() << ": " << i.value() << endl;
         }
     }
@@ -49,10 +51,20 @@ void validateStructConversions() {
             if (k.key() == "quality" || k.key() == "resolution") cout << k.key() << ": " << k.value() << endl;
         }
     }
-} 
+}
+
+void parseSysArgs(int argc, char **argv) {
+
+    for (int i{0}; i < argc; ++i) {
+        cout << *(argv + i) << endl;
+    }
+}
 
 int main(int argc, char **argv) {
 
+    parseSysArgs(argc, argv);
+    
+
     // validateStructConversions();
     
     // YtdlpWrapper yt;