From dee5e10bf5c3d2cea722158c317445bf6cb06f2c Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 30 Sep 2024 18:45:27 -0400 Subject: fixed utils --- watch/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3