syco / ACE.bundle

Plex plug-in that plays live streams using acestream engine
GNU General Public License v3.0
20 stars 7 forks source link

Can you add nflstreams and mmastreams #1

Closed bob1321 closed 5 years ago

bob1321 commented 6 years ago

Hello, thank you for your work!!

Can you add: https://www.reddit.com/r/nflstreams https://www.reddit.com/r/MMAStreams/

syco commented 6 years ago

I'll have a look, but html scraping is extremely unreliable. https://www.reddit.com/r/soccerstreams/ is maintained fairly well, but for example https://www.reddit.com/r/motorsportsstreams/ is really bad. So if there's any other website you can suggest I'll look into those as well.

bob1321 commented 6 years ago

Thank you!!

bvanwesten commented 5 years ago

/r/nflstreams seems to keep consistent with an @ symbol in each post. I've used this successfully to stream a game from there:

@route('/video/ace/redditlist') def RedditList(title): oc = ObjectContainer(title2 = title) oc.add( DirectoryObject( key = Callback(RedditList, title = title), title = 'Refresh' ) ) html = HTML.ElementFromURL('https://www.reddit.com/r/nflstreams/') for item in html.xpath('//a[.//*[contains(translate(text(), "ABCDEFGHJIKLMNOPQRSTUVWXYZ", "abcdefghjiklmnopqrstuvwxyz"), " @")]]'): title = (item.xpath('./h2/text()')[0]).decode('utf-8') href = item.get('href'); oc.add( DirectoryObject( key = Callback(RedditSubList, title = title, url = href), title = title ) ) return oc

bvanwesten commented 5 years ago

There is also a fork done by another user that adds CFB and NFL games.

syco commented 5 years ago

I've added the nfl streams using the " @" as you suggested, but I can't test it unless I catch the page when there's a match on.

bvanwesten commented 5 years ago

I've added the nfl streams using the " @" as you suggested, but I can't test it unless I catch the page when there's a match on.

I tested it with tonight's Thursday Night game, and it worked in Chrome 👍

bob1321 commented 5 years ago

Is it possible to add NBA too :) https://www.reddit.com/r/nbastreams/

Thank you for your excellent job

syco commented 5 years ago

I can't see any match in the nba page. I've added it with a generic 'vs' separator, please reopen the issue if it doesn't work as expected. Thanks.

bob1321 commented 5 years ago

in nbastreams its a @ for the separator.

Thank you!!