X-Git-Url: https://git.sur5r.net/?p=minitube;a=blobdiff_plain;f=src%2Fyt%2Finvidious%2Fivsinglevideosource.cpp;fp=src%2Fyt%2Finvidious%2Fivsinglevideosource.cpp;h=e7e169491fcc25da535d3275f4e50e4344f75c8a;hp=0000000000000000000000000000000000000000;hb=9337294c49c89c5cb01db726835da60af566821f;hpb=be5ee6ccd9b29c9d5ca59e4a3d4adf53bac6bc8d diff --git a/src/yt/invidious/ivsinglevideosource.cpp b/src/yt/invidious/ivsinglevideosource.cpp new file mode 100644 index 0000000..e7e1694 --- /dev/null +++ b/src/yt/invidious/ivsinglevideosource.cpp @@ -0,0 +1,84 @@ +#include "ivsinglevideosource.h" + +#include "http.h" +#include "httputils.h" +#include "video.h" + +#include "invidious.h" +#include "ivlistparser.h" + +IVSingleVideoSource::IVSingleVideoSource(QObject *parent) + : IVVideoSource(parent), video(nullptr), startIndex(0), max(0) {} + +void IVSingleVideoSource::reallyLoadVideos(int max, int startIndex) { + aborted = false; + this->startIndex = startIndex; + this->max = max; + + QUrl url; + + if (startIndex == 1) { + if (video) { + QVector