summaryrefslogtreecommitdiff
path: root/src/portal
diff options
context:
space:
mode:
Diffstat (limited to 'src/portal')
-rwxr-xr-xsrc/portal/scripts/create_vendor.sh2
-rwxr-xr-xsrc/portal/scripts/fetch_python_deps.sh8
-rw-r--r--src/portal/src/search.c1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/portal/scripts/create_vendor.sh b/src/portal/scripts/create_vendor.sh
index 3dd8bc3..6af8598 100755
--- a/src/portal/scripts/create_vendor.sh
+++ b/src/portal/scripts/create_vendor.sh
@@ -1,5 +1,7 @@
#! /usr/bin/env sh
+set -e
+
python3 -m venv ./venv
source ./venv/bin/activate
diff --git a/src/portal/scripts/fetch_python_deps.sh b/src/portal/scripts/fetch_python_deps.sh
new file mode 100755
index 0000000..2f8e098
--- /dev/null
+++ b/src/portal/scripts/fetch_python_deps.sh
@@ -0,0 +1,8 @@
+#! /usr/bin/env sh
+
+git clone https://github.com/yt-dlp/yt-dlp.git --depth=1 yt-dlp
+git clone https://github.com/JustAnotherArchivist/snscrape.git --depth=1 snscrape
+git clone https://github.com/trevorhobenshield/twitter-api-client.git --depth=1 twitter-api-client
+git clone https://github.com/upbit/pixivpy.git --depth=1 pixivpy
+git clone https://github.com/subzeroid/instagrapi.git --depth=1 instagrapi
+git clone https://github.com/mikf/gallery-dl.git --depth=1 gallery-dl
diff --git a/src/portal/src/search.c b/src/portal/src/search.c
index 81d1e72..a1b7310 100644
--- a/src/portal/src/search.c
+++ b/src/portal/src/search.c
@@ -62,6 +62,7 @@ static nn_thread_result NNWT_THREADCALL queue_thread(void *userdata)
{
nn_thread_setcanceltype(NNWT_THREAD_CANCEL_ASYNCHRONOUS);
struct camu_portal_bridge *bridge = (struct camu_portal_bridge *)userdata;
+ nn_thread_set_name("portal_queue");
bool have_python = false;
nn_mutex_lock(&bridge->mutex);