Skip to content

Commit

Permalink
Merge pull request #294 from ajayyy/experimental
Browse files Browse the repository at this point in the history
Another potential fix for zero second sponsor freezing
  • Loading branch information
ajayyy authored Mar 9, 2020
2 parents b4be513 + f63abb0 commit e77425c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 5 deletions.
52 changes: 49 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,56 @@ jobs:
runs-on: ubuntu-latest

steps:
# Build Artifacts
# Initialization
- uses: actions/checkout@v1
- name: Build Artifacts
uses: ./.github/workflows/ci.yml
- uses: actions/setup-node@v1
- run: npm install
- name: Copy configuration
run: cp config.json.example config.json

# Create Chrome artifacts
- name: Create Chrome artifacts
run: npm run build:chrome
- uses: actions/upload-artifact@v1
with:
name: ChromeExtension
path: dist
- run: mkdir ./builds
- uses: montudor/[email protected]
with:
args: zip -qq -r ./builds/ChromeExtension.zip ./dist

# Create Firefox artifacts
- name: Create Firefox artifacts
run: npm run build:firefox
- uses: actions/upload-artifact@v1
with:
name: FirefoxExtension
path: dist
- uses: montudor/[email protected]
with:
args: zip -qq -r ./builds/FirefoxExtension.zip ./dist

# Create Beta artifacts (Builds with the name changed to beta)
- name: Create Chrome Beta artifacts
run: npm run build:chrome -- --env.stream=beta
- uses: actions/upload-artifact@v1
with:
name: ChromeExtensionBeta
path: dist
- uses: montudor/[email protected]
with:
args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist

- name: Create Firefox Beta artifacts
run: npm run build:firefox -- --env.stream=beta
- uses: actions/upload-artifact@v1
with:
name: FirefoxExtensionBeta
path: dist
- uses: montudor/[email protected]
with:
args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist

# Upload each release asset
- name: Upload to release
Expand Down
2 changes: 1 addition & 1 deletion manifest/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "__MSG_Name__",
"version": "1.2.18",
"version": "1.2.19",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [{
Expand Down
2 changes: 1 addition & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ function startSponsorSchedule(currentTime?: number): void {
skipToTime(video, skipInfo.index, skipInfo.array, skipInfo.openNotice);
}

startSponsorSchedule();
startSponsorSchedule(skipTime[1]);
};

if (timeUntilSponsor <= 0) {
Expand Down

0 comments on commit e77425c

Please sign in to comment.