Page 1 of 1

Hypem

PostPosted: Thu Jan 05, 2012 8:50 pm
by zip
Plugin for hypem.com feeds. Requires at least Serviio 0.6.1.

Added 5/1/2012
Updated cookie 21/07/2012

Re: Hypem

PostPosted: Sat Jul 14, 2012 12:40 pm
by ytrich1
Hi there, I'm having a little trouble with this. I'm trying to see my hype machine loved tracks on my devices but list always shows up empty. Have copied Hypem.groovy to /Applications/serviio-0.6.2-osx/Serviio.app/Contents/Resources/Java/plugins but it doesn't seem to be reading the posts... Any help greatly appreciated. Thanks.

Re: Hypem

PostPosted: Tue Jul 17, 2012 12:21 pm
by zip
what is the feed URL you are using?

Re: Hypem

PostPosted: Wed Jul 18, 2012 7:04 pm
by ytrich1
I'm using: http://hypem.com/feed/loved/ytrich1/1/feed.xml

Ytrich1 being my username for hypemachine.

Re: Hypem

PostPosted: Fri Jul 20, 2012 7:16 pm
by ytrich1
Is it a problem with the feed address then? Seems right from the guides on the hype machine site...

Re: Hypem

PostPosted: Sat Jul 21, 2012 10:55 am
by zip
Two things - first the auth cookie has expired, I updated the plugin with a new one. Also the feeds themselves don't seem to be working ATM, returns empty document for me - but they might fix it soon.

Re: Hypem

PostPosted: Mon Jul 23, 2012 8:19 pm
by ytrich1
OK, thanks. Still having no joy though... Have downloaded and reinstalled the plugin. If i paste the feed address into a web browser i get a page full of tunes but still an empty list on my devices reading from Serviio. I've tried all three but should it be set to Online RSS/Atom feed, Live Stream or Web Resource? If i paste another (working) feed into a web browser (http://www.fluxblog.org/feed), the list actually has links to .mp3 files within it and the hype machine one doesn't. Is that a clue or just a different type of feed? Thanks again.

Re: Hypem

PostPosted: Mon Jul 23, 2012 11:45 pm
by zip
It's RSS feed.

Your other link doesn't need plugin, it already includes mp3 file links so it should just work.

Re: Hypem

PostPosted: Tue Aug 28, 2012 5:10 am
by ttguy
So I was looking at this plugin yesterday and. It is broken. Looks like the format of the urls on the web has changed. I almost fixed it but then my ip adress got banned for suspicious activity. It implied the ban was 72hrs. So I might get to fix this in a few days

edit: Just realised that the version of this plugin I was looking at dates from the all plugin pack from 17 June 2012. And I note that we have a new all plugin pack in which this plugin has been changed (24 July 2012). So I can not say if the new plugin works or not. Just that the one in the old 17 June 2012 did not.

Re: Hypem

PostPosted: Tue Aug 28, 2012 12:08 pm
by ttguy
So I checked the version in the latest all plugins pack and it only differs from the version I was looking at yesterday by the cookie that is set in it.

So it is still my contention that this plugin is broken due to changes in URL formats.

The URLs have "track" in them rather than "item"
http://hypem.com/track/1pbh9/Lana+Del+R ... io+Edit%29

So def matcher = linkUrl =~ '^.+/item/(\\w+)/'

becomes

def matcher = linkUrl =~ '^.+/track/(\\w+)/'

And there are a few other changes to make.

Like I said. I had almost fixed this until the web page said to me.

404
Possible Reasons
• You have attempted to access a private area.
• You have been using automated tools to access the Hype Machine.
• Your host has made a large number of requests, utilized a large amount of bandwidth, or engaged in other types of disruptive activity in the past 72 hours.



So I think I am banned for 72 hours

Re: Hypem

PostPosted: Tue Sep 04, 2012 3:06 pm
by ttguy
I present a new version of this plugin
* ver 3.0 ttguy
This version is based on version with the file timestamped 24 Jul 2012 as found in the all plugins pack for serviio 1.0.1 Updated (27/08/12)
Changes: 3.0 URLs changed their structure as did content info JSON. Had to fix some regular expression matching strings.
Uses org.ccil.cowan.tagsoup.Parser to parse some html now.
Have noticed that each feed item could have more than one audio file to return. eg http://hypem.com/track/1pfbz/Alison+Val ... s+Remix%29
But I am not sure the plugin archtecture can handle that. This plugin returns the first audio it finds for each feed item