Browse Source

twitch: Exclude highlights and only use stream_id for archives

main
Mattéo Delabre 3 years ago
parent
commit
f22a758e2e
Signed by: matteo GPG Key ID: AE3FBD02DC583ABB
  1. 5
      feedleware/twitch/feed.py

5
feedleware/twitch/feed.py

@ -44,7 +44,10 @@ def construct_rss(client: APIClient, login: str) -> str:
item = {}
if video.get("stream_id") is not None:
if video.get("type") not in ("upload", "archive"):
continue
if video.get("type") == "archive":
if stream is not None and stream["id"] == video["stream_id"]:
# Do not add a second item for the active stream
continue

Loading…
Cancel
Save