[PLUGIN] ImageDL v1.3 (24/06/2112)
+4
buxx
demian.kinley
nipunb
Little Todd
8 posters
Page 1 of 1
[PLUGIN] ImageDL v1.3 (24/06/2112)
Since there was an interest in a stand alone plugin for downloading the images, I have decided to give everyone access to my ImageDL Plugin.
If your like me, I prefer to only have active, plugins that are being used. Thus speeding up the bot, by not running code that really does nothing.
This Plugin accomplishes the goal as the Image Downloader contained in the Multi Plugin.
Code was originally extracted from the Multi Plugin, but I have rewritten most of the code to be faster and more efficient.
With this plugin active, there is no need to have the Multi plugin active in order to download the latest image files for use in other plugins.
v1.1
Added item name to log output of images downloaded.
Added pictures of the last images downloaded.
*Note: There will be no pictures until the bot downloads new images. To test, delete a few files from the assets directory, press 'Reset Images' and run bot. Refresh the ImageDL Plugin and you should see the pictures of the Images you deleted. (Remember, the more files you delete, the longer it will take to re-download them.)
v1.2
Fix issue with plugins not being able to find the images.
v1.3
Fixed hook so images are downloaded after the database has been created.
Database now keeps original Revision of when an image was first downloaded (tnx albertos).
Fixed issue with spaces being in file names. (url is encoded to deal with any special charactars).
Added counter showing how many more images need to be downloaded.
Enjoy,
Little Todd
If your like me, I prefer to only have active, plugins that are being used. Thus speeding up the bot, by not running code that really does nothing.
This Plugin accomplishes the goal as the Image Downloader contained in the Multi Plugin.
Code was originally extracted from the Multi Plugin, but I have rewritten most of the code to be faster and more efficient.
With this plugin active, there is no need to have the Multi plugin active in order to download the latest image files for use in other plugins.
v1.1
Added item name to log output of images downloaded.
Added pictures of the last images downloaded.
*Note: There will be no pictures until the bot downloads new images. To test, delete a few files from the assets directory, press 'Reset Images' and run bot. Refresh the ImageDL Plugin and you should see the pictures of the Images you deleted. (Remember, the more files you delete, the longer it will take to re-download them.)
v1.2
Fix issue with plugins not being able to find the images.
v1.3
Fixed hook so images are downloaded after the database has been created.
Database now keeps original Revision of when an image was first downloaded (tnx albertos).
Fixed issue with spaces being in file names. (url is encoded to deal with any special charactars).
Added counter showing how many more images need to be downloaded.
- Code:
http://www.mediafire.com/download.php?a6wbm4e267bmm12
Enjoy,
Little Todd
Last edited by Little Todd on Mon Jun 25, 2012 3:29 am; edited 6 times in total
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
great, tried it and its really good, the log was a lot cleaner coz it doesn't show the URL of the downloaded images and download was faster too.......
just one suggestion, in the log, it show 'icon.png' at the end of code of every image, can it be done like multi plugin, under which it just showed the code of images, without the end part????
just one suggestion, in the log, it show 'icon.png' at the end of code of every image, can it be done like multi plugin, under which it just showed the code of images, without the end part????
nipunb- Posts : 362
Points : 374
Join date : 2011-10-08
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
nipunb wrote:great, tried it and its really good, the log was a lot cleaner coz it doesn't show the URL of the downloaded images and download was faster too.......
just one suggestion, in the log, it show 'icon.png' at the end of code of every image, can it be done like multi plugin, under which it just showed the code of images, without the end part????
Are you referring to the item name instead of the file name?
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
thanks, Little Todd for this nice plugin, works very fast
demian.kinley- Posts : 323
Points : 351
Join date : 2012-02-20
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
great work, maybe you could show some of the images downloaded
buxx- Posts : 44
Points : 61
Join date : 2011-10-08
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
wow! fast loading image! thanks little todd!
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
buxx wrote:great work, maybe you could show some of the images downloaded
This plugin does not store any data in the db, so I would have to save the info about the latest images downloaded some how.....
Let me think of an easy and efficient way to do so.
I'll see what I can do.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
Updated Plugin to v1.1
See first post.
See first post.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
thanks for the update Little Todd
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
Great ... thank you
as always ...
as always ...
farach- Posts : 58
Points : 58
Join date : 2012-03-10
starpuzzles- Posts : 13
Points : 13
Join date : 2011-09-22
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
actually I meant changing this line:Little Todd wrote:Are you referring to the item name instead of the file name?
- Code:
$bot->SendMsg("[ImageDL] Downloading: ". $filename ." - ( ". $key ." )");
to just this:
- Code:
$bot->SendMsg("[ImageDL] Downloading: ". $key ."");
nipunb- Posts : 362
Points : 374
Join date : 2011-10-08
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
It as come to my attention that this plugin is not updating the database correctly, and therefore other plugins are not able to find the images.
v1.2 corrects this problem.
See first post.
Little Todd
v1.2 corrects this problem.
See first post.
Little Todd
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
Little Todd wrote:It as come to my attention that this plugin is not updating the database correctly, and therefore other plugins are not able to find the images.
v1.2 corrects this problem.
See first post.
Little Todd
thanks for update Little Todd!
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
thanks nice plugin would like if it had collection feature of multi plugin as multi plugin is kind of slow....or a separate plugin to trade collection items.
colinpritham- Posts : 46
Points : 48
Join date : 2011-09-29
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
hi, Little Todd, thanks for your plugin anyway, is a chance , bring with the newest items an info about 'type' too ?
a small update ?
demian.kinley- Posts : 323
Points : 351
Join date : 2012-02-20
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
Updated.
See first post.
See first post.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
Thanks for the update Todd!
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42
Re: [PLUGIN] ImageDL v1.3 (24/06/2112)
working perfectly now, that glass door image is now downloaded correctly...Little Todd wrote:Updated.
See first post.
and must say, the addition of the $Total string in hook, that displays the consecutive numbers with each image, it looks very good....
great work....
nipunb- Posts : 362
Points : 374
Join date : 2011-10-08
Similar topics
» [PLUGIN] Buildings2 v2.5.1 (29/07/2112)
» [PLUGIN] BuyIt v1.1 (13/05/2112)
» [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)
» [PLUGIN] sendTo v1.0 - Downtown Update (18/04/2112)
» CVBot - Project DEVIL 1.5 [Both Worlds Update] 11/04/2112
» [PLUGIN] BuyIt v1.1 (13/05/2112)
» [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)
» [PLUGIN] sendTo v1.0 - Downtown Update (18/04/2112)
» CVBot - Project DEVIL 1.5 [Both Worlds Update] 11/04/2112
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Mon Apr 20, 2015 1:52 pm by ertyanna
» expansions cityville hack new 12/12/15
Sat Feb 14, 2015 9:52 pm by nico
» Biohazard Problem Expansion
Sat Nov 08, 2014 3:12 pm by CV FO LIFE
» CAN SOMEONE HELP ME?
Sat Nov 08, 2014 3:09 pm by CV FO LIFE
» hello friends i have new update of cv bot project devil 1.10 update (2.01)
Sat Nov 01, 2014 12:59 pm by Blue Angel
» [Resolved] codebase-php Error
Sun Oct 12, 2014 7:22 am by nico
» -_- Which bot is now working ????
Thu Oct 09, 2014 7:06 pm by lobobpf6
» bot 1.2 does nt work
Sun Aug 10, 2014 1:00 am by nathaliafariass
» COMO FUNCIONA
Sun Aug 10, 2014 12:38 am by nathaliafariass