Skip to content

Commit

Permalink
Merge pull request #4 from Haroon01/issue-2-support-high-resolutions
Browse files Browse the repository at this point in the history
Fix: Issue #2 - Add support for higher resolutions.
  • Loading branch information
Haroon01 authored Jul 30, 2024
2 parents 85d122b + 37bfb81 commit e9200b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ function createWindow() {
win.setMenu(null);

win.loadURL('https://youtube.com/tv', {
// PS5 user agent for the TV interface.
userAgent: 'Mozilla/5.0 (PlayStation; PlayStation 5/6.02) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15'
userAgent: 'Mozilla/5.0 (PS4; Leanback Shell) Gecko/20100101 Firefox/65.0 LeanbackShell/01.00.01.75 Sony PS4/ (PS4, , no, CH)'
});

// setting zoom 50% to enable higher resolutions. has no effect on the applications UI.
win.webContents.on('did-finish-load', () => {
win.webContents.setZoomFactor(0.5);
});
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "youtube-tv-client",
"version": "1.0.0",
"version": "1.0.1",
"description": "YouTube client that uses the TV interface",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit e9200b4

Please sign in to comment.