PlayOn Plugins - Unofficial Plugins - Development - Help
Unofficial Plugins - Development Area
»
General Development
»
Crunchyroll/Cookie question
Username:
1 Hour
1 Day
1 Week
1 Month
Forever
Password:
Home
New Posts
Search
Quick Search
Advanced Search
[Close]
Login
Register
Welcome
News
:
Welcome to PlayOnPlugins.com! If you want fresh stuff for PlayOn, we can help!
Pages: [
1
]
2
« previous
next »
Print
Author
Topic: Crunchyroll/Cookie question (Read 5534 times)
0 Members and 1 Guest are viewing this topic.
viron75
Developer Tier 1
Sr. Member
Times Thanked: 118
Posts: 360
Crunchyroll/Cookie question
«
on:
December 11, 2009, 05:54:11 PM »
I have been working on a Crunchyroll plugin. The plugin lets me login and navigate around the site. I can get all of the videos.
This is accomplished with a CookieContainer that "tricks" the crunchyroll website into thinking I am logged in all the time.
The problem is when I play a video I don't know how to make the PlayOn host have my CookieContainer so crunchyroll says no and it doesn't play.
Does anyone know how to affect PlayOn's cookies? Can they be written somewhere on the harddrive or can I actually pass my CookieContainer in code to the host?
If its as easy as writing them out to the environment's IE Temp Internet Files directory that may be a solution?
Logged
Setup:
--------------------------
DNLA Devices:
XBOX360
PS3
Wii
DSM-520
Computer:
Dual Core 3.2GHz w/ 4GB RAM
Network:
15MB RoadRunner Cable
mopenstein
Global Moderator
Hero Member
Times Thanked: 141
Posts: 868
Re: Crunchyroll/Cookie question
«
Reply #1 on:
December 12, 2009, 03:07:20 AM »
I've been meaning to check and see how playon gets videos and how it reports itself. I am a bit surprised that there isn't a way to set cookies or the user agent, for examples, but as far as I know you can't do this.
Logged
mopenstein
Global Moderator
Hero Member
Times Thanked: 141
Posts: 868
Re: Crunchyroll/Cookie question
«
Reply #2 on:
December 12, 2009, 03:40:10 AM »
FYI, what a PlayOn Request looks like:
WMV Request
Code:
GET /Movie.wmv HTTP/1.1
Accept: */*
User-Agent: NSPlayer/11.0.5721.5265 WMFSDK/11.0
Accept-Encoding: gzip, deflate
Host: 127.0.0.1:8080
Connection: Keep-Alive
FLV Request
Code:
GET /Movie.flv HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Range: bytes=0-
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)
Host: 127.0.0.1:8080
Connection: Close
«
Last Edit: December 12, 2009, 03:44:32 AM by mopenstein
»
Logged
viron75
Developer Tier 1
Sr. Member
Times Thanked: 118
Posts: 360
Re: Crunchyroll/Cookie question
«
Reply #3 on:
December 14, 2009, 11:49:34 AM »
Ah, I figured it out. Use a InternetExplorer object instead of a HTTPRequest object
Logged
Setup:
--------------------------
DNLA Devices:
XBOX360
PS3
Wii
DSM-520
Computer:
Dual Core 3.2GHz w/ 4GB RAM
Network:
15MB RoadRunner Cable
ddyeakley
Newbie
Times Thanked: 0
Posts: 8
Re: Crunchyroll/Cookie question
«
Reply #4 on:
February 22, 2010, 06:46:14 PM »
I am trying to do something similar, use InternetExplorer object to create cookies. Do you have any code you can share on how you got this to work with crunchroll? Seems like a bloated approach but I am running out of options....
Logged
viron75
Developer Tier 1
Sr. Member
Times Thanked: 118
Posts: 360
Re: Crunchyroll/Cookie question
«
Reply #5 on:
February 23, 2010, 12:19:00 PM »
Its a very bloated approach, the problem isnt the InternetExplorer object, its MSHTML that is required to read the InternetExplorer.document object. It makes a big ass dll that you have to have in your running path and takes for fricken ever to compile. There are a million examples of how to use this in vbscript and vb on google, I just changed it to work on C#.
Logged
Setup:
--------------------------
DNLA Devices:
XBOX360
PS3
Wii
DSM-520
Computer:
Dual Core 3.2GHz w/ 4GB RAM
Network:
15MB RoadRunner Cable
Guitaroomasta
Developer Tier 2
Full Member
Times Thanked: 124
Posts: 227
Re: Crunchyroll/Cookie question
«
Reply #6 on:
February 23, 2010, 07:02:52 PM »
Hello viron75,
I mulled over creating a script for Crunchyroll a little while I ago but discovered that Crunchyroll, streams videos using RTMPE which from what I understand PlayOn doesn't currently support But I am a very amateur script writer/programmer so I may have overlooked something. If you got the streams to work, great! Best of luck, I look forward to your plugin.
Guitaroomasta
«
Last Edit: February 23, 2010, 07:04:56 PM by Guitaroomasta
»
Logged
Devices: PS3 (Wireless), Xbox 360 (Wireless) XBMC (On the same PC as the PlayOn Server)
PC: x86, Windows Vista, Core 2 Duo 2.0Ghz, 3GB Ram, NVIDIA 8400M GT
seeit360
Always watching...
Administrator
Hero Member
Times Thanked: 278
Posts: 1915
"It's Science"
Re: Crunchyroll/Cookie question
«
Reply #7 on:
February 24, 2010, 01:49:10 AM »
Ive got one too but the issue is the authorization, not the cookies
Logged
OS: XP Pro (x32), XP Home (x32) Win 7 (x64)
Connection: Wired/Wireless
DNLA Devices: PS3, XBox360, Wii, NETGEAR EVA2000, Google TV, Moxi, WD TV Live, Android,
ISP: Comcast
"It's a new era right now, what we're putting together, It's a movement"
viron75
Developer Tier 1
Sr. Member
Times Thanked: 118
Posts: 360
Re: Crunchyroll/Cookie question
«
Reply #8 on:
February 24, 2010, 09:57:35 AM »
It probably depends on the website, but it seems to work for crunchyroll if there is a cookie in the InternetExplorer cookies file. If there was a way to save the cookie information without invoking MSHTML it would be alot more lightweight. It would still need the Shdowvc dll, but that one is alot smaller.
Logged
Setup:
--------------------------
DNLA Devices:
XBOX360
PS3
Wii
DSM-520
Computer:
Dual Core 3.2GHz w/ 4GB RAM
Network:
15MB RoadRunner Cable
ddyeakley
Newbie
Times Thanked: 0
Posts: 8
Re: Crunchyroll/Cookie question
«
Reply #9 on:
February 25, 2010, 05:29:01 PM »
I must be missing something. Is there a trick to get Playon to use a cookie created by the plugin (through MSHTM) or a browser? The browser see the cookie but Playon does not?
Logged
viron75
Developer Tier 1
Sr. Member
Times Thanked: 118
Posts: 360
Re: Crunchyroll/Cookie question
«
Reply #10 on:
February 26, 2010, 09:53:26 AM »
Correct, if you make a CookieContainer in code and don't physically save the cookie, PlayOn can't access it. You have to use an instance of InternetExplorer.Application to save the cookie to the hard drive so any other InternetExplorer.Application that is launched has access to it.
Logged
Setup:
--------------------------
DNLA Devices:
XBOX360
PS3
Wii
DSM-520
Computer:
Dual Core 3.2GHz w/ 4GB RAM
Network:
15MB RoadRunner Cable
ddyeakley
Newbie
Times Thanked: 0
Posts: 8
Re: Crunchyroll/Cookie question
«
Reply #11 on:
February 26, 2010, 12:03:43 PM »
As a test i created the cookie in IE, I can shut down and reopen IE and access the area without authenticating. Should Playon use the same cookie? Or does it have to be created (as a file) from inside Playon?
Logged
viron75
Developer Tier 1
Sr. Member
Times Thanked: 118
Posts: 360
Re: Crunchyroll/Cookie question
«
Reply #12 on:
February 27, 2010, 10:51:34 AM »
According to PlayOn tech guys, PlayOn "should" be able to access a cookie as long as IE can access it.
Logged
Setup:
--------------------------
DNLA Devices:
XBOX360
PS3
Wii
DSM-520
Computer:
Dual Core 3.2GHz w/ 4GB RAM
Network:
15MB RoadRunner Cable
smoothreptile
Newbie
Times Thanked: 0
Posts: 1
Re: Crunchyroll/Cookie question
«
Reply #13 on:
April 19, 2010, 05:45:04 PM »
Any more news about this plugin for Crunchyroll?
Logged
AllanB
Developer Tier 2
Sr. Member
Times Thanked: 45
Posts: 366
Quiet is my companion
Re: Crunchyroll/Cookie question
«
Reply #14 on:
April 20, 2010, 03:48:41 PM »
SeeIt360 has this plugin available for download.
[Link Removed] You are not allowed to view links. Please login or register
Register
or
Login
www.playonlabs.net
Logged
OS: XP Pro 32bit
Connection: Wireless
DLNA: PS3
Christi crux est mea lux
Pages: [
1
]
2
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Spam
=> Shows to watch
-----------------------------
Guides / Support
-----------------------------
=> Guides
=> Support
-----------------------------
Unoffical Plugins - Download Area
-----------------------------
=> General Plugins
===> Plugins in need of repair
=> Scripts Downloads
=> OPML Downloads
===> Arts and Literature
===> Business
===> Comedy
===> Entertainment
===> Food
===> Kids and Family
===> Music
===> News
===> Personal and Storytelling
===> Politics
===> Sci-Fi
===> Science and Health
===> Spirituality
===> Sports
===> Tech and Video Games
===> Television and Film
===> Travel
===> Misc / Other
-----------------------------
Unofficial Plugins - Development Area
-----------------------------
=> General Development
=> Scripts Development
=> Suggestion board
-----------------------------
Archive
-----------------------------
=> Archives
Loading...