Goes through a folder with scene releases in it and then checks which ones are okay to unrar and then unrars these releases, adds the release to log so it doesnt unrar it again and renames the unrared file to proper release name, useful for those of you who create "home videos" in scene release style (=D)
Grabs & formats a new version of tvrage's myrss.php file daily, from here it'd be easy to insert items to mysql ... Mobbed @ 08:00 pm ( 2012-07-14 ) [ S01E07 ] You're Fired http://www.tvrage.com/Mobbed My Cat From Hell @ 08:00 pm ( 2012-07-14 ) [ S03E03 ] Kitty Dearest http://www.tvrage.com/My_Cat_From_Hell NYC 22 @ 08:00 pm ( 2012-07-14 ) [ S01E07 ] Block Party http://www.tvrage.com/The_2-2 ...
stdClass Object
(
[GsearchResultClass] => GwebSearch
[unescapedUrl] => http://en.wikipedia.org/wiki/Dog
[url] => http://en.wikipedia.org/wiki/Dog
[visibleUrl] => en.wikipedia.org
[cacheUrl] => http://www.google.com/search?q=cache:dIBIpaJI7JgJ:en.wikipedia.org
[title] => Dog - Wikipedia, the free encyclopedia
[titleNoFormatting] => Dog - Wikipedia, the free encyclopedia
[content] => The domestic dog (Canis lupus familiaris), is a subspecies of the gray wolf (Canis lupus), a member of the Canidae family of the mammilian order Carnivora.
)
Here's a snippet to download the poster from imdb (large)
search="echo $@ |sed 's/ /+/g'
" ; ttlink="curl -s "http://www.imdb.com/find?s=all&q=$search" |grep -oiEm1 "\/title\/tt[0-9]+\/" |grep -m1 tt
" ; imagelink="http://www.imdb.com`curl -s "http://www.imdb.com$ttlink" |grep -oE -m1 \/media\/[a-zA-Z0-9]+\/tt[0-9]+" ; image=
curl -s "$imagelink" |grep -E "<img id=\"primary-img\"" |grep -oE "http\:\/\/[a-zA-Z]+.media-imdb.com\/images\/[a-zA-Z0-9]+\/[_.a-zA-Z0-9@,]+.jpg"; md5=
echo "$ttlink" |cut -d '/' -f3 |md5sum |cut -d ' ' -f1` ; if [ -f "cache/$md5.jpg" ]; then echo "$md5.jpg - löytyy" ; else wget -qO "cache/$md5.jpg" "$image" ; echo "$md5.jpg - tallennettu" ;fi