Categories
General blog entries

Download videos from Crunchyroll

With Dattebayo dropping Naruto Shippuden because CrunchyRoll will legaly release just hours after TV Tokyo airs, I decided it was time to write some magic to download the videos from Crunchroll. You see, I have a HTPC in my living room and I don’t really fancy watching Naruto in a browser when the time comes.

Disclaimer: this will NOT allow you to download paid shows without paying. Personal use only, don’t be an **** and distribute the video.

This will only work in FireFox – also, it will only work on the H264 videos. Put the following code in a file and install it into GreaseMonkey:

crunchroll_video_download.js

// ==UserScript== // @name           Provide download link on Crunchroll videos // @namespace      http://www.crunchyroll.com/ // @description    This script extracts the file name from the player code to allow the user to download it. // @include        http://www.crunchyroll.com/media-*/*.html?h264=1 // ==/UserScript== // Get the div holding the player object var div = document.getElementById('showmedia_left_col_new'); // Grab the script in that div which constructs the player var script = div.getElementsByTagName('script')[0]; // Extract the configuration array from the script content var config_str = /"config":"([^"]+)"/.exec(script.innerHTML); // Decode the URI encoding which is used on the config parameter, we now have some XML structure var html = decodeURI(config_str[1]); // Grab the file tag from the XML content var filename = unescape(/([^<]+)/.exec(html)[1]);  // Find the message box on this page var msgbox = document.getElementById('message_box'); // Remove the style which hides it msgbox.setAttribute('style',''); // Get all divs inside the message box var divs = msgbox.getElementsByTagName('div'); // Set this to the div which should hold the message var msgdiv = null; // Loop through all found children to find the right one, with a class name 'message-list' for(i = 0; i < divs.length; i++) { 	if(divs[i].className == 'message-list') { 		msgdiv = divs[i]; 		break; 	} }
Categories
News

Status update

A small update from the battle front: I’m trying to find a blog editor which I like. Like I stated before, I need something like Windows Live Writer for my 64-bit Gentoo system. I’ve been hitting the search engines with every phrase I could come up with and so far I only found a random blog about editors for the Free Desktop. Even though the author seems to find a lot more than I do, of the 5 (or actually 10 if you count the options from the linked article) only 3 keep up with my list of demands.

I’ll skip the first 5 (because those plain suck) and skip to the last (and best) 5 options. First up is Thingamablog. This one has a decent interface, is written in Java and resembles a news client. Cool as it may be, it does not support XML RPC style postings, only direct uploads to ftp.

The next one is JBlogEditor. This one is also written in Java but is no longer actively maintained. I had a hard time getting it to run in the first place as the native SWT libraries in there are meant for 32-bit systems. I tried to get the source from SVN but they have no docs on how to build from source and after finally be able to compile it by writing my own compile and run script (which grabs all dependencies) I found out they use a launch system from Eclipse which I don’t know.

After all the effort I finally came up with the brilliant idea to use Wine to run the Windows binary. It finally worked but then I found out they only support WordPress for custom sites, the Blogger API does not wants to play with a third party website (it does not ask for a URL so it ends up at blogger.com).

The 3rd option it QTM for KDE and I can be brief: it looks way to simple for my taste. I will look into it later on to see if its any good as the version reviewed is way older than the current version.

Next up is Flock. Flock is not so much a dedicated blog editor as a fully intergrated package with a Firefox browser and loads of extra stuff, being the "Community Browser" or something. It works straight out of the box on my system but it is way to heavy for just blogging.

Last up is Bleezer, another Java based blogging client. I’ve actually used that one before so I know it works. The interface is a bit wonky at times but it works fine. The main issue I had in the past is the fact that on linux, it used the default Look and Feel from Java, which is at this time with Java 1.6.0 still Metal. If you don’t know it, it looks horrible – something escaped from a Windows 3.1 system or perhaps ancient Solaris.

I finally found a solution for the skinning problem though: use the command line to tell Java to switch the default L&F. I’m currently using something like this:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar Bleezer.jar

The only thing driving me nuts at the moment is the fact that the GTK skin is all wrong. Its a lot better than Metal but the fonts are way too small. I have the feeling that this is an issue with the fact that the Qt-to-GtK bridge that I have on my computer is broken because of KDE4 (and thus Qt4.x). At least it is better than nothing and right now I’m even typing this using Bleezer so everything is all good.

I still have high hopes for KBlogger but as long as the 1.0 branch is alpha I will stay clear as it seems to have loads of issues and I can’t get it to compile at all.

Technorati:

Categories
Japan Blog Study Tour

Thundering Silence

IMG_3349 To cover the silence I’ll post something on here right now (at gunpoint from my sister). Thanks to the right down crap internet (or rather no internet at all most of the time) I was forced to stop uploading pictures to my site and upload stories as well. Not to worry, most of the adventures of the idiot in Japan are safely stored on this computer but I now finally have the time to finish writing the stories and adding pictures to them (it helps to actually move them from the camera to the computer – d0h).

Right now I’m finishing up last weeks things and hopefully I’ll be able to post the stories from Hiroshima onwards within a day. Actually I’m typing this from my hotel chamber which has no internet connection as well (sigh). We found a Yahoo internet cafe at the 3rd floor though so with a bit of luck I’ll be able to upload at least this message.

On a side note: the raptor above is not a mockup toy but a real walking mecha – if you wanna find out more stay tuned ^_^.

Categories
Japan Blog Study Tour

Anime music

After all is said and done… well I just had to post some anime music videos. I picked some soundtracks from my favorite shows and found the video clips. (I’m gonna be so broke if I find a music store in Osaka or Tokyo ;-))

For starters, lets begin with Origa. The song is called Rise and is the first opening tune for Ghost In The Shell: the 2nd GIG. Note that I couldn’t find a video clip of this song so this is the opening itself: {flv}demo/Origa_-_Rise{/flv}