Sign up here and you can log into the forum!

Youporn Plugin

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Youporn Plugin   

Postby dantexaiver » Thu Dec 29, 2011 3:40 pm

Can anyone create a plugin for Youporn ?
dantexaiver
n00b
 
Posts: 4
Joined: Mon Dec 26, 2011 2:41 pm

Re: Youporn Plugin   

Postby TroNik » Fri Dec 30, 2011 2:48 am

Done :) Posted at: UMSP Plugin: youporn
TroNik
Developer
 
Posts: 73
Joined: Wed Dec 21, 2011 2:56 am

Re: Youporn Plugin   

Postby dantexaiver » Fri Dec 30, 2011 8:18 am

WOW your quick dude
dantexaiver
n00b
 
Posts: 4
Joined: Mon Dec 26, 2011 2:41 pm

Re: Youporn Plugin   

Postby jmaraujo » Tue Mar 29, 2016 8:31 am

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",
...to...
Code: Select all
( "id"         => "umsp://plugins/redtube?cat=$cat&amp;pag=$pag",
...but Redtube plugin is extremely slow, and has no search.
User avatar
jmaraujo
WDTVer
 
Posts: 29
Joined: Sun Feb 19, 2012 3:01 pm
Location: Rivera, Uruguay


Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest