Re: Channels Plugin
Posted: Mon Sep 03, 2012 3:06 am
Try and update your icefilms.ch with this
Code: Select all
version=0.56
###############################
## IceFilms new method of
## fecting url's
## Thx to infidel for big parts
## of this script
#################################
scriptdef iceGo {
print s_url
id=s_url
# get postdata vals
regex='f\.lastChild\.value="(.+?)"
match htmRaw
sec=v1
print sec
regex='&t=(\d+)
match htmRaw
t=v1
# build postdata string
# e.g. id=189537&s=16&iqs=&url=&m=-99&cap=&sec=37fn8Oklq&t=4524
# note: faking s,m (s:elapsed seconds, m:'onmousemove="m-=1"')
s_postdata='id=
concat s_postdata id
concat s_postdata '&s=11&iqs=
concat s_postdata '&url=&m=-77&cap=
concat s_postdata '&sec=
concat s_postdata sec
concat s_postdata '&t=
concat s_postdata t
print s_postdata
# set request method, header, cookie and send (using xbmc icefilms addon as model)
s_method='post
s_referer='http://www.icefilms.info
s_url='http://www.icefilms.info/membersonly/components/com_iceplayer/video.phpAjaxResp.php
#e.g /membersonly/components/com_iceplayer/GMorBMlet.php?url=http%3A%2F%2Fwww.megaupload.com%2F%3Fd%3DS6CLEDC2&
regex='url=(.+)
scrape
url=v1
unescape url
print url
play
}
##############################
## Subtitle name mangle
## script for IceFilms
##############################
scriptdef iceSubs {
full_url=s_url
url=s_url
regex='\((\d+)\)
match s_url
year=v1
v1='
replace url '
s_url=url
regex='(\d+)x(\d+)
match s_url
season=v1
episode=v2
regex='(\d+x\d+) .*
replace url '
play
}
#################################
## Rapidshare script
#################################
scriptdef rsScript {
print s_url
regex='\/files\/([^\/]+)\/(.*)
match s_url
s_url='https://api.rapidshare.com/cgi-bin/rsapi.cgi?sub=download&try=1&fileid=
id=v1
name=v2
concat s_url v1
concat s_url '&filename=
concat s_url v2
if user
escape user
concat s_url '&login=
concat s_url user
escape pwd
concat s_url '&password=
concat s_url pwd
endif
regex='DL:([^,]+),([^,]+),([^,]+)
scrape
if v2 == '0
url='https://
else
url='http://
endif
concat url v1
concat url '/cgi-bin/rsapi.cgi?sub=download&fileid=
concat url id
concat url '&filename=
concat url name
concat url '&dlauth=
concat url v2
if user
concat url '&login=
concat url user
concat url '&password=
concat url pwd
endif
pms_stash.sleep=v3
play
}
#############################
## 180Upload script
#############################
scriptdef 180Script {
regex='180upload.com/(.*)
match s_url
id=v1
regex='fname" value="([^"]+)"
scrape
fname=v1
op='&op=download1
s_postdata='id=
concat s_postdata id
concat s_postdata '&fname=
concat s_postdata fname
concat s_postdata '&method_free=Free+Download
tmp=s_postdata
concat s_postdata op
s_method='post
regex='name="rand" value="([^"]+)"
scrape
rand=v1
s_postdata=tmp
concat s_postdata '&op=download2&down_direct=1&btn_download=Free+Download&rand=
concat s_postdata rand
s_method='post
#<a href="http://173.193.242.242/files/2/x3xa8wxs4nf1du/Altair_The_Walking_Dead.S02E12.HDTV.XviD-FQM.avi">
regex='<a href="[^"]+">(http[^<]+)</a>
scrape
url=v1
play
}
#############################
## vidhog script
#############################
scriptdef vhScript {
regex='vidhog.com/(.*)
match s_url
id=v1
s_postdata='op=download1&id=
concat s_postdata id
s_method='post
regex='name="rand" value="([^"]+)">
scrape
rand=v1
s_postdata='op=download2&id=
concat s_postdata id
concat s_postdata '&rand=
concat s_postdata rand
sleep '30000
scrape
#<strong><a href="http://s5a.vidhogservers.com:182/d/f2dtskjmnjhr3p57toqiwn362dn5x6h7zfgxig7fa3fy42g6s5qv2raf/the.big.bang.theory.s05e20.hdtv.xvid-fqm.avi">
regex='<strong><a href="([^"]+)">
scrape
url=v1
play
}
#############################
## ShareBee script
#############################
scriptdef SBScript {
regex='sharebees.com/(.*)
match s_url
id=v1
regex='fname" value="([^"]+)"
scrape
fname=v1
op='&op=download1
s_postdata='id=
concat s_postdata id
concat s_postdata '&fname=
concat s_postdata fname
concat s_postdata '&method_free=Free+Download
tmp=s_postdata
concat s_postdata op
s_method='post
#<a href="http://173.193.242.242/files/2/x3xa8wxs4nf1du/Altair_The_Walking_Dead.S02E12.HDTV.XviD-FQM.avi">
regex='name="rand" value="([^"]+)
scrape
rand=v1
s_postdata=tmp
concat s_postdata '&op=download2&down_direct=1&btn_download=Create+Download+Link&rand=
concat s_postdata rand
regex='>(http://[^<]+)</a>
scrape
url=v1
play
}
#############################
## The actual scrpaer
#############################
macrodef rsTvmacro {
media {
# Rapidshare
#https://rapidshare.com/files/2029276453/The.Big.Bang.Theory.S05E14.HDTV.XviD-LOL.avi"
script=rsScript
prop=name_index=2+1,delay=dynamic
subtitle=s4u
}
}
macrodef 180Tvmacro {
media {
# 180 upload
script=180Script
prop=name_index=2+1
subtitle=swesub,s4u
}
}
macrodef SbTvmacro {
media {
# ShareBees
script=SBScript
prop=name_index=2+1
subtitle=swesub,s4u,ut.se
}
}
macrodef vhTvmacro {
media {
# VidHog
script=vhScript
prop=name_index=2+1
subtitle=s4u
}
}
macrodef rsmediaMacro {
media {
script=rsScript
prop=name_index=2,delay=dynamic
subtitle=s4u,allSubs,podnapisiMovie
}
}
macrodef 180mediaMacro {
media {
script=180Script
prop=name_index=2,delay=dynamic
subtitle=s4u,allSubs,podnapisiMovie
}
}
macrodef tvMacro {
folder {
# Series
#<img class=star><a href=/tv/series/1/565>'Til Death (2006)</a>
matcher=<a name=i id=([^>]+)></a><img class=star><a href=([^>]+)>([^<]+)</a>
order=imdb,url,name
#matcher=<img class=star><a href=([^>]+)>([^<]+)</a>
#order=url,name
url=http://www.icefilms.info
# thumb_script=imdbThumb
prop=movieinfo
folder {
# Episodes
#img class=star><a href=/ip.php?v=124783&>Jan 31. Bill Gates</a>
matcher=<img class=star><a href=([^>]+)>([^<]+)</a>
order=url,name
url=http://www.icefilms.info
folder {
# <iframe id="videoframe" src="/membersonly/components/com_iceplayer/video.php?h=374&w=631&vid=4524&img=&ttl=30+Rock+1x01+Pilot+%282006%29" width="631" height="392" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
matcher=src=\"(/membersonly/comp[^\"]+)\"
order=url,thumb
url=http://www.icefilms.info
type=empty
post_script=iceGo
folder {
# onclick='go(247108)'>Source #1|PART 1
matcher='go\(([0-9]+)\)'>(Source #[0-9]+|PART [0-9]+)[^<]+<span title='[^R]+(RapidShare)
order=url,name,name
prop=name_separator=###0
type=empty
macro=rsTvmacro
}
folder {
matcher=go\(([0-9]+)\)'>(Source #[0-9]+|PART [0-9]+)[^<]+<span title="[^S]+(ShareBees)
order=url,name,name
prop=name_separator=###0
type=empty
macro=SbTvmacro
}
folder {
matcher=go\(([0-9]+)\)'>(Source #[0-9]+|PART [0-9]+)[^<]+<span title='[^1]+(180upload)
order=url,name,name
prop=name_separator=###0
type=empty
macro=180Tvmacro
}
}
}
}
}
macrodef movieMacro {
folder {
# Movies
#<img class=star><a href=/tv/series/1/565>'Til Death (2006)</a>
matcher=<a name=i id=([^>]+)></a><img class=star><a href=([^>]+)>([^<]+)</a>
order=imdb,url,name
url=http://www.icefilms.info
#thumb_script=imdbThumb
prop=movieinfo
folder {
# <iframe id="videoframe" src="/membersonly/components/com_iceplayer/video.php?h=374&w=631&vid=4524&img=&ttl=30+Rock+1x01+Pilot+%282006%29" width="631" height="392" frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
matcher=src=\"(/membersonly/comp[^\"]+)\"
order=url
url=http://www.icefilms.info
type=empty
post_script=iceGo
folder {
# onclick='go(247108)'>Source #1|PART 1
matcher='go\(([0-9]+)\)'>(Source #[0-9]+|PART [0-9]+)[^<]+<span title='[^R]+(RapidShare)
order=url,name,name
prop=name_separator=###0
macro=rsmediaMacro
}
folder {
# onclick='go(247108)'>Source #1|PART 1
matcher=matcher=go\(([0-9]+)\)'>(Source #[0-9]+|PART [0-9]+)[^<]+<span title='[^1]+(180upload)
order=url,name,name
prop=name_separator=###0
macro=180mediaMacro
}
}
}
}
channel IceFilms {
img=http://img.icefilms.info/logo.png
subscript=iceSubs
# hdr=Referer=http://www.megaupload.com/?c=login
folder {
name=TV Shows
folder {
#Popular
name=Popular
url=http://www.icefilms.info/tv/popular/1
macro=tvMacro
}
folder {
name=A-Z
type=atzlink
url=http://www.icefilms.info/tv/a-z
prop=other_string=1
macro=tvMacro
}
folder {
#Rating
name=Rating
url=http://www.icefilms.info/tv/rating/1
macro=tvMacro
}
folder {
#Release
name=Release
url=http://www.icefilms.info/tv/release/1
macro=tvMacro
}
}
folder {
name=Movies
folder {
name=Popular
url=http://www.icefilms.info/movies/popular/1
macro=movieMacro
}
folder {
name=A-Z
type=atzlink
url=http://www.icefilms.info/movies/a-z
prop=other_string=1
macro=movieMacro
}
folder {
#Rating
name=Rating
url=http://www.icefilms.info/movies/rating/1
macro=movieMacro
}
folder {
#Release
name=Release
url=http://www.icefilms.info/movies/release/1
macro=movieMacro
}
}
}