From 561d80f2e590eb21d78bbf9b29ad21a4dcd9a181 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A." Date: Fri, 7 Jun 2024 18:28:04 +0300 Subject: [PATCH] Add warning to history view if some backends aren't reporting the same item. --- frontend/pages/history/[id]/index.vue | 86 +++++++++++++++++--- frontend/pages/history/index.vue | 14 +++- frontend/utils/index.js | 23 +++++- src/API/History/Index.php | 113 ++++++++++++++++++++------ 4 files changed, 193 insertions(+), 43 deletions(-) diff --git a/frontend/pages/history/[id]/index.vue b/frontend/pages/history/[id]/index.vue index b107e87f..0943c234 100644 --- a/frontend/pages/history/[id]/index.vue +++ b/frontend/pages/history/[id]/index.vue @@ -35,6 +35,31 @@ +
+ +
+

+ + There are no metadata regarding this {{ data.type }} from ( + + + ). +

+
Possible reasons:
+
    +
  • Delayed import operation. Might be yet to be imported due to webhooks not being used, or the backend + doesn't support webhooks. +
  • +
  • Item mismatched at the source backend.
  • +
  • + There are no matching {{ 'episode' === data.type ? 'Series GUIDs' : 'GUIDs' }} in common + being reported, And thus it was treated as separate item. +
  • +
+
+
+
+
@@ -106,8 +131,8 @@ - Type: - {{ ucFirst(data.type) }} + Type:  +
@@ -115,14 +140,18 @@
- Season: {{ data.season }} + Season:  + +
- Episode: {{ data.episode }} + Episode:  + +
@@ -138,6 +167,18 @@
+
+ + + rGUIDs: + + + + {{ source.split('guid_')[1] }}-{{ guid }} + + +
+
@@ -231,8 +272,8 @@ - Type: - {{ ucFirst(item.type) }} + Type:  +
@@ -240,14 +281,20 @@
- Season: {{ item.season }} + + Season:  + +
- Episode: {{ item.episode }} + + Episode:  + +
@@ -275,7 +322,7 @@ -
+
Title: {{ item.extra.title }} @@ -311,6 +358,23 @@ backend. While clicking on the GUIDs will take you to that source link, similarly clicking on the series GUIDs will take you to the series link that was provided by the external source. +
  • + rGUIDSs are relative globally unique identifiers for episodes based on series + GUID. They are formatted as GUID://seriesID/season_number/episode_number. We use + rGUIDs, to identify specific episode. This is more reliable than using episode specific + GUID, as they are often misreported in the source data. +
  • +
    @@ -320,7 +384,7 @@