Page 1 of 1

Youporn Plugin

PostPosted: Thu Dec 29, 2011 3:40 pm
by dantexaiver
Can anyone create a plugin for Youporn ?

Re: Youporn Plugin

PostPosted: Fri Dec 30, 2011 2:48 am
by TroNik
Done :) Posted at: UMSP Plugin: youporn

Re: Youporn Plugin

PostPosted: Fri Dec 30, 2011 8:18 am
by dantexaiver
WOW your quick dude

Re: Youporn Plugin

PostPosted: Tue Mar 29, 2016 8:31 am
by jmaraujo
Can anyone please fix the YouPorn plugin?* I tried to do it myself but couldn't fix it. :oops:

My PHP knowledge is very basic to fix it myself... :roll: So, all I could do was to fix the category navigation... :lol:
Code: Select all
$category_href_regexp = '<a href="(?P<category>/category/\d+/[a-z-]*)/"[^>]*>';
    if (preg_match_all('@<li>' . $category_href_regexp .

by adding '.*?' inside the <li> tag. (they added CSS classes to all list elements)
Code: Select all
$category_href_regexp = '<a href="(?P<category>/category/\d+/[0-9a-z-]*)/"[^>]*>';
    if (preg_match_all('@<li .*?>' . $category_href_regexp 
...and also added '0-9' to [a-z-], so the 3D category is also included.

Can anyone please fix this plugin? ;)

(*) PS: Redtube is still working if you edit the ampersand...
Code: Select all
( "id"         => "umsp://plugins/redtube?cat=$cat&pag=$pag",
Code: Select all
( "id"         => "umsp://plugins/redtube?cat=$cat&amp;pag=$pag",
...but Redtube plugin is extremely slow, and has no search.