From de8d03285f890d20eafb29df36c803f683a9cc86 Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:36:26 +0100 Subject: [PATCH] Upgrade pyytlounge and fix #99 --- iSponsorBlockTV/setup_wizard.py | 6 ++++-- requirements.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iSponsorBlockTV/setup_wizard.py b/iSponsorBlockTV/setup_wizard.py index 75a35cf..69b0de7 100644 --- a/iSponsorBlockTV/setup_wizard.py +++ b/iSponsorBlockTV/setup_wizard.py @@ -1,6 +1,7 @@ -import aiohttp import asyncio import copy + +import aiohttp # Textual imports (Textual is awesome!) from textual import on from textual.app import App, ComposeResult @@ -12,6 +13,7 @@ from textual.widgets import Button, Footer, Header, Static, Label, Input, Select RadioSet, RadioButton from textual.widgets.selection_list import Selection from textual_slider import Slider + # Local imports from . import api_helpers, ytlounge from .constants import skip_categories @@ -457,7 +459,7 @@ class DevicesManager(Vertical): @on(Button.Pressed, "#element-remove") def remove_channel(self, event: Button.Pressed): channel_to_remove: Element = event.button.parent - self.config.channel_whitelist.remove(channel_to_remove.element_data) + self.config.devices.remove(channel_to_remove.element_data) channel_to_remove.remove() @on(Button.Pressed, "#add-device") diff --git a/requirements.txt b/requirements.txt index 66d01a0..ed6a004 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ aiohttp==3.8.6 argparse==1.4.0 async-cache==1.1.1 -pyytlounge==1.6.2 +pyytlounge==1.6.3 rich==13.6.0 ssdp==1.3.0 textual==0.40.0