Skip to content

Commit

Permalink
Merge pull request #33 from webosbrew/main
Browse files Browse the repository at this point in the history
possibility to choose which codec and bitrate to use
  • Loading branch information
FriedChickenButt authored Jun 1, 2024
2 parents 89c7789 + 0bfd7a1 commit 2b2dba4
Show file tree
Hide file tree
Showing 47 changed files with 13,802 additions and 8,173 deletions.
8 changes: 8 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# WAM uses WebKit on webOS 1 and 2
chrome 38 # webOS 3.x
chrome 53 # webOS 4.x
chrome 68 # webOS 5
chrome 79 # webOS 6
chrome 87 # webOS 7 (22)
chrome 94 # webOS 8 (23)
chrome 108 # webOS 9 (24)
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
insert_final_newline = true
23 changes: 23 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
* text=auto

*.css text
*.html text
*.js text
*.json text
*.md text
*.mjs text
*.svg text
*.yml text

.browserslistrc text
.editorconfig text
.eslintignore text
.gitattributes text
.gitignore text
.prettierignore text
LICENSE text

*.sh text eol=lf

*.jpg binary
*.png binary
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [informatic, throwaway96]
ko_fi: throwaway96
81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
name: Bug report
about: Report a bug/issue
title: 'Bug: <title>'
labels: bug, needs triage
---

<!--
WARNING: Please read this carefully to avoid submitting useless bug reports that will be ignored.
If you do not include at least the YTAF version and enough information to determine your webOS version, your issue may be closed without a response.
Check existing issues to see if there is already one covering your problem.
The more information you include, the better.
However, you must include *at least* the YTAF (YouTube Ad-Free) version and:
- webOS version, or
- firmware version (sometimes referred to as "software version" on TV) *and* either OTAID (preferred) or SoC
-->

## YTAF information

<!--
Example:
- YTAF version: 0.3.3
-->

- YTAF version:

## TV information

<!--
Example:
- webOS version: 6.3.2
- Firmware version: 03.34.65
- OTAID: HE_DTV_W21P_AFADATAA
- SoC: k7lp
- Model: 50UP7670PUC
-->

- webOS version:
- Firmware version:
- OTAID:
- SoC:
- Model:

<!--
This information can all be found in /var/run/nyx/device_info.json and /var/run/nyx/os_info.json.
In `device_info.json`:
* SoC: `device_name`
* OTAID: `hardware_id`
* model: `product_id`
In `os_info.json`:
* webOS version: `core_os_release`
* firmware version: `webos_manufacturing_version`
If you do not have access to those files, the webOS version can always be found somewhere in the settings menu.
-->

## Issue description

<!--
Describe the bug/issue and how to reproduce it. Provide as much information as possible. For example, include screenshots or links to videos that trigger the problem.
Please also check whether you are able to open the YTAF options panel using the green button and include that information here.
-->
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build & Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm

- run: npm ci
- run: npm run build
- run: npm run package

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: youtube_adfree_ipk
path: |
${{github.workspace}}/youtube.leanback.v4_*_all.ipk
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build & Release

on:
push:
branches:
- '!*'
tags:
- 'v*.*'

jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm

- run: npm ci
- run: npm run build
- run: npm run package
- run: npm run manifest

- name: Create release
uses: ncipollo/release-action@v1
with:
name: 'Release ${{ github.ref }}'
prerelease: true
draft: false
allowUpdates: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitPrereleaseDuringUpdate: true
artifacts: '*.ipk,*.manifest.json'
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.ipk
node_modules
dist
/node_modules/
/dist/
.DS_Store
/.vscode/
1 change: 1 addition & 0 deletions .husky/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit text eol=lf
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
*-polyfill.*
16 changes: 16 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @type {import('prettier').Config} */
const config = {
trailingComma: 'none',
singleQuote: true,
endOfLine: 'auto',
overrides: [
{
files: ['tsconfig.json', 'jsconfig.json', 'tsconfig.*.json'],
options: {
parser: 'jsonc'
}
}
]
};

export default config;
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"javascript.preferences.quoteStyle": "single",
"prettier.requireConfig": true,
"prettier.useEditorConfig": true,
"editor.formatOnSave": true,
"prettier.ignorePath": ".prettierignore",
"typescript.tsdk": "node_modules\\typescript\\lib"
}
138 changes: 138 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.3.4] - 2024/04/23

### Added

- [#164](https://github.com/webosbrew/youtube-webos/pull/164): Added an issue template for bugs (@throwaway96)

### Changed

- [#146](https://github.com/webosbrew/youtube-webos/pull/146): Updated a bunch of dev stuff (@fire332)
- [#150](https://github.com/webosbrew/youtube-webos/pull/150): Added myself to FUNDING.yml (@throwaway96)

## [0.3.3] - 2024/03/31

### Added

- [#142](https://github.com/webosbrew/youtube-webos/pull/141): Blocked some additional ads (@throwaway96)
- [#144](https://github.com/webosbrew/youtube-webos/pull/144): Added support for config change listeners (@throwaway96)
- [#149](https://github.com/webosbrew/youtube-webos/pull/149): Added ability to hide YouTube logo (@throwaway96; thanks to @fire332 and @tomikaka22)

### Fixed

- [#103](https://github.com/webosbrew/youtube-webos/pull/103): Fixed SponsorBlock on videos with chapters (@alyyousuf7)
- [#131](https://github.com/webosbrew/youtube-webos/pull/131): Fixed minor README issue (@ANewDawn)
- [#141](https://github.com/webosbrew/youtube-webos/pull/141): Fixed black background behind video menu (@throwaway96; thanks to @reisxd)
- [#143](https://github.com/webosbrew/youtube-webos/pull/143): Fixed duplicate click bug (@throwaway96)

### Changed

- [#128](https://github.com/webosbrew/youtube-webos/pull/128): Updated workflows and dependencies (@throwaway96)
- [#133](https://github.com/webosbrew/youtube-webos/pull/133): Changed various dev stuff (@throwaway96)
- [#134](https://github.com/webosbrew/youtube-webos/pull/134): Refactored config/UI code (@throwaway96)
- [#138](https://github.com/webosbrew/youtube-webos/pull/138): Changed webpack to production mode by default (@throwaway96)
- [#145](https://github.com/webosbrew/youtube-webos/pull/145): Made observing attributes optional in waitForChildAdd() (@throwaway96)

## [0.3.2] - 2024/03/07

### Added

- [#100](https://github.com/webosbrew/youtube-webos/pull/100): Blocked "Sponsored" tiles (@alyyousuf7)

### Fixed

- [#95](https://github.com/webosbrew/youtube-webos/pull/95): Fixed the appearance of YouTube in the app (@0xBADEAFFE)
- [#96](https://github.com/webosbrew/youtube-webos/pull/96): Fixed launch functionality broken by #95 (@fire332)
- [#102](https://github.com/webosbrew/youtube-webos/pull/102): Fixed minor dev-related stuff (@alyyousuf7)
- [#106](https://github.com/webosbrew/youtube-webos/pull/106), [#120](https://github.com/webosbrew/youtube-webos/pull/120): Updated outdated documentation (@throwaway96)

## [0.3.1] - 2022/01/27

### Fixed

- [#24](https://github.com/webosbrew/youtube-webos/pull/24): Fixed playback time
tracking again

## [0.3.0] - 2022/01/15

### Fixed

- [#14](https://github.com/webosbrew/youtube-webos/pull/14): Fixed voice search
on certain TV models
- [#21](https://github.com/webosbrew/youtube-webos/pull/21): Fixed screensaver
kicking in during non-16:9 videos playback

### Changed

- [#19](https://github.com/webosbrew/youtube-webos/pull/19): Updated internal
dependencies, cleaned up build setup

## [0.2.1] - 2021/12/26

## Fixed

- Fixed rendering on 720p TVs
- Disabled update prompt on startup

## [0.2.0] - 2021/12/23

### Added

- Added support for autostart (requires manual setup, see
[README](README.md#autostart))

### Fixed

- Fixed deeplinking from voice search results
- Fixed in-app voice search button on webOS 5.x
- Fixed screensaver kicking in on sponsor segment skips
- Fixed playback time tracking

## [0.1.1] - 2021/11/21

### Fixed

- Use alternative SponsorBlock API URL to work around untrusted Let's Encrypt
certificates
- Increase initial notification delay

## [0.1.0] - 2021/11/14

### Added

- [#10](https://github.com/FriedChickenButt/youtube-webos/issues/1): Added SponsorBlock integration
- Added configuration UI activated by pressing green button

## [0.0.2]

### Added

- [#2](https://github.com/FriedChickenButt/youtube-webos/issues/2): Added DIAL startup support.
- [#3](https://github.com/FriedChickenButt/youtube-webos/issues/3): Added webOS 3.x support.
- Enabled quick start.
- Disabled default splash screen

### Fixed

- Disabled back button behaviour to open the Home deck.

## [0.0.1]

### Added

- Created basic web app which launches YouTube TV.

[Unreleased]: https://github.com/webosbrew/youtube-webos/compare/v0.3.1...HEAD
[0.3.1]: https://github.com/webosbrew/youtube-webos/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/webosbrew/youtube-webos/compare/v0.2.1...v0.3.0
[0.2.1]: https://github.com/webosbrew/youtube-webos/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/webosbrew/youtube-webos/compare/v0.1.1...v0.2.0
[0.1.1]: https://github.com/webosbrew/youtube-webos/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/webosbrew/youtube-webos/compare/0.0.2...v0.1.0
[0.0.2]: https://github.com/webosbrew/youtube-webos/compare/0.0.1...0.0.2
[0.0.1]: https://github.com/webosbrew/youtube-webos/releases/tag/0.0.1
Loading

0 comments on commit 2b2dba4

Please sign in to comment.