Skip to content

Commit

Permalink
xbox-cloud: test config
Browse files Browse the repository at this point in the history
  • Loading branch information
foxlet committed Mar 17, 2022
1 parent 0865443 commit 15c5b05
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules/
dist/
package-lock.json
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
<h1 align="center">Youtube TV</h1>

<p align="center">
An electron wrapper for Youtube TV with Chromecast support.
</p>

----
<p align="center">
<img width="650" align="center" src="https://github.com/KeizerDev/youtube-tv/blob/master/youtube-tv.png">
</p>

## Install
Xbox Cloud Gaming (deck-omelet)
===============================
An Electron wrapper for the Xbox Cloud Gaming service.

To build
--------
```bash
npm install
./node_modules/.bin/electron-builder
```
$ npm install
# Make sure you've electron installed globally ((sudo) npm install electron-prebuilt -g)
$ electron index.js
```

9 changes: 3 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ let win;

function createWindow() {
// Create the browser window.
win = new BrowserWindow({width: 800, height: 600, titleBarStyle: 'hidden'});
win = new BrowserWindow({width: 1280, height: 720, titleBarStyle: 'hidden', backgroundColor: '#1a1b1e'});

// and load the index.html of the app.
win.loadURL('https://www.youtube.com/tv',{userAgent: 'Mozilla/5.0 (SMART-TV; Linux; Tizen 5.0) AppleWebKit/538.1 (KHTML, like Gecko) Version/5.0 NativeTVAds Safari/538.1'});

// Open the DevTools.
// win.webContents.openDevTools();
win.setMenu(null);
win.loadURL('https://www.xbox.com/en-US/play',{userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36'});

// Emitted when the window is closed.
win.on('closed', () => {
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"name": "youtube-tv",
"name": "xbox-cloud",
"version": "0.1.0",
"description": "Play games from the Xbox Cloud library",
"author": "Foxlet",
"main": "index.js",
"dependencies": {
"electron-cookies": "^1.1.0"
},
"devDependencies": {
"electron": "^17.1.2",
"electron-builder": "^22.14.13"
},
"build": {
"appId": "co.furcode.xbox-cloud",
"productName": "Xbox Cloud Gaming",
"linux": {
"category": "Game"
}
}
}
Binary file removed youtube-tv.png
Binary file not shown.

0 comments on commit 15c5b05

Please sign in to comment.