mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-27 12:50:52 +03:00
Upgrade pyytlounge and fix #99
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import aiohttp
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
|
import aiohttp
|
||||||
# Textual imports (Textual is awesome!)
|
# Textual imports (Textual is awesome!)
|
||||||
from textual import on
|
from textual import on
|
||||||
from textual.app import App, ComposeResult
|
from textual.app import App, ComposeResult
|
||||||
@@ -12,6 +13,7 @@ from textual.widgets import Button, Footer, Header, Static, Label, Input, Select
|
|||||||
RadioSet, RadioButton
|
RadioSet, RadioButton
|
||||||
from textual.widgets.selection_list import Selection
|
from textual.widgets.selection_list import Selection
|
||||||
from textual_slider import Slider
|
from textual_slider import Slider
|
||||||
|
|
||||||
# Local imports
|
# Local imports
|
||||||
from . import api_helpers, ytlounge
|
from . import api_helpers, ytlounge
|
||||||
from .constants import skip_categories
|
from .constants import skip_categories
|
||||||
@@ -457,7 +459,7 @@ class DevicesManager(Vertical):
|
|||||||
@on(Button.Pressed, "#element-remove")
|
@on(Button.Pressed, "#element-remove")
|
||||||
def remove_channel(self, event: Button.Pressed):
|
def remove_channel(self, event: Button.Pressed):
|
||||||
channel_to_remove: Element = event.button.parent
|
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()
|
channel_to_remove.remove()
|
||||||
|
|
||||||
@on(Button.Pressed, "#add-device")
|
@on(Button.Pressed, "#add-device")
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
aiohttp==3.8.6
|
aiohttp==3.8.6
|
||||||
argparse==1.4.0
|
argparse==1.4.0
|
||||||
async-cache==1.1.1
|
async-cache==1.1.1
|
||||||
pyytlounge==1.6.2
|
pyytlounge==1.6.3
|
||||||
rich==13.6.0
|
rich==13.6.0
|
||||||
ssdp==1.3.0
|
ssdp==1.3.0
|
||||||
textual==0.40.0
|
textual==0.40.0
|
||||||
|
|||||||
Reference in New Issue
Block a user