Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d0aa3f3
new site
alzamer2 Apr 8, 2017
0a842ee
remove the cookies test
alzamer2 Apr 9, 2017
45f1366
forget to fix the url for name
alzamer2 Apr 9, 2017
1f802e8
improve the auto catch
alzamer2 Apr 10, 2017
78bbc26
Update README.md
alzamer2 Apr 10, 2017
76f1bc1
improve usa unblocker option so that it does not overload the site
alzamer2 Apr 10, 2017
5f7437a
add m3u8 auto download
alzamer2 Apr 12, 2017
ddb67f9
fix the Premium+ problem
alzamer2 Apr 12, 2017
8eb4a47
more imprivment on auto cash
alzamer2 Apr 13, 2017
2fe4d7b
autocash optimize
alzamer2 Apr 13, 2017
32776ea
add progress bar for hls download
alzamer2 Apr 14, 2017
3d6059d
trying new fix for auto cash so that it skip rss feed that dont have …
alzamer2 Apr 18, 2017
4ad691c
add function to download
alzamer2 Apr 19, 2017
99bad22
trying to update mkcmerger
alzamer2 Apr 19, 2017
ba16bec
forget to change line
alzamer2 Apr 19, 2017
ec6ca8b
switchthe appending function to the system
alzamer2 Apr 20, 2017
6f80224
fix the download unit
alzamer2 Apr 21, 2017
e4c0678
Merge remote-tracking branch 'refs/remotes/jaw20/master'
alzamer2 Apr 22, 2017
ce11e7d
Revert "fix the download unit"
alzamer2 Apr 22, 2017
93a1a0d
Revert "switchthe appending function to the system"
alzamer2 Apr 22, 2017
1e14444
Revert "forget to change line"
alzamer2 Apr 22, 2017
a222a9d
Revert "trying to update mkcmerger"
alzamer2 Apr 22, 2017
838a892
Revert "add function to download"
alzamer2 Apr 22, 2017
11ddb41
Revert "trying new fix for auto cash so that it skip rss feed that do…
alzamer2 Apr 22, 2017
8ec27b5
Revert "add progress bar for hls download"
alzamer2 Apr 22, 2017
2d613e9
Revert "autocash optimize"
alzamer2 Apr 22, 2017
bac561d
Revert "more imprivment on auto cash"
alzamer2 Apr 22, 2017
cec3d41
Revert "fix the Premium+ problem"
alzamer2 Apr 22, 2017
39de255
Revert "add m3u8 auto download"
alzamer2 Apr 22, 2017
acdf80c
Revert "Revert "fix the Premium+ problem""
alzamer2 Apr 22, 2017
5a65b27
Revert "Revert "trying to update mkcmerger""
alzamer2 Apr 22, 2017
c2f10af
Revert "improve the auto catch"
alzamer2 Apr 22, 2017
a2f264c
Revert "Revert "add m3u8 auto download""
alzamer2 Apr 22, 2017
2edeb03
remove some extra lines
alzamer2 Apr 22, 2017
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Requires Python modules:
- lxml (https://pypi.python.org/pypi/lxml/3.2.5)
- m3u8 (https://pypi.python.org/pypi/m3u8/)
- cfscrape (https://pypi.python.org/pypi/cfscrape/)
- Node.js is required for (safe) Javascript execution.
Your computer or server may already have it (check with node -v). If not, you can install it with apt-get install
nodejs on Ubuntu and Debian. Otherwise, please read ( https://nodejs.org/en/download/package-manager/ )Node's installation instructions.

crunchy-xml-decoder will try to install PyCrypto and lxml automatically,
if they are missing. m3u8 and crscrape can be installed using PIP.
Expand Down
17 changes: 12 additions & 5 deletions crunchy-xml-decoder/altfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ def gethtml(url):
u'العربية' : 'arME' , u'Deutsch' : 'deDE'}[lang]
if forceusa:
try:
session.cookies['sess_id'] = requests.get('http://www.crunblocker.com/sess_id.php').text
session.cookies['sess_id'] = re.split('"',requests.get('https://cr.onestay.moe/getid').text)[5]
#print 'I recommend to re-login so we don\'t overload crunchyroll unblocker'
except:
sleep(10) # sleep so we don't overload crunblocker
session.cookies['sess_id'] = requests.get('http://www.crunblocker.com/sess_id.php').text
session.cookies['sess_id'] = re.split('"',requests.get('https://rubbix.net/crunchyroll/').text)[5]
#print 'I recommend to re-login so we don\'t overload crunchyroll unblocker'
parts = urlparse.urlsplit(url)
if not parts.scheme or not parts.netloc:
print 'Apparently not a URL'
Expand Down Expand Up @@ -103,15 +105,20 @@ def getxml(req, med_id):
u'العربية' : 'arME' , u'Deutsch' : 'deDE'}[lang]
if forceusa:
try:
session.cookies['sess_id'] = requests.get('http://www.crunblocker.com/sess_id.php').text
session.cookies['sess_id'] = session.cookies['usa_sess_id']
except:
sleep(10) # sleep so we don't overload crunblocker
session.cookies['sess_id'] = requests.get('http://www.crunblocker.com/sess_id.php').text
try:
session.cookies['sess_id'] = re.split('"',requests.get('https://cr.onestay.moe/getid').text)[5]

except:
sleep(10) # sleep so we don't overload crunblocker
session.cookies['sess_id'] = re.split('"',requests.get('https://rubbix.net/crunchyroll/').text)[5]
headers = {'Referer': 'http://static.ak.crunchyroll.com/versioned_assets/ChromelessPlayerApp.17821a0e.swf',
'Host': 'www.crunchyroll.com', 'Content-type': 'application/x-www-form-urlencoded',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0)'}
res = session.post(url, params=payload, headers=headers)
res.encoding = 'UTF-8'
#print session.cookies
return res.text


Expand Down
14 changes: 13 additions & 1 deletion crunchy-xml-decoder/functtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,24 @@ def unzip_(filename_,out):
except ImportError:
print 'Installing Cfscrape...',
try:
if python_bit_=="32 bit" or python_bit_=="64 bit":
#if python_bit_=="32 bit" or python_bit_=="64 bit":
pip.main(['install', '--quiet', 'cfscrape'])
print "Installed"
except KeyError:
print "Something Has Gone Wrong While Retrieving Cfscrape link\nPlease Download Cfscrape Manually"

try:
import m3u8
print('m3u8 installed')
except ImportError:
print 'Installing m3u8...',
try:
#if python_bit_=="32 bit" or python_bit_=="64 bit":
pip.main(['install', '--quiet', 'm3u8'])
print "Installed"
except KeyError:
print "Something Has Gone Wrong While Retrieving m3u8 link\nPlease Download m3u8 Manually"

if Crypto_link_ or lxml_link_:
if not os.path.exists("temp"):
os.makedirs("temp")
Expand Down
5 changes: 5 additions & 0 deletions crunchy-xml-decoder/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def login(username, password):
c.expires = 9999999999 # Saturday, November 20th 2286, 17:46:39 (GMT)

del session.cookies['c_visitor']
#try:
#session.cookies['usa_sess_id'] = re.split('"',requests.get('https://cr.onestay.moe/getid').text)[5]
#except:
#sleep(10) # sleep so we don't overload crunblocker
#session.cookies['usa_sess_id'] = re.split('"',requests.get('https://rubbix.net/crunchyroll/').text)[5]

userstatus = getuserstatus(session)
if username != '' and userstatus[1] == 'Guest':
Expand Down
1 change: 1 addition & 0 deletions crunchy-xml-decoder/ultimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def ultimate(page_url, seasonnum, epnum):

#h = HTMLParser.HTMLParser()
title = re.findall('<title>(.+?)</title>', html)[0].replace('Crunchyroll - Watch ', '')
print format('Now Downloading - '+title)
if len(os.path.join('export', title+'.flv')) > 255:
title = re.findall('^(.+?) \- ', title)[0]

Expand Down