mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-09 05:16:47 +03:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cece0242c4 | ||
|
|
b069487bd6 | ||
|
|
d4f9380eff | ||
|
|
245300d064 | ||
|
|
b9e010af9b | ||
|
|
bd0deec85e | ||
|
|
d0846b7d2c |
@@ -9,7 +9,7 @@ Check the [wiki](https://github.com/dmunozv04/iSponsorBlockTV/wiki/Installation)
|
||||
Warning: docker armv7 builds have been deprecated. Amd64 and arm64 builds are still available.
|
||||
|
||||
## Compatibility
|
||||
Leyend: ✅ = Working, ❌ = Not working, ❔ = Not tested
|
||||
Legend: ✅ = Working, ❌ = Not working, ❔ = Not tested
|
||||
|
||||
Open an issue/pull request if you have tested a device that isn't listed here.
|
||||
|
||||
@@ -24,7 +24,7 @@ Open an issue/pull request if you have tested a device that isn't listed here.
|
||||
| Fire TV | ❔ |
|
||||
| Nintendo Switch | ✅ |
|
||||
| Xbox One/Series | ❔ |
|
||||
| Playstation 4/5 | ❔ |
|
||||
| Playstation 4/5 | ✅ |
|
||||
|
||||
## Usage
|
||||
Run iSponsorBlockTV on a computer that has network access.
|
||||
|
||||
@@ -138,7 +138,7 @@ class ApiHelper:
|
||||
segment_dict["start"] - segment_before_end < 1
|
||||
): # Less than 1 second appart, combine them and skip them together
|
||||
segment_dict["start"] = segment_before_start
|
||||
segment_dict["UUID"].append(segment_before_UUID)
|
||||
segment_dict["UUID"].extend(segment_before_UUID)
|
||||
segments.pop()
|
||||
segments.append(segment_dict)
|
||||
except Exception:
|
||||
|
||||
@@ -226,12 +226,12 @@ class AddDevice(ModalWithClickExit):
|
||||
|
||||
@on(Input.Changed, "#pairing-code-input")
|
||||
def changed_pairing_code(self, event: Input.Changed):
|
||||
self.query_one("#add-device-button").disabled = not event.validation_result.is_valid
|
||||
self.query_one("#add-device-pin-add-button").disabled = not event.validation_result.is_valid
|
||||
|
||||
@on(Input.Submitted, "#pairing-code-input")
|
||||
@on(Button.Pressed, "#add-device-pin-add-button")
|
||||
async def handle_add_device_pin(self) -> None:
|
||||
self.query_one("#add-device-button").disabled = True
|
||||
self.query_one("#add-device-pin-add-button").disabled = True
|
||||
lounge_controller = ytlounge.YtLoungeApi("iSponsorBlockTV")
|
||||
pairing_code = self.query_one("#pairing-code-input").value
|
||||
pairing_code = int(pairing_code.replace("-", "").replace(" ", "")) # remove dashes and spaces
|
||||
@@ -253,7 +253,7 @@ class AddDevice(ModalWithClickExit):
|
||||
self.dismiss([device])
|
||||
else:
|
||||
self.query_one("#pairing-code-input").value = ""
|
||||
self.query_one("#add-device-button").disabled = False
|
||||
self.query_one("#add-device-pin-add-button").disabled = False
|
||||
self.query_one("#add-device-info").update("[#ff0000]Failed to add device")
|
||||
|
||||
@on(Button.Pressed, "#add-device-dial-add-button")
|
||||
|
||||
Reference in New Issue
Block a user