Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
from ctypes import c_char_p
from flask import Flask, Response, request
from multiprocessing import Lock, Manager, Process
from pprint import pprint
from requests import Session, get, post
from requests.adapters import HTTPAdapter
from requests.exceptions import ConnectionError, HTTPError
from secrets import token_urlsafe
@matoro
matoro / README.txt
Created December 29, 2023 20:47
matoro's test script (as of 2023.12.29)
Directory structure should be as follows:
<test directory, you need write access to this>
-> dotest.sh
-> functions.sh
-> testreqs.package.use
-> $(hostname -s)
-> settings.sh
You execute from inside $(hostname -s) like:
@matoro
matoro / gentoo-wiki-cli.py
Created September 27, 2022 02:20
Arch testing tracker in a wiki page (WIP)
from datetime import date
from os import system
from requests import Session
from sys import argv
USERNAME = ""
PASSWORD = ""
URL = "https://wiki.gentoo.org/api.php"
WIKIPAGE = "User:Matoro/ARCHtesting"
REPO = ""
pMb8TW
diff --git a/trackma/lib/libmal.py b/trackma/lib/libmal.py
index 5d2fb01..c04f977 100644
--- a/trackma/lib/libmal.py
+++ b/trackma/lib/libmal.py
@@ -338,7 +338,7 @@ class libmal(lib):
show_id = item['anime_id']
show.update({
'id': show_id,
- 'title': item['anime_title'],
+ 'title': str(item['anime_title']),