Post: [C#] [Open Source] [IMDB DB] Movie Info Getter
10-30-2015, 01:06 PM #1
Toxic
former staff
(adsbygoogle = window.adsbygoogle || []).push({});
Hello all, it is me again Crying
it's been really a long time since i released something for you guys, so i decided to make a small that i coded in like in 15 mins, it's a really useful tool sometimes.
this tool uses a simple API (not mine), it's only mainly parsing and shit Happy
Pic

You must login or register to view this content.
too much pics ik ik tears


You must login or register to view this content. || You must login or register to view this content. || You must login or register to view this content.
Enjoy Sal
Last edited by Toxic ; 04-09-2016 at 08:48 AM.

The following 4 users say thank you to Toxic for this useful post:

Exploited, Im_YouViolateMe, Python, Tristan
04-09-2016, 08:49 AM #11
Originally posted by Habibi
lmfao, i am on it
idk how it went there, i made that like 1 year ago


yea idk.
04-09-2016, 08:49 AM #12
Toxic
former staff
Ooh and the error you guys were getting is cuz i forgot to add the json dll to the exe link Sal
fixed it :fa:
04-09-2016, 08:49 AM #13
Toxic
former staff
Originally posted by ker View Post
yea idk.


i was talking about the bo2 tool btw Sal
04-18-2016, 02:24 AM #14
jagex
Gym leader
Looks great. I will probably be using this, very neat.

You should be disposing webclient after using it or placing it in a using block.

    
string tit = textBox1.Text;
WebClient webC = new WebClient();
var movie = webC.DownloadString(string.Concat("https://www.omdbapi.com/?t=", tit, "&y=", comboBox1.Text, "&plot=short&r=json"));
JObject jO = JObject.Parse(movie);

if ((string)jO["Response"].ToString() == "False")
return false;
else
return true;


Can be simplified to

    
string tit = textBox1.Text;
WebClient webC = new WebClient();
var movie = webC.DownloadString(string.Concat("https://www.omdbapi.com/?t=", tit, "&y=", comboBox1.Text, "&plot=short&r=json"));
JObject jO = JObject.Parse(movie);

return (bool)jO["Response"];
Last edited by jagex ; 04-18-2016 at 02:30 AM.
04-18-2016, 02:43 AM #15
Toxic
former staff
Originally posted by jagex View Post
Looks great. I will probably be using this, very neat.

You should be disposing webclient after using it or placing it in a using block.

    
string tit = textBox1.Text;
WebClient webC = new WebClient();
var movie = webC.DownloadString(string.Concat("https://www.omdbapi.com/?t=", tit, "&y=", comboBox1.Text, "&plot=short&r=json"));
JObject jO = JObject.Parse(movie);

if ((string)jO["Response"].ToString() == "False")
return false;
else
return true;


Can be simplified to

    
string tit = textBox1.Text;
WebClient webC = new WebClient();
var movie = webC.DownloadString(string.Concat("https://www.omdbapi.com/?t=", tit, "&y=", comboBox1.Text, "&plot=short&r=json"));
JObject jO = JObject.Parse(movie);

return (bool)jO["Response"];


I made that a long time ago, but i dont see why i should not use webclient? I just needed smth to get me a page's source,and webclient did the job :p
04-19-2016, 03:23 AM #16
Mr Smithy x
Former Staff
Originally posted by Habibi
Hello all, it is me again Crying
it's been really a long time since i released something for you guys, so i decided to make a small that i coded in like in 15 mins, it's a really useful tool sometimes.
this tool uses a simple API (not mine), it's only mainly parsing and shit Happy
Pic

You must login or register to view this content.
too much pics ik ik tears


You must login or register to view this content. || You must login or register to view this content. || You must login or register to view this content.
Enjoy Sal



Nice! But why not create a movie class and deserialize the Json instead of manually parsing it?

Edit- You did it a long time ago, you probably know about this already
04-19-2016, 11:31 AM #17
Toxic
former staff
Originally posted by Mr
Nice! But why not create a movie class and deserialize the Json instead of manually parsing it?

Edit- You did it a long time ago, you probably know about this already


yeah i do by now :p

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo