From 3486d0bf5520cbdff60bd8fd023caed76c452973 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Fri, 15 Oct 2021 20:54:15 -0400 Subject: [PATCH] feat: dynamically fetch login screen backdrop images (#2206) * feat: dynamically fetch login screen backdrop images * fix: remove media check from backdrops endpoint * fix: remove mapping and work with TMDb data directly --- overseerr-api.yml | 16 ++++++++++++++++ public/images/rotate1.jpg | Bin 137458 -> 0 bytes public/images/rotate2.jpg | Bin 1071025 -> 0 bytes public/images/rotate3.jpg | Bin 380523 -> 0 bytes public/images/rotate4.jpg | Bin 417030 -> 0 bytes public/images/rotate5.jpg | Bin 393281 -> 0 bytes public/images/rotate6.jpg | Bin 431287 -> 0 bytes server/routes/discover.ts | 20 ++++++++++---------- server/routes/index.ts | 26 +++++++++++++++++++++++++- src/components/Login/index.tsx | 21 ++++++++++++--------- 10 files changed, 63 insertions(+), 20 deletions(-) delete mode 100644 public/images/rotate1.jpg delete mode 100644 public/images/rotate2.jpg delete mode 100644 public/images/rotate3.jpg delete mode 100644 public/images/rotate4.jpg delete mode 100644 public/images/rotate5.jpg delete mode 100644 public/images/rotate6.jpg diff --git a/overseerr-api.yml b/overseerr-api.yml index 63638eeac..bf324b029 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -5167,6 +5167,22 @@ paths: name: type: string example: Drama + /backdrops: + get: + summary: Get backdrops of trending items + description: Returns a list of backdrop image paths in a JSON array. + security: [] + tags: + - tmdb + responses: + '200': + description: Results + content: + application/json: + schema: + type: array + items: + type: string security: - cookieAuth: [] diff --git a/public/images/rotate1.jpg b/public/images/rotate1.jpg deleted file mode 100644 index 8d04487eabfb551d3c0da98fd057590cff73114b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 137458 zcmbrmc{r5s8$LXQWKGDftT7mjEu^y65HZczhnPWj4Q8??Yh=k}OhPDQ89Sjdq^x64 zWXYO+9Un`{R_}b@_x
mh#+)wS2YVi%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