-- ****************************** -- Attention!!! Adult only * -- 18+ * -- ****************************** -- 22.08.2021 -- 27.06.2022 update by jokel -- 05.03.2023 update by det-box -- 06.03.2023 update by jokel cfg.user_age=18 cfg.youporn_max_pages=5 cfg.maxRes=720 -- 1080 or 720 or 480 or 240 youporn_category= { ['top_rated']='/top_rated/', ['most_viewed']='/most_viewed/', ['amateur']='/category/amateur/', ['anal']='/category/anal/', ['asian']='/category/asian/', ['bbw']='/category/bbw/', ['big_butt']='/category/big-butt/', ['big_tits']='/category/big-tits/', ['bisexual']='/category/bisexual/', ['blonde']='/category/blonde/', ['blowjob']='/category/blowjob/', ['brunette']='/category/brunette/', ['coed']='/category/coed/', ['compilation']='/category/compilation/', ['couples']='/category/couples/', ['creampie']='/category/creampie/', ['cumshots']='/category/cumshots/', ['cunnilingus']='/category/cunnilingus/', ['dp']='/category/dp/', ['ebony']='/category/ebony/', ['european']='/category/european/', ['facial']='/category/facial/', ['fantasy']='/category/fantasy/', ['fetish']='/category/fetish/', ['fingering']='/category/fingering/', ['funny']='/category/funny/', ['gay']='/category/gay/', ['german']='/category/german/', ['gonzo']='/category/gonzo/', ['group_sex']='/category/group-sex/', ['hairy']='/category/hairy/', ['handjob']='/category/handjob/', ['hentai']='/category/hentai/', ['instructional']='/category/instructional/', ['interracial']='/category/interracial/', ['interview']='/category/interview/', ['kissing']='/category/kissing/', ['latina']='/category/latina/', ['lesbian']='/category/lesbian/', ['milf']='/category/milf/', ['masturbate']='/category/masturbate/', ['mature']='/category/mature/', ['pov']='/category/pov/', ['panties']='/category/panties/', ['pantyhose']='/category/pantyhose/', ['public']='/category/public/', ['redhead']='/category/redhead/', ['rimming']='/category/rimming/', ['romantic']='/category/romantic/', ['shaved']='/category/shaved/', ['shemale']='/category/trans/', ['solo_male']='/category/solo-male/', ['solo_girl']='/category/solo-girl/', ['squirting']='/category/squirting/', ['strt_sex']='/category/strt-sex/', ['swallow']='/category/swallow/', ['teen']='/category/teen/', ['threesome']='/category/threesome/', ['vintage']='/category/vintage/', ['voyeur']='/category/voyeur/', ['webcam']='/category/webcam/', ['3d']='/category/3d/', ['hd']='/category/hd/', ['young-old']='/category/young-old/' } function check_if_double(tab,name) for index,value in ipairs(tab) do if value == name then return false end end return true end function youporn_updatefeed(feed,friendly_name) local rc=false local ff=youporn_category[feed] if not ff then return false end local feed_name='youporn_'..string.gsub(feed,'/','_') local feed_m3u_path=cfg.feeds_path..feed_name..'.m3u' local tmp_m3u_path=cfg.tmp_path..feed_name..'.m3u' local feed_url='https://www.youporn.com'..ff..'?' local dfd=io.open(tmp_m3u_path,'w+') if dfd then dfd:write('#EXTM3U name=\"',friendly_name or feed_name,'\" type=mp4 plugin=youporn\n') -- http.user_agent(cfg.user_agent..'\r\nCookie: age_verified=1') http.user_agent('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) ' ..'\r\nCookie: age_verified=1') local page=1 local urls = {} while(page<=cfg.youporn_max_pages) do local url=feed_url..'&page='..page if cfg.debug>0 then print('YouPorn try url '..url) end local data=http.download(url) if not data then return end local skipto = data.find(data, "