Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
825 commits
Select commit Hold shift + click to select a range
838d7db
modified: plugins/youtube.zip
Jan 2, 2015
b40c55e
modified: plugins/youtube.zip
Jan 3, 2015
071a175
modified: plugins/youtube.zip
Jan 5, 2015
02b00ec
modified: plugins/youtube.zip
Jan 5, 2015
3dd4f92
modified: di/di.js
Jan 5, 2015
bfe182c
modified: plugins/tv.zip
Jan 5, 2015
f52e264
modified: plugins/tv.zip
Jan 5, 2015
2fe7a7e
modified: kordonivkakino/kordonivkakino.js
Jan 6, 2015
3ea5355
modified: gdrive/gdrive.js
Jan 4, 2015
c4255ee
modified: Makefile
Jan 10, 2015
daaaedf
modified: enigma2/enigma2.js
Jan 10, 2015
1ddf01e
modified: enigma2/enigma2.js
Jan 10, 2015
66946f6
modified: enigma2/enigma2.js
Jan 10, 2015
bc572ff
modified: enigma2/enigma2.js
Jan 11, 2015
90221a3
modified: enigma2/enigma2.js
Jan 11, 2015
12cdd52
modified: enigma2/enigma2.js
Jan 11, 2015
a4d6477
modified: enigma2/enigma2.js
Jan 12, 2015
dbb4acc
modified: Makefile
Jan 20, 2015
ec12f10
modified: liveleak/liveleak.js
Jan 20, 2015
13aefd0
modified: liveleak/liveleak.js
Jan 20, 2015
e73ca1c
modified: plugins/youtube.zip
Jan 20, 2015
9018848
modified: plugins/youtube.zip
Jan 20, 2015
b3511c8
modified: plugins/youtube.zip
Jan 20, 2015
fbdd73f
modified: plugins/youtube.zip
Jan 20, 2015
526899c
modified: baskino/baskino.js
Jan 21, 2015
891fe9f
modified: baskino/plugin.json
Jan 21, 2015
853f19a
modified: Makefile
Jan 21, 2015
62d4b4c
modified: hdtrailers/hdtrailers.js
Jan 21, 2015
dc9a06c
modified: hdtrailers/hdtrailers.js
Jan 21, 2015
4c27042
modified: hdtrailers/hdtrailers.js
Jan 21, 2015
f93d034
modified: liveleak/liveleak.js
Jan 21, 2015
ab56050
modified: baskino/baskino.js
Jan 22, 2015
5d54367
modified: copydotcom/copy.js
Jan 22, 2015
4256a76
modified: fs_to/fs_to.js
Jan 22, 2015
9a91748
modified: Makefile
Jan 22, 2015
86472f6
modified: megogo/megogo.js
Jan 22, 2015
0095fa2
modified: paradisehill/paradisehill.js
Jan 22, 2015
b3e0aae
modified: plugins/porntube.zip
Jan 22, 2015
776eb68
modified: plugins/youtube.zip
Jan 22, 2015
5760782
modified: plugins/youtube.zip
Jan 22, 2015
a67d003
modified: plugins/tv.zip
Jan 22, 2015
4e70821
modified: plugins/tv.zip
Jan 22, 2015
847ff43
modified: plugins/ted.zip
Jan 22, 2015
a69c399
modified: ingfilm/ingfilm.js
Jan 22, 2015
a746639
modified: plugins/tree_tv.zip
Jan 23, 2015
93ab024
modified: ingfilm/ingfilm.js
Jan 23, 2015
d9597ca
modified: plugins/ted.zip
Jan 26, 2015
7e9479d
modified: hdtrailers/hdtrailers.js
Jan 22, 2015
2a6f68d
modified: plugins/tree_tv.zip
Jan 27, 2015
dd7f117
modified: plugins/yts_re.zip
Jan 22, 2015
0c7310e
modified: plugins/youtube.zip
Jan 29, 2015
b6230e3
modified: plugins/tv.zip
Jan 22, 2015
ff636c3
modified: plugins/tv.zip
Jan 31, 2015
dffe355
modified: plugins/tv.zip
Jan 31, 2015
ab9c38b
modified: plugins/tv.zip
Feb 4, 2015
f6d83ef
modified: baskino/baskino.js
Feb 5, 2015
9b400f5
modified: plugins/yts_re.zip
Feb 5, 2015
8a60416
modified: fs_to/fs_to.js
Feb 5, 2015
4b6fce0
modified: plugins/yts_re.zip
Feb 5, 2015
c78d374
modified: plugins/rad.io.zip
Feb 5, 2015
c3b8460
modified: di/di.js
Feb 5, 2015
d9c6ae6
modified: fs_to/fs_to.js
Feb 8, 2015
2286dc8
modified: plugins/youtube.zip
Feb 9, 2015
3438ed0
modified: plugins/tv.zip
Feb 15, 2015
b356d8e
modified: plugins/youtube.zip
Feb 21, 2015
421d7fa
modified: filmezz/filmezz.js
Feb 22, 2015
1d3ab90
modified: fs_to/fs_to.js
Feb 24, 2015
765457d
modified: Makefile
Feb 27, 2015
a1602c7
modified: navi-x/navi-x.js
Feb 27, 2015
b02f142
modified: plugins/twitchtv.zip
Feb 28, 2015
faab19f
modified: filmezz/filmezz.js
Mar 1, 2015
6db03d0
modified: Makefile
Mar 1, 2015
5983c4d
modified: baskino/baskino.js
Mar 1, 2015
cb4041b
modified: plugins/vkvideos.zip
Mar 2, 2015
221ee7b
modified: discoverydn/discoverydn.js
Mar 2, 2015
08a823a
modified: plugins/youtube.zip
Mar 2, 2015
e4e56e1
modified: di/di.js
Mar 20, 2015
d3ff265
modified: kordonivkakino/kordonivkakino.js
Mar 20, 2015
7b405af
modified: plugins/yts_re.zip
Mar 20, 2015
260f530
modified: plugins/yts_re.zip
Mar 20, 2015
007a7ab
modified: copydotcom/copy.js
Mar 21, 2015
ef8f832
modified: plugins/vkvideos.zip
Mar 24, 2015
d58be8c
modified: docuim/docuim.js
Mar 24, 2015
7f118d8
deleted: Makefile
Mar 24, 2015
122c2f8
fixed regex: docuim/docuim.js
Mar 26, 2015
4146ebf
fixed login issues: navi-x/navi-x.js
Mar 26, 2015
aa0069c
moved to API 5.28: plugins/vkvideos.zip
Mar 28, 2015
622e7a0
fixed playlists: navi-x/navi-x.js
Mar 29, 2015
5c7ead2
fixed searcher: navi-x/navi-x.js
Apr 1, 2015
44e495b
added user route: plugins/twitchtv.zip
Apr 7, 2015
27e4a06
fixed some scrapers: filmezz/filmezz.js
Apr 8, 2015
b5079e7
fixed api call: plugins/watch_is.zip
Apr 21, 2015
08c34a7
fixed scrapers: discoverydn/discoverydn.js
Apr 21, 2015
774d118
fixed searcher: plugins/tree_tv.zip
Apr 27, 2015
9631041
fixed some sources: plugins/tv.zip
Apr 27, 2015
f0c8ce1
fixed some tivix links: plugins/tv.zip
Apr 28, 2015
451f8a0
added yoooo.tv: plugins/tv.zip
Apr 29, 2015
f565c09
added ability to add m3u playlists: plugins/tv.zip
Apr 29, 2015
d6a25e9
fixed removing from m3u list: plugins/tv.zip
Apr 29, 2015
d6d8651
added ability to add yoooo to the favorites: plugins/tv.zip
May 1, 2015
22008cb
m3u parser lists by groups: plugins/tv.zip
May 1, 2015
7db91b2
fixed typo: plugins/tv.zip
May 1, 2015
654f8a2
added some channels: plugins/tv.zip
May 1, 2015
c73adf1
fixed auth: dropbox/dropbox.js
May 4, 2015
5770f1c
logo: onedrive/logo.png
May 5, 2015
8ba137b
first release: onedrive/onedrive.js
May 5, 2015
5d1f268
fixed some channels in tivix: plugins/tv.zip
May 5, 2015
890985a
fixed searcher: plugins/rutor.zip
May 6, 2015
891eb43
implemented searcher: plugins/xxx-tracker.zip
May 6, 2015
2d5124b
migrated to uppod links: plugins/watch_is.zip
May 7, 2015
ef02b98
fixed searcher: discoverydn/discoverydn.js
May 7, 2015
bf6765b
some fixes: discoverydn/discoverydn.js
May 7, 2015
562e42d
fixed subs: plugins/ted.zip
May 7, 2015
f7b3a56
switched off subs scan: liveleak/liveleak.js
May 7, 2015
3a1a319
switched off subs scan: plugins/youtube.zip
May 7, 2015
441e1b5
fixed user agent: divan_tv/divan_tv.js
May 7, 2015
9b6f9f5
added divan: plugins/tv.zip
May 7, 2015
ad74caa
some fixes: plugins/tv.zip
May 7, 2015
50dc5e0
more reliable fetching of m3u8: plugins/tv.zip
May 8, 2015
1124c5e
added ability to set base url in settings: plugins/rutor.zip
May 8, 2015
6743fe2
fixed canonicalUrl for tivix: plugins/tv.zip
May 8, 2015
6d4997e
added ability to disable zapping before channel switch: enigma2/en…
May 8, 2015
6bb2745
added streaminglive.to: plugins/tv.zip
May 9, 2015
f394b1c
fixed streamlive: plugins/tv.zip
May 9, 2015
b07572e
better m3u parser: plugins/tv.zip
May 9, 2015
716e595
fixed divan int: plugins/tv.zip
May 8, 2015
78f6425
divan fix: plugins/tv.zip
May 9, 2015
139316d
streamlive fixes: plugins/tv.zip
May 9, 2015
8143a74
m3u browser is more smart: plugins/tv.zip
May 9, 2015
2f2ed9f
you can bookmark m3u groups: plugins/tv.zip
May 9, 2015
4b34926
supports named m3u as records: plugins/tv.zip
May 10, 2015
6e11efc
fixed group listing: plugins/tv.zip
May 10, 2015
c4a6c17
m3u is external now: plugins/tv.zip
May 10, 2015
bfb23b1
groups inside #EXTINF are supported now: plugins/tv.zip
May 11, 2015
bf6761b
added cleaning of badly designed m3u: plugins/tv.zip
May 11, 2015
602ff1b
some optimizations: plugins/tv.zip
May 11, 2015
1fdbc38
more optimizations: plugins/tv.zip
May 11, 2015
34ccac7
parsing speed improvement: plugins/tv.zip
May 11, 2015
e3e1a0f
initial stab: chaturbate/chaturbate.js
May 11, 2015
f0677cb
cinemas added: plugins/tv.zip
May 12, 2015
7a9e456
parser fix: chaturbate/chaturbate.js
May 12, 2015
1aa3c75
added sample list: plugins/tv.zip
May 11, 2015
802e294
added xml parser: plugins/tv.zip
May 13, 2015
23a8d02
snall fix: plugins/tv.zip
May 13, 2015
30c3825
multiple fixes: plugins/tv.zip
May 12, 2015
f7a0c2b
various fixes: plugins/tv.zip
May 16, 2015
328195f
fixed yoooo: plugins/tv.zip
May 16, 2015
2868f07
added sputniktv.in.ua: plugins/tv.zip
May 16, 2015
cc83750
better error reporting: plugins/tv.zip
May 16, 2015
3084ceb
some fixes: navi-x/navi-x.js
May 16, 2015
9790290
added idc.md: plugins/tv.zip
May 16, 2015
6c26f1f
small fixes: plugins/tv.zip
May 16, 2015
1bbfc03
small fixes: plugins/tv.zip
May 16, 2015
54f64e1
don't query receivers on start: enigma2/enigma2.js
May 17, 2015
91dedd8
empty list fix: enigma2/enigma2.js
May 17, 2015
26b5716
fixed sputniktv.in.ua: plugins/tv.zip
May 18, 2015
b1c092e
epg for sputniktv.in.ua: plugins/tv.zip
May 16, 2015
5e7aa55
url fix: plugins/rutor.zip
May 21, 2015
a7bf0b0
regex fixes: chaturbate/chaturbate.js
May 21, 2015
60c65ad
fixed epg: divan_tv/divan_tv.js
May 20, 2015
b4b5ec8
acestream proxy support: plugins/tv.zip
May 23, 2015
d14d697
modified: baskino/baskino.js
May 24, 2015
3d8fa5e
login fix: copydotcom/copy.js
May 24, 2015
866c459
epg fix: divan_tv/divan_tv.js
May 24, 2015
b7b9412
fixed searcher: dropbox/dropbox.js
May 24, 2015
54e6db6
fixed some parsers: filmezz/filmezz.js
May 24, 2015
390a467
fixed duration and icons: fs_to/fs_to.js
May 24, 2015
3f40c60
fixed error in searcher: gdrive/gdrive.js
May 24, 2015
c318d31
captcha fix: plugins/tv.zip
May 24, 2015
4e068c4
more debug: plugins/tv.zip
May 24, 2015
365ec33
modified: plugins/tv.zip
May 24, 2015
463004f
modified: plugins/tv.zip
May 24, 2015
ed62db1
modified: plugins/tv.zip
May 24, 2015
4f77703
goatdee initial stab: plugins/tv.zip
May 24, 2015
845e6a2
added gotod: plugins/tv.zip
May 25, 2015
6455a0f
fixed link parser: filmezz/filmezz.js
May 25, 2015
c2418d3
throbber fix on idc: plugins/tv.zip
May 30, 2015
a4970fa
better icon extraction: plugins/tv.zip
May 31, 2015
d724f86
favorites icon fix: plugins/tv.zip
May 31, 2015
132e3cf
idc.md auth fix: plugins/tv.zip
Jun 2, 2015
14d15e4
added auth to divan.tv: plugins/tv.zip
Jun 2, 2015
ccfe2a0
added spb: plugins/tv.zip
Jun 2, 2015
2297053
cosmetic fixes: plugins/tv.zip
Jun 2, 2015
48c7ed7
fixed vod in spbtv: plugins/tv.zip
Jun 3, 2015
5662ad3
added no_subtitles_scan to videoparams: hdtrailers/hdtrailers.js
Jun 3, 2015
e8786ae
modified: ex_ua/ex_ua.js
Jun 3, 2015
771922a
cosmetic fixes: plugins/tree_tv.zip
Jun 3, 2015
f59013f
fixed canonicalUrl: plugins/tree_tv.zip
Jun 4, 2015
ca48405
fixed goatdee: plugins/tv.zip
Jun 5, 2015
d1d0327
added drundoo: plugins/tv.zip
Jun 6, 2015
1396701
added epg to xml: plugins/tv.zip
Jun 6, 2015
7e59ff3
beautified offline detection in goatdee: plugins/tv.zip
Jun 7, 2015
5499510
yoooo.tv fix: plugins/tv.zip
Jun 7, 2015
9d2976f
fixed goatdee: plugins/tv.zip
Jun 7, 2015
7ac625d
drundoo auth fix: plugins/tv.zip
Jun 7, 2015
195350c
epg times for idc.md: plugins/tv.zip
Jun 7, 2015
1bffc9e
fixed epg in xml: plugins/tv.zip
Jun 7, 2015
e62a1da
add baseurl to logos: plugins/tv.zip
Jun 8, 2015
ee3df66
added top250: ingfilm/ingfilm.js
Jun 8, 2015
594ceda
subs typo fix: ingfilm/ingfilm.js
Jun 8, 2015
e46c0d3
cosmetic fixes: divan_tv/divan_tv.js
Jun 8, 2015
422cb14
epg support in m3u: plugins/tv.zip
Jun 8, 2015
79dbfc9
login fixes: plugins/tv.zip
Jun 7, 2015
8205bed
imdb fixes: divan_tv/divan_tv.js
Jun 9, 2015
8b76802
yamgo fix: plugins/tv.zip
Jun 11, 2015
0321459
added yamgo: plugins/tv.zip
Jun 11, 2015
3d071c7
modified: kordonivkakino/kordonivkakino.js
Jun 15, 2015
c5eb829
modified: plugins/porntube.zip
Jun 15, 2015
08ba335
fixed param passing: plugins/yts_re.zip
Jun 15, 2015
d44910b
fixed some parsers: filmezz/filmezz.js
Jun 15, 2015
9dd48a4
fixed scraper: plugins/ted.zip
Jun 15, 2015
df3fa62
modified: ingfilm/ingfilm.js
Jun 15, 2015
d862a35
regex fixes: navi-x/navi-x.js
Jun 8, 2015
d0d1c61
changed base url: ex_ua/ex_ua.js
Jun 24, 2015
8b1866d
added some adult filtering: plugins/tv.zip
Jun 24, 2015
8528890
fixed regex: discoverydn/discoverydn.js
Jun 9, 2015
06159fa
fixed streamlive: plugins/tv.zip
Jun 28, 2015
64e914e
new file: plugins/webbrowserpopup.zip
Jun 28, 2015
da868da
modified: plugins/webbrowserpopup.zip
Jun 28, 2015
6d3a66b
rewritten from scratch: eztvapi/eztvv.js
Jun 30, 2015
7be6281
modified: ingfilm/ingfilm.js
Jul 1, 2015
da04b30
fixed subs: plugins/youtube.zip
Jul 1, 2015
b6847f3
subs fix: ingfilm/ingfilm.js
Jul 2, 2015
ec549b4
fix for imdbid fetch: ingfilm/ingfilm.js
Jul 2, 2015
daf841a
subtitle fixes: baskino/baskino.js
Jul 3, 2015
c963cbb
fixed subs: baskino/baskino.js
Jul 5, 2015
04477b0
subs fixes: filmezz/filmezz.js
Jul 5, 2015
3e375c9
fixed actors: baskino/baskino.js
Jul 6, 2015
dbf7e93
better subs code: plugins/tree_tv.zip
Jul 6, 2015
0ba3d0a
auth fix: gdrive/gdrive.js
Jul 11, 2015
275064b
fixed canonicalUrl: megogo/megogo.js
Jul 22, 2015
d9fb192
modified: plugins/porntube.zip
Oct 7, 2015
892caa3
fixed goatdee & streamlive: plugins/tv.zip
Oct 8, 2015
1878e2c
added baseUrl: ex_ua/ex_ua.js
Oct 11, 2015
2b77518
Merge branch 'master' of https://github.com/lprot/showtime-plugins
Oct 11, 2015
c845938
fixed some routes: filmezz/filmezz.js
Oct 11, 2015
0a9105f
fixed goatdee: plugins/tv.zip
Oct 11, 2015
4c57d7d
fixed regex: plugins/porntube.zip
Oct 17, 2015
f28ced1
fixed parser: plugins/tree_tv.zip
Oct 18, 2015
0aa9c00
settings fix & API error reporting: plugins/yts_re.zip
Nov 8, 2015
b487a18
modified: di/di.js
Nov 9, 2015
2de636c
5.0 compatibility: plugins/rad.io.zip
Nov 13, 2015
6150750
modified: plugins/porntube.zip
Nov 13, 2015
feac626
fs.ua fixes: fs_to/fs_to.js
Nov 13, 2015
bea3a0f
initial 5.0 compatibility stab: plugins/youtube.zip
Nov 13, 2015
de79930
speedup thumbnail loading: dropbox/dropbox.js
Nov 14, 2015
9c9b00f
api fixes: plugins/yts_re.zip
Nov 15, 2015
a1d15b6
Added client-id to fix Twitch
Mar 12, 2017
c7590a9
Update plugin.json
Mar 12, 2017
c426fe1
Merge pull request #7 from csgabe/master
Mar 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 0 additions & 16 deletions Makefile

This file was deleted.

258 changes: 258 additions & 0 deletions animetoon/animetoon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
/**
* Animetoon plugin for Showtime Media Center
*
* Copyright (C) 2014 fdm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

(function(plugin) {
var PLUGIN_PREFIX = "animetoon:";
var SITE_URL = "http://animetoon.tv";
var service = plugin.createService("Animetoon", PLUGIN_PREFIX + "start", "video", true, plugin.path + "animetoon.png");

function getBetween(str0, str1, str2) {
var tmp = str0.substring(str0.indexOf(str1) + str1.length, str0.length);
return tmp.substring(0, tmp.indexOf(str2));
}

plugin.addURI(PLUGIN_PREFIX + "start", function(page) {
page.type = "directory";
page.metadata.title = 'Animetoon';
page.appendItem(PLUGIN_PREFIX + "byletter:" + showtime.JSONEncode({
type: "Dubbed Anime",
postfix: "/dubbed-anime"
}), "directory", {
title: "Dubbed Anime"
});
page.appendItem(PLUGIN_PREFIX + "byletter:" + showtime.JSONEncode({
type: "Cartoons",
postfix: "/cartoon"
}), "directory", {
title: "Cartoon List"
});
page.appendItem(PLUGIN_PREFIX + "byletter:" + showtime.JSONEncode({
type: "Movies",
postfix: "/movies"
}), "directory", {
title: "Movie List"
});
page.loading = false;
});

plugin.addURI(PLUGIN_PREFIX + "byletter:(.*)", function(page, vars) {
var type = showtime.JSONDecode(vars).type;
var postfix = showtime.JSONDecode(vars).postfix;
page.type = "directory";
page.metadata.title = type + ' By Letter';
page.appendItem(PLUGIN_PREFIX + "getlisting:" + showtime.JSONEncode({
type: type,
postfix: postfix,
letter: "#"
}), "directory", {
title: "#"
});
for (var i = 0; i < 26; i++) {
page.appendItem(PLUGIN_PREFIX + "getlisting:" + showtime.JSONEncode({
type: type,
postfix: postfix,
letter: String.fromCharCode(i + 65)
}), "directory", {
title: String.fromCharCode(i + 65)
});
}
page.loading = false;
});

plugin.addURI(PLUGIN_PREFIX + "getlisting:(.*)", function(page, vars) {
var type = showtime.JSONDecode(vars).type;
var postfix = showtime.JSONDecode(vars).postfix;
var letter = showtime.JSONDecode(vars).letter;
var prefix = "getepisodes:"
if (type == "Movies") {
prefix == "getmovies:"
}
page.type = "directory";
page.metadata.title = type + " - " + letter;
showtime.trace(SITE_URL + postfix);
var html = showtime.httpGet(SITE_URL + postfix).toString();
var capture = getBetween(html, "<h3 class=\"generic\">" + letter + "</h3>", "</table>");
var segments = capture.split("<tr>")
var left = new Array();
var right = new Array();
for (var i = 1; i < segments.length; i++) {
var parts = segments[i].split("<td>")
left[left.length] = [getBetween(parts[1], ">", "<"), getBetween(parts[1], "href=\"", "\"")];
if (parts[2].indexOf("href=\"") != -1) {
right[right.length] = [getBetween(parts[2], ">", "<"), getBetween(parts[2], "href=\"", "\"")];
}
}
for (var y = 0; y < left.length; y++) {
page.appendItem(PLUGIN_PREFIX + prefix + showtime.JSONEncode({
title: left[y][0],
link: left[y][1]
}), "directory", {
title: left[y][0]
});
}
for (var z = 0; z < right.length; z++) {
page.appendItem(PLUGIN_PREFIX + prefix + showtime.JSONEncode({
title: right[z][0],
link: right[z][1]
}), "directory", {
title: right[z][0]
});
}
page.loading = false;
});

plugin.addURI(PLUGIN_PREFIX + "getepisodes:(.*)", function(page, vars) {
var title = showtime.JSONDecode(vars).title;
var link = showtime.JSONDecode(vars).link;
page.type = "directory";
page.metadata.title = title + " Episodes";
showtime.trace(link);
var html = showtime.httpGet(link).toString();
while (true) {
var capture = getBetween(html, "<div id=\"videos\">", "</div>");
var segments = capture.split("<li>");
for (var i = 1; i < segments.length; i++) {
var eptitle = getBetween(segments[i], ">", "<");
var eplink = getBetween(segments[i], "href=\"", "\"");
page.appendItem(PLUGIN_PREFIX + "gethosts:" + showtime.JSONEncode({
title: eptitle,
link: eplink,
playlist: "",
round: "0"
}), "directory", {
title: eptitle
});
}
if (html.indexOf("<ul class=\"pagination\">") == -1) {
break;
}
var tmp = getBetween(html, "<ul class=\"pagination\">", "</ul>");
tmp = tmp.split("<li>")
if (tmp[tmp.length - 1].indexOf("<a href=\"") == -1) {
break;
}
var nextpage = getBetween(tmp[tmp.length - 1], "<a href=\"", "\"");
html = showtime.httpGet(nextpage).toString();
showtime.trace(nextpage);
}
page.loading = false;
});

plugin.addURI(PLUGIN_PREFIX + "getmovies:(.*)", function(page, vars) {
var title = showtime.JSONDecode(vars).title;
var link = showtime.JSONDecode(vars).link;
page.type = "directory";
page.metadata.title = title + " Groups";
showtime.trace(link);
var html = showtime.httpGet(link).toString();
var capture = html.split("</h2>")[1];
capture = getBetween(capture, "<ul>", "</ul>").split(".");
var segments = capture.split("<li>");
for (var i = 1; i < segments.length; i++) {
var mvtitle = getBetween(segments[i], ">", "<");
var mvlink = getBetween(segments[i], "href=\"", "\"");
page.appendItem(PLUGIN_PREFIX + "gethosts:" + showtime.JSONEncode({
title: mvtitle,
link: mvlink,
playlist: "",
round: "0"
}), "directory", {
title: mvtitle
});
}
});

plugin.addURI(PLUGIN_PREFIX + "gethosts:(.*)", function(page, vars) {
var title = showtime.JSONDecode(vars).title;
var link = showtime.JSONDecode(vars).link;
var playlist = showtime.JSONDecode(vars).playlist;
var round = showtime.JSONDecode(vars).round;
showtime.trace(link);
var html = showtime.httpGet(link).toString();
var segments = html.split("<span class=\"playlist\"");
for (var i = 1; i < segments.length; i++) {
if (round == "0") {
page.type = "directory";
page.metadata.title = title + " Links";
var hostlink = getBetween(segments[i], "src=\"", "\"");
var tmp = getBetween(hostlink, "//", "/").split(".");
var hosttitle = tmp[tmp.length - 2]
if (segments[i].indexOf("<ul class=\"part_list\">") == -1) {
page.appendItem(PLUGIN_PREFIX + "play:" + showtime.JSONEncode({
link: hostlink
}), "video", {
title: hosttitle
});
} else {
playlist = getBetween(segments[i], ">", "<");
page.appendItem(PLUGIN_PREFIX + "gethosts:" + showtime.JSONEncode({
title: hosttitle,
link: link,
playlist: playlist,
round: "1"
}), "directory", {
title: hosttitle
});
}
} else if (round == "1") {
page.type = "directory";
page.metadata.title = title + " Playlists";
if (playlist == getBetween(segments[i], ">", "<")) {
var partlist = getBetween(segments[i], "<ul class=\"part_list\">", "</ul>");
var segments2 = partlist.split("<li>");
for (var j = 1; j < segments2.length; j++) {
var parttitle = getBetween(segments2[j], ">", "<");
var partlink = getBetween(segments2[j], "href=\"", "\"");
page.appendItem(PLUGIN_PREFIX + "gethosts:" + showtime.JSONEncode({
title: parttitle,
link: partlink,
playlist: playlist,
round: "2"
}), "video", {
title: parttitle
});
}
break;
}
} else {
if (playlist == getBetween(segments[i], ">", "<")) {
var hostlink = getBetween(segments[i], "src=\"", "\"");
playlink(page, hostlink);
return;
}
}
}
page.loading = false;
});

plugin.addURI(PLUGIN_PREFIX + "play:(.*)", function(page, vars) {
var link = showtime.JSONDecode(vars).link;
playlink(page, link);
});

function playlink(page, link) {
showtime.trace(link);
var html = showtime.httpGet(link).toString();
var videoUrl = decodeURIComponent(getBetween(html, "_url = \"", "\""));
showtime.trace(videoUrl);
page.type = 'video';
page.source = videoUrl;
page.loading = false;
}
})(this);
Binary file added animetoon/animetoon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions animetoon/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"description": "<p>Animetoon - Watch Cartoon Online<p>For additional information, visit <a href=\"http://www.animetoon.tv\">http://www.animetoon.tv</a>",
"author": "fdm",
"homepage": "http://github.com/lprot/showtime-plugins",
"title": "Animetoon",
"synopsis": "Watch Cartoon Online",
"version": "1.1",
"file": "animetoon.js",
"showtimeVersion": "4.8",
"type": "ecmascript",
"id": "animetoon",
"category": "video",
"icon": "animetoon.png"
}
Loading