دعم الموقع

I am trying to run concurrent threads which each do their own TMDB lookups, however it appears that the python module is not thread safe and I can't find a way of creating a new instance of the import without actually copying the entire package or using multiprocessing which dupes the entire process space.

Has anyone else run into this problem/knows how to solve it?

Thanks!

2 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Hi @quietearth We don't maintain the libraries so you'll probably have better luck contacting the developer directly.

Unless someone else comes along who has experience with it of course...

For those searching from the future:

I cut out the tmdb3 caching backend (as it used a single file) and directly cached every entry by modifying put() and get() which is where all lookups are fed through (cache.py). Also, all tmdb3 lookups, eg searchMovie, require locks. This includes instance shortcuts such as title.imdb and title.alternative_titles which also performed additional lookups when accessed.

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول