Compare commits

..

1 Commits

Author SHA1 Message Date
dmunozv04
f9db9a4edd Attempt to fix live side-by-side-ads not unmuting 2025-10-26 20:53:23 +01:00
5 changed files with 17 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ jobs:
steps:
# Get the repository's code
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v5
# Generate docker tags
- name: Docker meta

View File

@@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v5
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v6
@@ -46,7 +46,7 @@ jobs:
run: python -m hatch build
- name: Upload artifact
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v4
with:
name: sdist-and-wheel
path: dist/*
@@ -104,7 +104,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v5
- name: Clone PyApp
run: git clone --depth 1 --branch $PYAPP_VERSION https://github.com/ofek/pyapp $PYAPP_REPO
@@ -141,7 +141,7 @@ jobs:
hatch --version
- name: Get artifact
uses: actions/download-artifact@v6
uses: actions/download-artifact@v5
with:
name: sdist-and-wheel
path: ${{ github.workspace }}/dist
@@ -165,7 +165,7 @@ jobs:
continue-on-error: true # Continue if attestation fails (it will fail on forks)
- name: Upload built binary package
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v4
with:
name: binaries-${{ matrix.job.release_suffix }}
path: dist/binary/*
@@ -181,7 +181,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get artifact
uses: actions/download-artifact@v6
uses: actions/download-artifact@v5
with:
name: sdist-and-wheel
path: dist
@@ -200,7 +200,7 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v6
- uses: actions/download-artifact@v5
name: Get artifact
with:
path: dist

View File

@@ -18,7 +18,7 @@ jobs:
steps:
# Get the repository's code
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v5
# Update description
- name: Update repo description

View File

@@ -38,11 +38,6 @@ Open an issue/pull request if you have tested a device that isn't listed here.
*Ad muting won't work when using AirPlay to send the audio to another speaker.
** Shorts aren't fully supported due to limitations on YouTube's side.
A single short can be seen by either selecting the "Disconnect" option in the
warning shown
or by long pressing the thumbnail to open the menu and clicking play from there
## Usage
Run iSponsorBlockTV on a computer that has network access. It doesn't need to

View File

@@ -133,6 +133,14 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
self.logger.info("Ad can be skipped, skipping")
create_task(self.skip_ad())
create_task(self.mute(False, override=True))
elif data["adState"] == "1082": # Livestream side-by-side-ad finished
#TODO: Remove this when confirmed working
self.logger.debug(
"Suspected side-by-side ad end detected"
"on livestream, unmuting. (adState=1082)"
)
self.logger.info("Ad has ended, unmuting")
create_task(self.mute(False, override=True))
elif self.mute_ads: # Seen multiple other adStates, assuming they are all ads
self.logger.info("Ad has started, muting")
create_task(self.mute(True, override=True))