Add copyright info
Signed-off-by: Tod Fitch <tod@fitchfamily.org>
This commit is contained in:
parent
3191b35069
commit
7b1c532cd5
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
logo.svg*
|
||||
.DS_Store
|
||||
out/*
|
||||
|
|
9
LICENSES/MIT.txt
Normal file
9
LICENSES/MIT.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
5
Makefile
5
Makefile
|
@ -1,3 +1,6 @@
|
|||
# SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#########################################################################
|
||||
# Makefile Usage:
|
||||
|
@ -16,7 +19,7 @@ VERSION = 0.0.1
|
|||
ROKU_TEST_ID = 1
|
||||
ROKU_TEST_WAIT_DURATION = 5
|
||||
|
||||
ZIP_EXCLUDE= -x rooibos/**\* -x xml/* -x artwork/* -x \*.pkg -x storeassets\* -x keys\* -x \*/.\* -x *.git* -x *.DS* -x *.pkg* -x dist/**\* -x out/**\*
|
||||
ZIP_EXCLUDE= -x rooibos/**\* -x xml/* -x artwork/* -x \*.pkg -x storeassets\* -x keys\* -x \*/.\* -x *.git* -x *.DS* -x *.license -x *.pkg* -x dist/**\* -x out/**\*
|
||||
|
||||
include app.mk
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
# PeerVue - A PeerTube channel for Roku
|
||||
|
||||
**This app is not complete!**
|
||||
|
|
41
app.mk
41
app.mk
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#########################################################################
|
||||
# common include file for application Makefiles
|
||||
#
|
||||
|
@ -175,43 +179,6 @@ remove:
|
|||
curl -s -S -F "mysubmit=Delete" -F "archive=" -F "passwd=" http://$(ROKU_DEV_TARGET)/plugin_install | grep "<font color" | sed "s/<font color=\"red\">//" | sed "s[</font>[[" ; \
|
||||
fi
|
||||
|
||||
get_images:
|
||||
@if [ ! -d $(OUTPUT_DIR) ]; \
|
||||
then \
|
||||
mkdir -p $(OUTPUT_DIR); \
|
||||
echo "Creating images folder"; \
|
||||
fi
|
||||
|
||||
echo "Downloading SVG source files from $(BRANDING_ROOT)"
|
||||
rm -f $(BANNER_SOURCE)* $(ICON_SOURCE)*
|
||||
@wget -O $(ICON_SOURCE) $(BRANDING_ROOT)/$(ICON_SOURCE) > /dev/null
|
||||
@if [ "$(BANNER_SOURCE)" != "$(ICON_SOURCE)" ]; then \
|
||||
@wget -O $(BANNER_SOURCE) $(BRANDING_ROOT)/$(BANNER_SOURCE) > /dev/null; \
|
||||
fi
|
||||
echo "Finished downloading SVG files"
|
||||
|
||||
echo "Creating image files"
|
||||
@convert -background none -gravity west -density 1200 -scale 300x300 -extent 1080x300 $(BANNER_SOURCE) $(OUTPUT_DIR)/splash_image.png
|
||||
#@convert -pointsize 90 -font "CalibriB" -fill white -draw "text 350,150 'PeerVue' " $(OUTPUT_DIR)/splash_image.png $(OUTPUT_DIR)/test.png
|
||||
rm $(OUTPUT_DIR)/splash_image.png
|
||||
|
||||
@convert -background "#000b25" -gravity center -density 1200 -resize 380x380 -extent 540x405 $(BANNER_SOURCE) $(OUTPUT_DIR)/channel-poster_fhd.png
|
||||
@convert -background "#000b25" -gravity center -density 1200 -resize 200x200 -extent 336x210 $(BANNER_SOURCE) $(OUTPUT_DIR)/channel-poster_hd.png
|
||||
@convert -background "#000b25" -gravity center -density 1200 -resize 130x130 -extent 246x140 $(BANNER_SOURCE) $(OUTPUT_DIR)/channel-poster_sd.png
|
||||
|
||||
@convert -background none -gravity west -density 1200 -scale 48x48 -extent 200x48 $(BANNER_SOURCE) $(OUTPUT_DIR)/logo_image.png
|
||||
@convert -pointsize 30 -font "CalibriB" -fill white -draw "text 50,33 'PeerVue' " $(OUTPUT_DIR)/logo_image.png $(OUTPUT_DIR)/logo.png
|
||||
rm $(OUTPUT_DIR)/logo_image.png
|
||||
|
||||
@convert -background none -gravity west -density 1200 -scale 300x300 -extent 1080x300 $(BANNER_SOURCE) $(OUTPUT_DIR)/splash1.png
|
||||
@convert -pointsize 90 -font "CalibriB" -fill white -draw "text 350,175 'PeerVue' " $(OUTPUT_DIR)/splash1.png $(OUTPUT_DIR)/splash2.png
|
||||
@convert -background "#000b25" -gravity center -extent 1920x1080 $(OUTPUT_DIR)/splash2.png $(OUTPUT_DIR)/splash-screen_fhd.jpg
|
||||
rm $(OUTPUT_DIR)/splash1.png $(OUTPUT_DIR)/splash2.png
|
||||
@convert $(OUTPUT_DIR)/splash-screen_fhd.jpg -resize 1280x720 $(OUTPUT_DIR)/splash-screen_hd.jpg
|
||||
@convert $(OUTPUT_DIR)/splash-screen_fhd.jpg -resize 720x480 $(OUTPUT_DIR)/splash-screen_sd.jpg
|
||||
|
||||
echo "Finished creating image files"
|
||||
|
||||
screenshot:
|
||||
SCREENSHOT_TIME=`date "+%s"`; \
|
||||
curl -m 1 -o screenshot.jpg --user $(USERPASS) --digest "http://$(ROKU_DEV_TARGET)/pkgs/dev.jpg?time=$$SCREENSHOT_TIME" -H 'Accept: image/png,image/*;q=0.8,*/*;q=0.5' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate'
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
'
|
||||
' Our content screen (and thus things shown in our details and
|
||||
' video player) can be from either our configuration specified set
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name="home_scene" extends="Scene">
|
||||
<interface>
|
||||
<field id="rowContent" type="node" alias="content_screen.content" onChange="OnChangeContent" />
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
sub init()
|
||||
m.top.id = "MyOverhang"
|
||||
end sub
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name="MyOverhang" extends="Overhang">
|
||||
<script type="text/brightscript" uri="pkg:/components/screens/MyOverhang/MyOverhang.brs" />
|
||||
</component>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
'
|
||||
' Display title, release date and short description of focused
|
||||
' item in row list
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<!--
|
||||
A part of the content screen, shows a summary of the currently
|
||||
focused content row list item
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
'
|
||||
' Our poster is the background of the content screen.
|
||||
' If a new poster image is given (executing OnBackgroundUrlChange)
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<!-- Description
|
||||
Background for all nodes. It is a poster that gets picture Url
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
sub init()
|
||||
m.rowList = m.top.FindNode("rowList")
|
||||
m.top.observeField("visible", "onVisibleChange")
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
<component name="content_screen" extends="Group" initialFocus="rowList" >
|
||||
<script type="text/brightscript" uri="pkg:/components/screens/content_screen/content_screen.brs" />
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
sub init()
|
||||
m.title = m.top.FindNode("title")
|
||||
m.description = m.top.FindNode("description")
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name="details_screen" extends="Group">
|
||||
<interface>
|
||||
<!-- Content fields -->
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
function init()
|
||||
m.category_list=m.top.findNode("category_list")
|
||||
m.top.observeField("visible", "onVisibleChange")
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name="sidebar" extends="Group" >
|
||||
<script type="text/brightscript" uri="pkg:/components/screens/sidebar/sidebar.brs" />
|
||||
<interface>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
function init()
|
||||
m.clear_button = m.top.FindNode("clear_button")
|
||||
m.enter_button = m.top.FindNode("enter_button")
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name="text_entry" extends="Group" >
|
||||
|
||||
<interface>
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
sub init()
|
||||
m.top.functionname = "load"
|
||||
end sub
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<component name = "load_config_task" extends = "task" >
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name = "load_config_task" extends = "task" >
|
||||
<interface>
|
||||
<!-- input fields -->
|
||||
|
||||
|
@ -8,8 +14,10 @@
|
|||
<field id = "error" type = "string" />
|
||||
<field id = "videos" type = "assocarray" />
|
||||
</interface>
|
||||
|
||||
<script type="text/brightscript" uri="pkg:/components/tasks/load_config_task/load_config_task.brs"/>
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||
<script type="text/brightscript" uri="pkg:/source/utils/locale.brs" />
|
||||
|
||||
</component>
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
sub init()
|
||||
m.top.functionname = "request"
|
||||
m.top.response = ""
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
-->
|
||||
|
||||
<component name = "load_url_task" extends = "task" >
|
||||
<interface>
|
||||
<field id = "url" type = "string" />
|
||||
<field id = "response" type = "string" />
|
||||
<field id = "error" type = "string" />
|
||||
</interface>
|
||||
<script type="text/brightscript" uri="pkg:/components/tasks/load_url_task/load_url_task.brs"/>
|
||||
<interface>
|
||||
<field id = "url" type = "string" />
|
||||
<field id = "response" type = "string" />
|
||||
<field id = "error" type = "string" />
|
||||
</interface>
|
||||
|
||||
<script type="text/brightscript" uri="pkg:/components/tasks/load_url_task/load_url_task.brs"/>
|
||||
|
||||
</component>
|
||||
|
||||
|
|
3
images/channel-poster_fhd.png.license
Normal file
3
images/channel-poster_fhd.png.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
images/channel-poster_hd.png.license
Normal file
3
images/channel-poster_hd.png.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
images/channel-poster_sd.png.license
Normal file
3
images/channel-poster_sd.png.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
images/logo.png.license
Normal file
3
images/logo.png.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
images/splash-screen_fhd.jpg.license
Normal file
3
images/splash-screen_fhd.jpg.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
images/splash-screen_hd.jpg.license
Normal file
3
images/splash-screen_hd.jpg.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
images/splash-screen_sd.jpg.license
Normal file
3
images/splash-screen_sd.jpg.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
locale/default/strings.json.license
Normal file
3
locale/default/strings.json.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
locale/en_US/strings.json.license
Normal file
3
locale/en_US/strings.json.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
3
locale/fr_CA/strings.json.license
Normal file
3
locale/fr_CA/strings.json.license
Normal file
|
@ -0,0 +1,3 @@
|
|||
SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
4
manifest
4
manifest
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
## Channel Details
|
||||
title=PeerVue Alpha
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
sub main()
|
||||
screen = createObject("roSGScreen")
|
||||
scene = screen.createScene("home_scene")
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
' "Registry" is where Roku stores config
|
||||
|
||||
' Generic registry accessors
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
' SPDX-FileCopyrightText: 2020 Tod Fitch <tod@fitchfamily.org>
|
||||
'
|
||||
' SPDX-License-Identifier: MIT
|
||||
|
||||
' Look up international locale version of string
|
||||
|
||||
function get_locale_string(key, dictionary)
|
||||
|
|
Loading…
Reference in New Issue
Block a user