SpoinT
Advanced Member | Редактировать | Профиль | Сообщение | ICQ | Цитировать | Сообщить модератору Kondishn Да, разумеется, забыл, что тоже может кому-то пригодиться imagebam.com Код: -- *.imagebam.com/image/* function GDL(origUrl) logpref = script.name..'_GDL_0001' usd.setstatus(logpref:gsub('_GDL_',' ')) local page = usd.get(origUrl) debugSaveInc(logpref..'.html', page) local dirUrl = page:match(';" src="http://([^"]+)') if not dirUrl then return usd.setretresult('%dirUrl not found') end usd.setretresult('http://'..dirUrl, 0, 1) return end regDirSuccess( '.imagebam.com/image/', GDL, OS ) | Для новичков: Все записываем в файл "..\USDownloader\Lua\usdLua\imagebam_com.lua" fastpic.ru Код: -- fastpic.ru/view/* function GDL(origUrl) logpref = script.name..'_GDL_0001' usd.setstatus(logpref:gsub('_GDL_',' ')) local page = usd.get(origUrl) debugSaveInc(logpref..'.html', page) local dirUrl = page:match('"><img src="http://([^"]+)') if not dirUrl then return usd.setretresult('%dirUrl not found') end usd.setretresult('http://'..dirUrl, 0, 1) return end regDirSuccess( 'fastpic.ru/view/', GDL, OS ) | Для новичков: Все записываем в файл "..\USDownloader\Lua\usdLua\fastpic_ru.lua" | Всего записей: 840 | Зарегистр. 31-01-2007 | Отправлено: 13:09 16-03-2014 | Исправлено: SpoinT, 15:29 16-03-2014 |
|