rasjani / plugin.video.reddit_tv

Reddit addon for KODI
GNU General Public License v2.0
12 stars 4 forks source link

Raw video file support #4

Open upandcumming opened 8 years ago

upandcumming commented 8 years ago

Hi,

Would it be a big job to add raw video support to the add-on? Like if I have a link on a subreddit, and it points to online .m3u8 file directly, would the add-on be able to play that link?

Thanks!

rasjani commented 8 years ago

Initially i was bit hesitant as it would have sent a sign to team kodi about this addon supporting piracy related sub reddits but now, i don't really care about that anymore i guess this is a good feature.

The issue about implementing this is that video links from reddit are fetched via known video hosting sites by providing their domain as a search string to reddit api. This means that i'd have to change this behaviour and fetch all links and then try to identify if the url itself has extension that could be interpreted into a video format. This would make parsing of the page slower. Alternatively, if reddit api supports search criteria to match portions of the url itself (mainly the path of the url), this would be really easy to implement..

Looking into this..

EDIT:

search parameter "url" in reddit api can be used to fetch links that match known video format extensions so this should be fairly easy to implement..