mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 03:46:44 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
10
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -13,6 +13,7 @@ A clear and concise description of what the bug is.
|
|||||||
|
|
||||||
**To Reproduce**
|
**To Reproduce**
|
||||||
Steps to reproduce the behavior:
|
Steps to reproduce the behavior:
|
||||||
|
|
||||||
1. Go to '...'
|
1. Go to '...'
|
||||||
2. Click on '....'
|
2. Click on '....'
|
||||||
3. Scroll down to '....'
|
3. Scroll down to '....'
|
||||||
@@ -25,13 +26,14 @@ A clear and concise description of what you expected to happen.
|
|||||||
If applicable, add screenshots to help explain your problem.
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
**iSponsorBlockTV server (please complete the following information):**
|
**iSponsorBlockTV server (please complete the following information):**
|
||||||
- OS: [e.g. Docker on linux Arm64, windows]
|
|
||||||
- Python version [e.g. 3.7] (no need to fill if running on docker
|
- OS: [e.g. Docker on linux Arm64, windows]
|
||||||
|
- Python version [e.g. 3.7] (no need to fill if running on docker
|
||||||
|
|
||||||
**Apple TV (please complete the following information):**
|
**Apple TV (please complete the following information):**
|
||||||
- Device: [e.g. Apple TV 4]
|
|
||||||
- OS: [e.g. tvOS 15.4]
|
|
||||||
|
|
||||||
|
- Device: [e.g. Apple TV 4]
|
||||||
|
- OS: [e.g. tvOS 15.4]
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ notice like this when it starts in an interactive mode:
|
|||||||
This is free software, and you are welcome to redistribute it
|
This is free software, and you are welcome to redistribute it
|
||||||
under certain conditions; type `show c' for details.
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
The hypothetical commands `show w' and`show c' should show the appropriate
|
||||||
parts of the General Public License. Of course, your program's commands
|
parts of the General Public License. Of course, your program's commands
|
||||||
might be different; for a GUI interface, you would use an "about box".
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -1,4 +1,5 @@
|
|||||||
# iSponsorBlockTV
|
# iSponsorBlockTV
|
||||||
|
|
||||||
[](https://ghcr.io/dmunozv04/isponsorblocktv)
|
[](https://ghcr.io/dmunozv04/isponsorblocktv)
|
||||||
[](https://hub.docker.com/r/dmunozv04/isponsorblocktv/)
|
[](https://hub.docker.com/r/dmunozv04/isponsorblocktv/)
|
||||||
[](https://github.com/dmunozv04/iSponsorBlockTV/releases/latest)
|
[](https://github.com/dmunozv04/iSponsorBlockTV/releases/latest)
|
||||||
@@ -9,11 +10,13 @@ Skip sponsor segments in YouTube videos playing on a YouTube TV device (see belo
|
|||||||
This project is written in asynchronous python and should be pretty quick.
|
This project is written in asynchronous python and should be pretty quick.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Check the [wiki](https://github.com/dmunozv04/iSponsorBlockTV/wiki/Installation)
|
Check the [wiki](https://github.com/dmunozv04/iSponsorBlockTV/wiki/Installation)
|
||||||
|
|
||||||
Warning: docker armv7 builds have been deprecated. Amd64 and arm64 builds are still available.
|
Warning: docker armv7 builds have been deprecated. Amd64 and arm64 builds are still available.
|
||||||
|
|
||||||
## Compatibility
|
## Compatibility
|
||||||
|
|
||||||
Legend: ✅ = 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.
|
Open an issue/pull request if you have tested a device that isn't listed here.
|
||||||
@@ -34,6 +37,7 @@ Open an issue/pull request if you have tested a device that isn't listed here.
|
|||||||
| Playstation 4/5 | ✅ |
|
| Playstation 4/5 | ✅ |
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Run iSponsorBlockTV on a computer that has network access.
|
Run iSponsorBlockTV on a computer that has network access.
|
||||||
Auto discovery will require the computer to be on the same network as the device during setup.
|
Auto discovery will require the computer to be on the same network as the device during setup.
|
||||||
The device can also be manually added to iSponsorBlockTV with a YouTube TV code. This code can be found in the settings page of your YouTube application.
|
The device can also be manually added to iSponsorBlockTV with a YouTube TV code. This code can be found in the settings page of your YouTube application.
|
||||||
@@ -42,6 +46,7 @@ It connects to the device, watches its activity and skips any sponsor segment us
|
|||||||
It can also skip/mute YouTube ads.
|
It can also skip/mute YouTube ads.
|
||||||
|
|
||||||
## Libraries used
|
## Libraries used
|
||||||
|
|
||||||
- [pyytlounge](https://github.com/FabioGNR/pyytlounge) Used to interact with the device
|
- [pyytlounge](https://github.com/FabioGNR/pyytlounge) Used to interact with the device
|
||||||
- asyncio and [aiohttp](https://github.com/aio-libs/aiohttp)
|
- asyncio and [aiohttp](https://github.com/aio-libs/aiohttp)
|
||||||
- [async-cache](https://github.com/iamsinghrajat/async-cache)
|
- [async-cache](https://github.com/iamsinghrajat/async-cache)
|
||||||
@@ -49,9 +54,11 @@ It can also skip/mute YouTube ads.
|
|||||||
- [ssdp](https://github.com/codingjoe/ssdp) Used for auto discovery
|
- [ssdp](https://github.com/codingjoe/ssdp) Used for auto discovery
|
||||||
|
|
||||||
## Projects using this project
|
## Projects using this project
|
||||||
|
|
||||||
- [Home Assistant Addon](https://github.com/bertybuttface/addons/tree/main/isponsorblocktv)
|
- [Home Assistant Addon](https://github.com/bertybuttface/addons/tree/main/isponsorblocktv)
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
1. Fork it (<https://github.com/dmunozv04/iSponsorBlockTV/fork>)
|
1. Fork it (<https://github.com/dmunozv04/iSponsorBlockTV/fork>)
|
||||||
2. Create your feature branch (`git checkout -b my-new-feature`)
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
||||||
3. Commit your changes (`git commit -am 'Add some feature'`)
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
||||||
@@ -59,8 +66,11 @@ It can also skip/mute YouTube ads.
|
|||||||
5. Create a new Pull Request
|
5. Create a new Pull Request
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
- [dmunozv04](https://github.com/dmunozv04) - creator and maintainer
|
- [dmunozv04](https://github.com/dmunozv04) - creator and maintainer
|
||||||
- [HaltCatchFire](https://github.com/HaltCatchFire) - updated dependencies and improved skip logic
|
- [HaltCatchFire](https://github.com/HaltCatchFire) - updated dependencies and improved skip logic
|
||||||
- [Oxixes](https://github.com/oxixes) - added support for channel whitelist and minor improvements
|
- [Oxixes](https://github.com/oxixes) - added support for channel whitelist and minor improvements
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
[](https://www.gnu.org/licenses/gpl-3.0.en.html)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class DeviceListener:
|
|||||||
logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
||||||
)
|
)
|
||||||
self.logger.addHandler(sh)
|
self.logger.addHandler(sh)
|
||||||
self.logger.info(f"Starting device")
|
self.logger.info("Starting device")
|
||||||
self.lounge_controller = ytlounge.YtLoungeApi(
|
self.lounge_controller = ytlounge.YtLoungeApi(
|
||||||
device.screen_id, config, api_helper, self.logger, self.web_session
|
device.screen_id, config, api_helper, self.logger, self.web_session
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -328,9 +328,9 @@ class AddDevice(ModalWithClickExit):
|
|||||||
|
|
||||||
@on(Input.Changed, "#pairing-code-input")
|
@on(Input.Changed, "#pairing-code-input")
|
||||||
def changed_pairing_code(self, event: Input.Changed):
|
def changed_pairing_code(self, event: Input.Changed):
|
||||||
self.query_one("#add-device-pin-add-button").disabled = (
|
self.query_one(
|
||||||
not event.validation_result.is_valid
|
"#add-device-pin-add-button"
|
||||||
)
|
).disabled = not event.validation_result.is_valid
|
||||||
|
|
||||||
@on(Input.Submitted, "#pairing-code-input")
|
@on(Input.Submitted, "#pairing-code-input")
|
||||||
@on(Button.Pressed, "#add-device-pin-add-button")
|
@on(Button.Pressed, "#add-device-pin-add-button")
|
||||||
@@ -377,9 +377,9 @@ class AddDevice(ModalWithClickExit):
|
|||||||
|
|
||||||
@on(SelectionList.SelectedChanged, "#dial-devices-list")
|
@on(SelectionList.SelectedChanged, "#dial-devices-list")
|
||||||
def changed_device_list(self, event: SelectionList.SelectedChanged):
|
def changed_device_list(self, event: SelectionList.SelectedChanged):
|
||||||
self.query_one("#add-device-dial-add-button").disabled = (
|
self.query_one(
|
||||||
not event.selection_list.selected
|
"#add-device-dial-add-button"
|
||||||
)
|
).disabled = not event.selection_list.selected
|
||||||
|
|
||||||
|
|
||||||
class AddChannel(ModalWithClickExit):
|
class AddChannel(ModalWithClickExit):
|
||||||
|
|||||||
Reference in New Issue
Block a user