FAQ  •  Register  •  Login

YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

<<

grolschie

DLNA master

Posts: 695

Joined: Tue Jun 28, 2011 4:02 am

Post Sat Jun 16, 2012 2:05 am

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Hello.

Is there any chance that you could possibly add leading zeros to the numbers please? i.e. 001, 002,..,010, 011,..,099, 100, etc. The XBox sorts these into numerical order, so I see videos out of order i.e. 1, 10-19, 2, 20-29, 3, ....

Also, I see some html special codes e.g. &amp; in the titles of the videos.

Thanks.
Using Serviio on Debian "Wheezy" with Xbox 360, Sony BDP-S370 & Panasonic E6.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sat Jun 16, 2012 9:36 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

grolschie wrote:Hello.

Is there any chance that you could possibly add leading zeros to the numbers please? i.e. 001, 002,..,010, 011,..,099, 100, etc. The XBox sorts these into numerical order, so I see videos out of order i.e. 1, 10-19, 2, 20-29, 3, ....

Also, I see some html special codes e.g. &amp; in the titles of the videos.

Thanks.

Best to keep it two digits if thats the case, not many users will go to the last 100
Thanks for the updates jhb50!
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

grolschie

DLNA master

Posts: 695

Joined: Tue Jun 28, 2011 4:02 am

Post Sat Jun 16, 2012 11:06 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

If someone retrieves all 100 items (i.e. max feeds = Unlimited), then they will see 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 100, 11, 12...

But that's cool. I won't be retrieving that many items. I wonder if it's possible to set the number of preceding 0's depending on the max number of items to retrieve i.e. if 10, 20, 30, 40 or 50, add one 0. If "Unlimited", add two 0's?
Using Serviio on Debian "Wheezy" with Xbox 360, Sony BDP-S370 & Panasonic E6.
<<

TheOne.PC

Serviio lover

Posts: 77

Joined: Tue Jan 10, 2012 11:43 am

Post Sun Jun 17, 2012 11:34 am

YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

It will be great if it will be possible to create a top100 filtering by genre. Like "dance", "rock", "metal", "pop"... =)
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Jun 17, 2012 12:31 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Is there any chance that you could possibly add leading zeros to the numbers please? i.e. 001, 002,..,010, 011,..,099, 100, etc. The XBox sorts these into numerical order, so I see videos out of order i.e. 1, 10-19, 2, 20-29, 3, ....


Per Microsoft
Q20: How do the "Sort by type" and "Sort by title" options work when I browse my own generated video content?

A20: The "Sort by type" option is the typical Windows Explorer view that a computer would use to show your files. It will first alphabetically sort your folders and then alphabetically sort your files. The "Sort by title" option allows you to sort all folders and files alongside each other. Both of these sort options are persistent and linked to your profile so that you do not need to set them every time. See question 21 for more information.

When I use Windows explorer, [1],[2],[10],[20],[100] sort correctly in that order without needing leading zeros. Same with 1,2,10,20,100, as they should.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Jun 17, 2012 3:16 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

TheOne.PC wrote:It will be great if it will be possible to create a top100 filtering by genre. Like "dance", "rock", "metal", "pop"... =)

Version 7 now has a genre option. See post 1. Note that the number of videos will vary from none to 100 based on the genre. Also fixed special character display.
<<

grolschie

DLNA master

Posts: 695

Joined: Tue Jun 28, 2011 4:02 am

Post Sun Jun 17, 2012 9:25 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

jhb50 wrote:
Is there any chance that you could possibly add leading zeros to the numbers please? i.e. 001, 002,..,010, 011,..,099, 100, etc. The XBox sorts these into numerical order, so I see videos out of order i.e. 1, 10-19, 2, 20-29, 3, ....


Per Microsoft
Q20: How do the "Sort by type" and "Sort by title" options work when I browse my own generated video content?

A20: The "Sort by type" option is the typical Windows Explorer view that a computer would use to show your files. It will first alphabetically sort your folders and then alphabetically sort your files. The "Sort by title" option allows you to sort all folders and files alongside each other. Both of these sort options are persistent and linked to your profile so that you do not need to set them every time. See question 21 for more information.

When I use Windows explorer, [1],[2],[10],[20],[100] sort correctly in that order without needing leading zeros. Same with 1,2,10,20,100, as they should.


Well, regardless, the sort order is still messed up for Xbox all the same. Just sayin'.
Using Serviio on Debian "Wheezy" with Xbox 360, Sony BDP-S370 & Panasonic E6.
<<

seahorse

Serviio newbie

Posts: 11

Joined: Sat Jun 16, 2012 12:52 pm

Post Mon Jun 18, 2012 1:49 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Thanks for the great plugin.
Works as a charm on my Samsung D5000.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Jun 19, 2012 1:16 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Version 8 - Added nform=xbox option to pad title numbers to 3 digits for correct ordering on xbox
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Tue Jun 19, 2012 7:09 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

This groovy keeps evolving! :)
Excellent work jhb50
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

grolschie

DLNA master

Posts: 695

Joined: Tue Jun 28, 2011 4:02 am

Post Tue Jun 19, 2012 9:30 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

jhb50 wrote:Version 8 - Added nform=xbox option to pad title numbers to 3 digits for correct ordering on xbox


Brilliant! Thanks heaps for this jhb50!

One minor issue is the displaying/handing of other alphabets/accents e.g. "Michel Teló - Ai Se Eu Te Pego - Oficial (Assim você me mata)" which appears in the log with:
  Code:
012-06-20 09:21:19,937 DEBUG [FeedItemUrlExtractor] YouTubeTop100: Starting extraction of url for item: [008] Michel Teló - Ai Se Eu Te Pego - Oficial (Assim você me mata)
2012-06-20 09:21:20,766 DEBUG [FeedItemUrlExtractor] YouTubeTop100: Getting item: [008] Michel Teló - Ai Se Eu Te Pego - Oficial (Assim você me mata)


But this is a minor thing. Thanks heaps for your hard work.
Using Serviio on Debian "Wheezy" with Xbox 360, Sony BDP-S370 & Panasonic E6.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Jun 25, 2012 5:16 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Version 9 corrects the display of extended characters as reported in previous post. See post 1.
<<

grolschie

DLNA master

Posts: 695

Joined: Tue Jun 28, 2011 4:02 am

Post Mon Jun 25, 2012 7:59 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Thank you. :D
Using Serviio on Debian "Wheezy" with Xbox 360, Sony BDP-S370 & Panasonic E6.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Aug 03, 2012 8:25 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

By far this has become my most used plugin for Serviio! :D

Not sure this would be possible, since the quality can be over-ridden by using res=XXX
Can the 'Max number of feeds to retrieve' also be over-ridden?
My default in Serviio is 30, but for this plugin only i want it to be 50
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Aug 03, 2012 9:35 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

No, a groovy can limit to less than the console value but not above it.
Just create successive feeds using the start value and they will play consecutively. 1-30 31-60 61-90 91-100
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Aug 03, 2012 9:49 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

jhb50 wrote:Just create successive feeds using the start value and they will play consecutively. 1-30 31-60 61-90 91-100

I have done it like this but theres too many to list, hoping your proposal of folder options to come very soon to fix having too many online feeds, then it can be neatly organised in folders
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

TheOne.PC

Serviio lover

Posts: 77

Joined: Tue Jan 10, 2012 11:43 am

Post Sun Aug 05, 2012 8:06 am

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

After upgrading to 1.0 i'm having problems
  Code:
2012-08-04 22:54:04,370 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (YouTubeTop100): The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:58)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:171)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
   at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:56)
   ... 4 more
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Aug 05, 2012 11:24 am

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

Verify you are using V9 of the plugin (see comments at start of the groovy)and post more of the log so I can see where the delay is occuring when parsing the feed.
<<

TheOne.PC

Serviio lover

Posts: 77

Joined: Tue Jan 10, 2012 11:43 am

Post Sun Aug 05, 2012 3:33 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

jhb50 wrote:Verify you are using V9 of the plugin (see comments at start of the groovy)and post more of the log so I can see where the delay is occuring when parsing the feed.


I'm using the V9 of the plugin ;)
The delay starts immediatly when searching for feed updates

  Code:
2012-08-05 17:25:44,817 INFO  [FeedUpdaterThread] Started looking for information about online resources
2012-08-05 17:25:44,847 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2012-08-05 17:28:33,286 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (YouTubeTop100): The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:58)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:171)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
   at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:56)
   ... 4 more
2012-08-05 17:29:03,293 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (YouTubeTop100): The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:58)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:171)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
   at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:56)
   ... 4 more
2012-08-05 17:29:33,304 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Unexpected error while invoking plugin (YouTubeTop100): The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:58)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:171)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:186)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:159)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:96)
Caused by: java.lang.RuntimeException: The operation took more than 30000 ms and has been cancelled.
   at org.serviio.library.online.PluginExecutionProcessor.execute(PluginExecutionProcessor.java:64)
   at org.serviio.library.online.WebResourceUrlExtractor.parseWebResource(WebResourceUrlExtractor.java:29)
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:56)
   ... 4 more
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Aug 05, 2012 5:28 pm

Re: YOUTUBE TOP 100 MUSIC VIDEOS WEB RESOURCE

V10 released to fix timeout with Serviio 1.0
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 24 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.