PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: bofh19 on 23 August, 2010, 21:30:13

Title: imdb rating/vote only offline
Post by: bofh19 on 23 August, 2010, 21:30:13
i know that there is already a script for imdb which shows a lot of data for a movie from imdb..
but that takes from internet..and till the result is out..the hub is hanged ..and my net is slow...so i wrote an offline imdb script...
i did copy all the taking values part from lUk3f1l3w4lK3R 's script http://forum.ptokax.org/index.php?topic=8691.0 (http://forum.ptokax.org/index.php?topic=8691.0) script...i dont know how parse in lua..
anyway....
get the ratings file from http://ftp//ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz its imdb site and can be used     (i guess)
extract it you will get a ratings.list file ..
now it has a lot of stuff...to parse..and i dont know lua properly so..

now this ratings2.list can be used with the script..

the script has 3 commands !imdb !imdball and !imdbh (similar) to  lUk3f1l3w4lK3R script...it displays votes and movie names series
all series have a (tv) at the end....
below is the result for the command !imdb shawshank redemption
[00:43:37] <?iMDB?>  Below Are The results displayed on your search request for " shawshank redemption "
[00:43:37] <?iMDB?>  If it doesnt show what you are searching for then try another search term.
[00:43:37] <?iMDB?>

Votes Rating Movie(tv show)

52 7.4 Hope Springs Eternal: A Look Back at 'The Shawshank Redemption' (2004) (V)
510017 9.2 The Shawshank Redemption (1994)

Processed 331261 Movies from database found 2 matches
nothing is case sensitive now


i will try to post the modified ratings file also .. but my net is slow ..  :( :( :(
im not allowed to upload .py files so giving in zip..
Title: Re: imdb rating/vote only offline
Post by: bofh19 on 23 August, 2010, 23:18:00
here is the uploaded file ..
https://sites.google.com/site/theshadowwarrior88/ratings2.7z

use the one from ftp//ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz

mine is a week late
Title: Re: imdb rating/vote only offline
Post by: smarty2890 on 26 August, 2010, 16:38:08
Nice one bofh ... :D ;)

Thanks a lot :D
Title: Re: imdb rating/vote only offline
Post by: nightcrawler on 01 July, 2012, 21:06:59
Votes      Rating      Movie(tv show)

                      30.0.01003      39   4.0  "Avengers Assemble!" (2010)
                      1000211001     157   5.2  "Avengers" (1999)
                      ..12122...       8   4.8  "Avengers" (1999) {Avengers Assemble: Part One (#1.1)}
                      ...412.1..       7   4.6  "Avengers" (1999) {Avengers Assemble: Part Two (#1.2)}
                      ..226.....       5   4.2  "Avengers" (1999) {Comes a Swordsman (#1.4)}
                      ...2.8....       5   5.5  "Avengers" (1999) {Command Decision (#1.6)}
                      ..22222...       5   4.7  "Avengers" (1999) {Earth and Fire: Part One (#1.12)}
                      ..224.2...       5   4.2  "Avengers" (1999) {Earth and Fire: Part Two (#1.13)}
                      2..422....       5   4.0  "Avengers" (1999) {Egg-Streme Vengeance (#1.10)}
                      ...28.....       5   4.7  "Avengers" (1999) {Remnants (#1.5)}
                      .....312.2       8   7.5  "Bleach" (2004) {The Avengers (#3.6)}
                      0....0142.      12   6.1  "Gunsmoke" (1955) {The Avengers (#11.14)}
                      ...0012202      86   8.0  "Married with Children" (1987) {Psychic Avengers (#6.19)}
                      0000000123    2034   8.4  "The Avengers" (1961)
                      ...0020201      22   7.2  "The Avengers" (1961) {A Chorus of Frogs (#2.24)}
                      0000011222      70   7.3  "The Avengers" (1961) {A Funny Thing Happened on the Way to the Station (#5.13)}
                      0.0.111220      57   6.9  "The Avengers" (1961) {A Sense of History (#4.24)}
                      0000002111      63   7.2  "The Avengers" (1961) {A Surfeit of H2O (#4.8)}
                      0..0001123      82   7.9  "The Avengers" (1961) {A Touch of Brimstone (#4.21)}
                      ....002131      35   7.7  "The Avengers" (1961) {All Done with Mirrors (#7.8)}
                      1...011102      39   6.6  "The Avengers" (1961) {Bizarre (#7.33)}
                      ....131200      22   6.7  "The Avengers" (1961) {Box of Tricks (#2.17)}
                      ....002114      29   8.7  "The Avengers" (1961) {Brief for Murder (#3.1)}
                      ...0.13003      23   7.9  "The Avengers" (1961) {Build a Better Mousetrap (#3.21)}
                      .....31113      30   8.2  "The Avengers" (1961) {Bullseye (#2.4)}
                      0000011211      73   7.5  "The Avengers" (1961) {Castle De'ath (#4.5)}


As seen above the table dont match with the list can u make it look nice
Title: Re: imdb rating/vote only offline
Post by: the-master on 03 July, 2012, 07:57:09
No, we can't, the list is fine, you should adjust your clients settings to get a proper output.
Title: Re: imdb rating/vote only offline
Post by: nightcrawler on 03 July, 2012, 14:47:00
Thats what i am asking is how could, how to adjust these settings to look good
Title: Re: imdb rating/vote only offline
Post by: the-master on 04 July, 2012, 06:24:51
by changing the clients fonts.
size can make a huge differents.