Skip to content

Added Button and functionality to play next episode #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Main/Crunchyroll/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 19 additions & 16 deletions Main/Crunchyroll/layout.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<layout onLaunch="launch" onVolumeUp="volume_up" onVolumeDown="volume_down" color="FF6600">
<grid>
<row>
<button icon="vdown" onTap="volume_down" />
<button icon="vup" onTap="volume_up" />
</row>
<row>
<button icon="rwd" onTap="left" />
<button icon="ff" onTap="right" />
</row>
<row>
<button icon="fullscreen" onTap="fullscreen" />
<button icon="playpause" onTap="play_pause" />
</row>
</grid>
<?xml version="1.0" encoding="utf-8"?>
<layout onLaunch="launch" onVolumeUp="volume_up" onVolumeDown="volume_down" color="FF6600">
<grid>
<row>
<button icon="vdown" onTap="volume_down" />
<button icon="vup" onTap="volume_up" />
</row>
<row>
<button icon="rwd" onTap="left" />
<button icon="ff" onTap="right" />
</row>
<row>
<button icon="fullscreen" onTap="fullscreen" />
<button icon="playpause" onTap="play_pause" />
</row>
<row>
<button icon="next" onTap="next" />
</row>
</grid>
</layout>
8 changes: 4 additions & 4 deletions Main/Crunchyroll/meta.prop
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
meta.name: Crunchyroll (Web)
meta.author: Michael Moser Mucelin
meta.description: Remote for Crunchyroll Website
meta.tags.category: media
meta.name: Crunchyroll (Web)
meta.author: Michael Moser Mucelin
meta.description: Remote for Crunchyroll Website
meta.tags.category: media
88 changes: 46 additions & 42 deletions Main/Crunchyroll/remote.lua
Original file line number Diff line number Diff line change
@@ -1,42 +1,46 @@
local keyboard = libs.keyboard;

--@help Launch Crunchroll
actions.launch = function()
os.open("http://www.crunchyroll.com");
end

--@help Lower volume
actions.volume_down = function()
keyboard.stroke("volumedown");
end

--@help Raise volume
actions.volume_up = function()
keyboard.stroke("volumeup");
end

--@help Mute volume
actions.volume_mute = function()
keyboard.stroke("M");
end

--@help Forward 10 seconds
actions.right = function()
keyboard.stroke("right");
end

--@help Toggle play pause state
actions.play_pause = function()
keyboard.stroke("space");
end

--@help Rewind 10 seconds
actions.left = function()
keyboard.stroke("left");
end

--@help Toggle fullscreen
actions.fullscreen = function()
keyboard.stroke("F");
end

local keyboard = libs.keyboard;

--@help Launch Crunchroll
actions.launch = function()
os.open("http://www.crunchyroll.com");
end

--@help Lower volume
actions.volume_down = function()
keyboard.stroke("volumedown");
end

--@help Raise volume
actions.volume_up = function()
keyboard.stroke("volumeup");
end

--@help Mute volume
actions.volume_mute = function()
keyboard.stroke("M");
end

--@help Forward 10 seconds
actions.right = function()
keyboard.stroke("right");
end

--@help Toggle play pause state
actions.play_pause = function()
keyboard.stroke("space");
end

--@help Rewind 10 seconds
actions.left = function()
keyboard.stroke("left");
end

--@help Toggle fullscreen
actions.fullscreen = function()
keyboard.stroke("F");
end
--@help Next Episode
actions.next = function()
keyboard.stroke("Lshift", "n");
end