aboutsummaryrefslogtreecommitdiff
path: root/watch/utils.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2024-09-30 18:45:27 -0400
committerBobby <[email protected]>2024-09-30 18:45:27 -0400
commitdee5e10bf5c3d2cea722158c317445bf6cb06f2c (patch)
tree8f952708e4383c591281465e3d28397385524027 /watch/utils.py
parente270bed3de3a8ce5a46d63597fa3feb1df4d7a7d (diff)
downloadyugen-dee5e10bf5c3d2cea722158c317445bf6cb06f2c.tar.xz
yugen-dee5e10bf5c3d2cea722158c317445bf6cb06f2c.zip
fixed utils
Diffstat (limited to 'watch/utils.py')
-rw-r--r--watch/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/watch/utils.py b/watch/utils.py
index 336127a..ce669c0 100644
--- a/watch/utils.py
+++ b/watch/utils.py
@@ -296,7 +296,7 @@ def extract_seasons(data):
def process_relations(relations, depth):
for edge in relations['edges']:
- if edge['relationType'] in ['SEQUEL', 'PREQUEL', 'ALTERNATIVE', 'PARENT', 'SIDE_STORY']:
+ if edge['relationType'] in ['SEQUEL', 'PREQUEL', 'ALTERNATIVE', 'PARENT', 'SIDE_STORY'] and edge['node']['format'] in ['TV', 'TV_SHORT', 'MOVIE', 'SPECIAL', 'OVA']:
add_content(edge['node'], depth)
# Start with the main media