diff options
| author | Bobby <[email protected]> | 2024-09-30 18:45:27 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2024-09-30 18:45:27 -0400 |
| commit | dee5e10bf5c3d2cea722158c317445bf6cb06f2c (patch) | |
| tree | 8f952708e4383c591281465e3d28397385524027 | |
| parent | e270bed3de3a8ce5a46d63597fa3feb1df4d7a7d (diff) | |
| download | yugen-dee5e10bf5c3d2cea722158c317445bf6cb06f2c.tar.xz yugen-dee5e10bf5c3d2cea722158c317445bf6cb06f2c.zip | |
fixed utils
| -rw-r--r-- | watch/utils.py | 2 |
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 |
