-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
title: Moonlight | ||
iconUri: https://raw.githubusercontent.com/mariotaku/moonlight-tv/main/deploy/webos/icon_large.png | ||
detailIconUri: https://raw.githubusercontent.com/mariotaku/moonlight-tv/main/res/moonlight_320.png | ||
manifestUrl: https://github.com/mariotaku/moonlight-tv/releases/latest/download/com.limelight.webos.manifest.json | ||
category: games | ||
description: | | ||
Moonlight TV is a community version of [Moonlight GameStream Client](https://moonlight-stream.org/), made for large | ||
screens. | ||
![Download Stats](https://img.shields.io/github/downloads/mariotaku/moonlight-tv/total) | ||
![GitHub Stars](https://img.shields.io/github/stars/mariotaku/moonlight-tv?style=social) | ||
## Features | ||
* High performance streaming for webOS | ||
* UI optimized for large screen and remote controller | ||
* Supports up to 4 controllers | ||
* Easy to port to other OSes (Now runs on macOS, Arch, Debian, Raspbian and Windows) | ||
## Screenshots | ||
![Launcher](https://user-images.githubusercontent.com/830358/141690137-529d3b94-b56a-4f24-a3c5-00a56eb30952.png) | ||
![Settings](https://user-images.githubusercontent.com/830358/147389849-6907f614-dbd4-4c24-987e-1a214a9680d0.png) | ||
![In-game Overlay](https://user-images.githubusercontent.com/830358/141690146-27ee2564-0cc8-43ef-a5b0-54b8487dda1e.png) | ||
_Screenshot performed on TV has lower picture quality. Actual picture quality is better._ | ||
## [Documentations](https://github.com/mariotaku/moonlight-tv/wiki) | ||
funding: | ||
github: [mariotaku] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from urllib.parse import urlsplit, SplitResult, urlunsplit | ||
|
||
from more_itertools import flatten | ||
|
||
|
||
def parse_links(funding: dict): | ||
if not funding: | ||
return None | ||
|
||
def parse_element(platform: str, element: str): | ||
if platform == 'github': | ||
return {'href': f'https://github.com/sponsors/{element}', 'text': f'{element} on Github'} | ||
elif platform == 'patreon': | ||
return {'href': f'https://www.patreon.com/{element}', 'text': f'{element} on Patreon'} | ||
elif platform == 'ko_fi': | ||
return {'href': f'https://ko-fi.com/{element}', 'text': f'{element} on Ko-fi'} | ||
elif platform == 'custom': | ||
comps = urlsplit(element) | ||
if not comps.scheme: | ||
netloc, path = (comps.path.split('/', 1) + [''])[:2] | ||
comps = SplitResult(scheme='https', netloc=netloc, path=path, query=comps.query, | ||
fragment=comps.fragment) | ||
return {'href': urlunsplit(comps), 'text': f'{comps.netloc}/{comps.path}'.rstrip('/')} | ||
else: | ||
return None | ||
|
||
def parse_item(platform, value): | ||
if value is str: | ||
return [parse_element(platform, value)] | ||
return map(lambda e: parse_element(platform, e), value) | ||
|
||
return list(filter(lambda x: x, flatten(map(lambda item: parse_item(item[0], item[1]), funding.items())))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters