From 67eb40ca9d48328fe6eb122e3540ca28e86ee14b Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:20:16 +0100 Subject: [PATCH 1/2] Add badges to README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 8bc2484..822c585 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ # iSponsorBlockTV +[![ghcr.io Pulls](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fipitio.github.io%2Fbackage%2Fdmunozv04%2FiSponsorBlockTV%2Fisponsorblocktv.json&query=downloads&logo=github&label=ghcr.io%20pulls&style=flat)](https://ghcr.io/dmunozv04/isponsorblocktv) +[![Docker Pulls](https://img.shields.io/docker/pulls/dmunozv04/isponsorblocktv?logo=docker&style=flat)](https://hub.docker.com/r/dmunozv04/isponsorblocktv/) +[![GitHub Release](https://img.shields.io/github/v/release/dmunozv04/isponsorblocktv?logo=GitHub&style=flat)](https://github.com/dmunozv04/iSponsorBlockTV/releases/latest) +[![GitHub Repo stars](https://img.shields.io/github/stars/dmunozv04/isponsorblocktv?style=flat)](https://github.com/dmunozv04/isponsorblocktv) + Skip sponsor segments in YouTube videos playing on a YouTube TV device (see below for compatibility details). This project is written in asynchronous python and should be pretty quick. From f3d3bdd43252cdf827a1a5966b833bf91e519805 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 17:20:39 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/iSponsorBlockTV/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iSponsorBlockTV/main.py b/src/iSponsorBlockTV/main.py index 09a8a66..a199f98 100644 --- a/src/iSponsorBlockTV/main.py +++ b/src/iSponsorBlockTV/main.py @@ -145,9 +145,11 @@ async def finish(devices, web_session, tcp_connector): await web_session.close() await tcp_connector.close() + def handle_signal(signum, frame): raise KeyboardInterrupt() + def main(config, debug): loop = asyncio.get_event_loop_policy().get_event_loop() tasks = [] # Save the tasks so the interpreter doesn't garbage collect them