Sign up here and you can log into the forum!

Plugin: YouTube Subscriptions + new subscription videos

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

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Thu Dec 02, 2010 9:58 am

From what log did you get that output?
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby S4bb3 » Thu Dec 02, 2010 10:47 am

If you open a webbrowser and enter the ip-address of your WDLXTV there is a link to a Bugreport @ the left.

Edit:
I found a misstake on my part in the crontab...
Dec 2 20:30:01 WDTVLIVE cron.err crond[2201]: USER root pid 32686 cmd /usr/bin/php5-cgi /tmp/umsp-plugins/youtube-subscriptions/youtube-subscriptions-helper.php --insecure >/tmp/youtube-subscriptions-helper.txt2>&1
Dec 2 20:30:01 WDTVLIVE user.alert suhosin[32687]: ALERT - configured request variable name length limit exceeded - dropped variable '/tmp/umsp-plugins/youtube-subscriptions/youtube-subscriptions-helper_php' (attacker 'REMOTE_ADDR not set', file 'unknown')
There should be a space between the 2 and the t in "youtube-subscriptions-helper.txt2>&1"
S4bb3
Donor
 
Posts: 41
Joined: Fri Apr 30, 2010 10:01 pm

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Thu Dec 02, 2010 11:47 am

Yes, I found it also on my system...
After some googling, it seems the script triggers some php security protection which complains that some variable names are too long. The strange thing is that the variable depicted in the error message is not ever defined (and wouldn't be allowed, anyway).

It would seem there has to be a configuration change to php.ini (unfortunately, it's burned into the flash) that would allow longer variable names...

Code: Select all
php_admin_value suhosin.request.max_vars 500


b-rad - could you add this to php.ini for the next release? I don't think it would hurt anything... It would seem the default value is 64, and the string it is complaining about is 73 characters. (Or, if you can point me to the root cause, I can try to fix the script instead...)

Anyway, I haven't noticed any issues, in spite of this error message, so S4bb3 - I would say it's safe to ignore (unless there are problems with the functionality)
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby S4bb3 » Thu Dec 02, 2010 12:01 pm

mad_ady wrote:Anyway, I haven't noticed any issues, in spite of this error message, so S4bb3 - I would say it's safe to ignore (unless there are problems with the functionality)

Everything is running smoothly, so I'm good :-)
S4bb3
Donor
 
Posts: 41
Joined: Fri Apr 30, 2010 10:01 pm

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby ldominance » Wed Dec 15, 2010 3:29 am

Hello there!

I would like to say that plugin works perfectly and thank you for this.I have one question about videos per channel ...by default it is 30 when I change to 50 it is ok..but when I have 350 it stops working ..nothing loaded at all is there any limitations?

Thank you!
ldominance
n00b
 
Posts: 5
Joined: Wed Dec 15, 2010 3:24 am

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Wed Dec 15, 2010 4:04 am

Hello Idominance.

I haven't tested the script with very high numbers, but most likely it will take a long time to generate the cache file if you request a lot of videos per channel. Try to run this command by hand (logging in via telnet/ssh) and see how long it takes to generate the cache file:

Code: Select all
/usr/bin/php5-cgi /tmp/umsp-plugins/youtube-subscriptions/youtube-subscriptions-helper.php --insecure


More ideas for troubleshooting are here: http://wiki.wdlxtv.com/Youtube_subscriptions#Troubleshooting

Keep in mind that if you want to see 300 videos per channel and you have 30 channels, the script will generate around 9000+ entries in the cache file, and it will take time (and especially memory) for the UI plugin to show the items.

I am curious if you get any errors while running the command above by hand, and I could also use the output from
Code: Select all
ls -lh /tmp/youtube-subscriptions.cache


Of course, there could be a limitation in the Youtube API not allowing for getting more than X videos at a time, but I haven't seen anything about it.
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby ldominance » Wed Dec 15, 2010 10:37 am

Hello!

It works with 90 for me !I guess it is enough for me....how about upnp:album_art ?Is it possible to add it somehow so that I can see artwork not just umsp app. name?

Thank you for your help!
ldominance
n00b
 
Posts: 5
Joined: Wed Dec 15, 2010 3:24 am

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Thu Dec 16, 2010 1:10 am

If you are referring to adding a thumbnail to the My Youtube subscriptions entry in UMSP (if you are viewing in thumbnail mode), then you can use this setting to enable it (in /conf/umsp.php):
Code: Select all
// YT Subscriptions
$myMediaItems[] = array(   
   'id'         => 'umsp://plugins/youtube-subscriptions/youtube-subscriptions?t='.microtime(),   #Attribute of item
   'parentID'      => '0',                     #Attribute of item
   'restricted'   => '1',                     #Attribute of item
   'dc:creator'   => 'myCreator',
   'dc:title'      => 'YouTube Subscriptions',
   'dc:date'      => '2009-12-30',
   'upnp:author'   => 'myAuthor',
   'upnp:artist'   => 'myArtist',
   'upnp:album'   => 'myAlbum',
   'upnp:genre'   => 'myGenre',
   'upnp:length'   => '2:10:20',
   'desc'         => 'myDesc',
   'upnp:class'   => 'object.container',
   'upnp:album_art'=> '/osd/image/youtube_logo.png',
   'duration'      => 'myDur3',            #Attribute of res
   'size'         => 'mySize3',            #Attribute of res in bytes
   'bitrate'      => 'myBitr',            #Attribute of res
   'protocolInfo'   => '*:*:*:*',      #Attribute of res
   'resolution'   => 'myReso',            #Attribute of res
   'colorDepth'   => 'myColor',            #Attribute of res
);


This setting shows the youtube logo.

Unfortunately, when you drill down you still don't have thumbnails for the categories, but you have thumbnails for the actual movie clips. It is possible to change the script and add additional album art, but my question is - what should I display for each category? I've looked a bit around and not all channels have some standard logo that I can use. Some have a banner (that is way too long), but this banner also has other elements drawn (buttons, links, etc). If you can show me how to get some album art based on the channel name, I will gladly add it.

I think this should be dynamic - I don't think users should manually define which pictures should be shown for each category - it would be too tedious and nobody would use it.
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby ldominance » Thu Dec 16, 2010 3:45 am

Hello !

Thanks for your help !It works fine I just needed art for the actual application but now I have duplicated entries of Youtube subscription under video-UMSP and they differ by writing YOUTUBE-SUBSCRIPTION and YouTube Subscriptions as in your previous post ...the only way to get rid of one is to disable from webend through UMSP ...but then will these video update after a while and I get new videos?This thing happened after I updated apps through SVN.
ldominance
n00b
 
Posts: 5
Joined: Wed Dec 15, 2010 3:24 am

Re: Plugin: YouTube Subscriptions + new subscription videos   

Postby mad_ady » Thu Dec 16, 2010 3:52 am

Yes, you will get double entries if you activate the plugin from the web interface and umsp.php. For now, the only way to show some album art on the album is to define it in umsp.php, so you can disable the plugin from the web interface.

In order to get new videos, you will need to add an entry in your crontab to make the helper script run periodically (and update the cache).
Details here: http://wiki.wdlxtv.com/Youtube_subscriptions#Configuration
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 0 guests