دعم الموقع

hi when this is a new problem for me because it was working fine before and it is very very weird problem. when i add or remove a movie or tv to my watchlist in my app i get this :

{"success":true,"status_code":1,"status_message":"Success."}
or
{"success":true,"status_code":1,"status_message":"The item/record was updated successfully."}

but when i call the getTVWatchlist api so my list gets updated it still returns the same tvs that i added before. when i use the Postman app the problem still remains the same (the watchlist dont get updated) so i played around and found out that if i login to my app again (get new session id) i am able to get the updated tv or movie watchlist why is that ? should i look for the problem in my code or is it a backend issue ? what's crazy is that sometimes when i call the getTVWatchlist api over and over sometimes the lists im getting are not the same same which is weird. for example if i have tv1 and tv2 in my watchlist and i delete tv2 from the watchlist if i refresh or call the watclist api again i get a list with only tv1 in it and when i call it again i get a list with both tv1 and tv2 in it which is weird because i deleted tv2 from watchlist AND got the correct meessage from api. I appreciate any help thank you !

here are my end points just in case :

@GET("account/{account_id}/watchlist/tv")
    suspend fun getWatchListTV(
        @Path(
            value = "account_id",
            encoded = true
        ) accountId: Int = Constants.ACC_ID.toInt(),
        @Query("api_key") apiKey: String = Constants.API_KEY,
        @Query("session_id") sessionId: String = Constants.SESSION_ID,
        @Query("language") language: String = Constants.USER_LANG,
    ): Response<WatchListTV>



@POST("account/{account_id}/watchlist")
    suspend fun addToWatchList(
        @Body watchListRequest: AddToWatchListRequest,
        @Path(
            value = "account_id",
            encoded = true
        ) accountId: Int = Constants.ACC_ID.toInt(),
        @Query("api_key") apiKey: String = Constants.API_KEY,
        @Query("session_id") sessionId: String = Constants.SESSION_ID,
        @Query("language") language: String = Constants.USER_LANG,
    ): Response<AddToWatchListResult>


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

Jump to last post

The watchlist endpoints inadvertently got a 30 minute cache added to them when they shouldn't have. I believe you'll see the updates happen live now.

Cheers.

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول