Jump to content

DVBViewer Plugin


limited4

Recommended Posts

limited4

I searched all over the internet looking for a dedicated plugin for DVBViewer for Emby, but couldn't find anything, and I love both Emby and DVBViewer, so I thought i'd make my own. So first thing I did was went and got books and done some searches for tutorials, i've spent the past 2 weeks learning a bit of C#, and found its rather similar to PHP in syntax so even though i'm new to C#, with my experience in PHP i'm not finding understanding the code too problematic, but i'm having trouble understanding the Emby API so i was wondering if someone could help me there?

I was initially using the IPTV plugin and manually inputting (one at a time) channels into the plugins web UI, but that got rather tedious, so i made this:

https://github.com/shfatimi/DVBViewer-to-Emby-IPTV

small application that gets the xml data from the recording service of DVBViewer and structures and saves the output to the IPTV plugin, saves only 50 channels right now (otherwise the plugin seems to crash), but its much faster than manual input

but I was entirely happy with that as a solution, I want the EPG data as well, so I started work on this:

https://github.com/shfatimi/DVBViewerEmbyPlugin

using the IPTV source as a baseline, it pretty much does exactly the same thing as the above application, but its an independent plugin and completely automated, and it handles 100 channels as of right now compared to the 50 before, i pick which channels i want to show up by reordering my channel list within DVBViewer (I used to do this anyway because before emby I was using the UPNP server within recording service, but that lacked transcoding and wouldn't play on my chromecast).

Now this might sound like an ask, but i was wondering if someone could either help me, or point me in the right direction to understanding how the emby api works, or if someone knows of any form of documentation for the API (cant seem to find anything anywhere). I'm hoping to move the plugin from the IPTV baseline to LiveTV, and start importing EPG data for each channel as well.

Any help is much appreciated, Thanks :)
 

  • Like 2
Link to comment
Share on other sites

limited4

So this is taking a rather long time, but ive made a little progress, thought id update here

heres the source: https://github.com/shfatimi/EmbyTV-DVBViewer-Host

essentially this is similar to jose did with his hdhomerun plugin, its an added host definition for the EmbyTV plugin integrating DVBViewer Service, right now it populates the channel list with the name and logos, can play live tv, but no EPG support, still working on learning how that works :/

hope anyone who knows what theyre doing here can help me, without any documentation and my limited understand of C# i seem to be going rather slowly

but heres a screenshot aswell:

5564eab258926_Capture.png

Edited by limited4
Link to comment
Share on other sites

good stuff. couple questions. how does this differ from the dvb tv plugin that t.andre built? also, does dvb support the xml tv format, and if so, would it make more sense to work generically with that?

Link to comment
Share on other sites

limited4

from my understanding the plugin produced by t.andre is for DVBLink (made by DVBLogic), its a completely different backend, I used to use DVBLink, but after moving to DVBViewer (made by hackbart? i think?) and its recording service, i preferred it, unfortunately I couldn't find any DVBViewer plugins and there does seem to be demand for the plugin after some quick google searches on both the dvbviewer forum and here, so hence, i decided i would try making it myself (hopefully this'll be even remotely as good as what t.andre did for DVBLink)

as for your second question, im not sure if ti would be better but according to the DVBViewer wiki: http://en.dvbviewer.tv/wiki/Auto_Import_XMLTV & http://en.dvbviewer.tv/wiki/Recording_Service_API#add_epg

the DVBViewer recording service DOES support XMLTV

Also for your reference:

DVBLink: http://dvblogic.com/en/

DVBViewer: http://www.dvbviewer.com/en/index.php

thanks for your reply btw

Edited by limited4
Link to comment
Share on other sites

ok, thanks. didn't know about the two dvb's. i think i might look at adding support for xmltv into the server. then all you have to do is supply that xml and you're basically done. for the guide at least.

  • Like 2
Link to comment
Share on other sites

limited4

ah that would be pretty sweet, now i just need to figure out how to iron out some bugs

unlike hdhomerun, dvbviewer doesn't seem to like providing information on its tuners or devices, so in that reference im just telling it to give emby a bunch of blanks, but dont think thats very useful, hopefully ill figure something out... or maybe if someone else knows?

also for your reference: http://emby.media/community/index.php?/topic/15711-poll-which-live-tv-plugin-should-be-next/

Edited by limited4
Link to comment
Share on other sites

limited4

quick heads up for anyone compiling the latest version of the plugin, the plugin seems like it doesnt work but its probably just grabbing and caching all the channels like i noticed it was doing with mine,,, this happens when there's more than about 2-300 channels to serve

 

as you can see from the screen shot i have just over 2400 channels loaded into emby, and its working fine, maybe at somepoint ill integrate a loading feature through the dashboard thatll show it caching in the configuration page

screenshot: 5564fab846351_Capture.png

Link to comment
Share on other sites

limited4

ok so i got the plugin outputting epg data from the dvbviewer server to files in the epg folder as demonstrated in the screenshot

5565ec6f31b08_Capture.png

 

but the embytv epg loader doesn't seem to read the files :/ not sure whats going on there, any help?

 

[{"Id":"323","ChannelId":"2","Name":"Sporting Heroes: Sir Tom Finney","Overview":"The legendary sporting television smoothie Dickie Davies conducts an in-depth one-to-one interview with England football legend Sir Tom Finney.","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"338","ChannelId":"2","Name":"Racing News","Overview":"For those looking for form guides and the latest news from the track, take advantage of top tips from the definitive scoop on today's racing programme. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"477","ChannelId":"2","Name":"WWE Smackdown","Overview":"Michael Cole, Jerry 'The King' Lawler and Byron Saxton present Smackdown. Marquee matches include Dean Ambrose v Bray Wyatt. This programme contains flashing images. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"756","ChannelId":"2","Name":"Legends Of Darts: Dennis Priestley","Overview":"A celebration of some of the finest darts players of all time. Here the focus is on two-time world champion Dennis Priestley. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"534","ChannelId":"2","Name":"Racemax 2015","Overview":"This week, the eagerly awaited return of the United Kingdom's only round-the-clock race, the Dunlop 24 hours. The first report of all the thrills and spills comes from Silverstone. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"507","ChannelId":"2","Name":"WWE Late Night Smackdown Hlts","Overview":"Michael Cole, Jerry Lawler and Byron Saxton present Smackdown. Matches include Dean Ambrose v Bray Wyatt and Dolph Ziggler v King Barrett. This programme contains flashing images. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"601","ChannelId":"2","Name":"Volvo Ocean Race","Overview":"The 2014/15 Volvo Ocean Race. Starting in Alicante and finishing in Gothenburg, this round-the-world yacht race sees the teams cover 38,739 nautical miles. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"732","ChannelId":"2","Name":"Speedway Gold","Overview":"A chance to relive some classic speedway meetings: Hull Vikings take on Belle Vue Aces in 1999.","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"706","ChannelId":"2","Name":"Elite League Speedway","Overview":"Swindon Robins welcome Coventry Bees to the Abbey Stadium in Elite League Speedway. The Robins are aiming to secure their sixth successive home victory. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"13","ChannelId":"2","Name":"Racemax 2015","Overview":"This week, the eagerly awaited return of the United Kingdom's only round-the-clock race, the Dunlop 24 hours. The first report of all the thrills and spills comes from Silverstone. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"423","ChannelId":"2","Name":"Speedway Gold","Overview":"A chance to relive some classic speedway moments. Here is the British speedway final from 2013. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false},{"Id":"254","ChannelId":"2","Name":"Elite League Speedway","Overview":"Swindon Robins welcome Coventry Bees to the Abbey Stadium in Elite League Speedway. The Robins are aiming to secure their sixth successive home victory. Also in HD","StartDate":"2015-05-27T03:39:53.0654336Z","EndDate":"2015-05-27T04:39:53.0654336Z","Genres":[],"IsRepeat":false,"IsMovie":false,"IsSports":false,"IsSeries":false,"IsLive":false,"IsNews":false,"IsKids":false,"IsPremiere":false}]

so thats the output for a few hours of epg i got this morning, could someone confirm its structured correctly? does the epg loader use json or do i need to serialize as xml?

Link to comment
Share on other sites

limited4

lol sorry for making this so late :(

if you still have DVBViewer could you possibly test the plugin for me to see if there's any bugs or anything?

i'm currently working on the EPG guide and i think i might have something that works soon

Link to comment
Share on other sites

Lee

Might be 10weeks before I'm back home unfortunately... If you're still at it then I'll give it a go!

Link to comment
Share on other sites

Nikolaech

I searched all over the internet looking for a dedicated plugin for DVBViewer for Emby, but couldn't find anything, and I love both Emby and DVBViewer, so I thought i'd make my own. So first thing I did was went and got books and done some searches for tutorials, i've spent the past 2 weeks learning a bit of C#, and found its rather similar to PHP in syntax so even though i'm new to C#, with my experience in PHP i'm not finding understanding the code too problematic, but i'm having trouble understanding the Emby API so i was wondering if someone could help me there?

 

I was initially using the IPTV plugin and manually inputting (one at a time) channels into the plugins web UI, but that got rather tedious, so i made this:

 

https://github.com/shfatimi/DVBViewer-to-Emby-IPTV

 

small application that gets the xml data from the recording service of DVBViewer and structures and saves the output to the IPTV plugin, saves only 50 channels right now (otherwise the plugin seems to crash), but its much faster than manual input

 

but I was entirely happy with that as a solution, I want the EPG data as well, so I started work on this:

 

https://github.com/shfatimi/DVBViewerEmbyPlugin

 

using the IPTV source as a baseline, it pretty much does exactly the same thing as the above application, but its an independent plugin and completely automated, and it handles 100 channels as of right now compared to the 50 before, i pick which channels i want to show up by reordering my channel list within DVBViewer (I used to do this anyway because before emby I was using the UPNP server within recording service, but that lacked transcoding and wouldn't play on my chromecast).

 

Now this might sound like an ask, but i was wondering if someone could either help me, or point me in the right direction to understanding how the emby api works, or if someone knows of any form of documentation for the API (cant seem to find anything anywhere). I'm hoping to move the plugin from the IPTV baseline to LiveTV, and start importing EPG data for each channel as well.

 

Any help is much appreciated, Thanks :)

 

 

Hello. Describe the installation process

  • Like 1
Link to comment
Share on other sites

limited4

compile from source, put dll file in plugin folder: %APPDATA%\MediaBrowser-Server\plugins

use this source: https://github.com/shfatimi/EmbyTV-DVBViewer-Host

 

its not really ready for any form of release so i didn't think it was necessary to describe installation, sorry

 

still having trouble with the EPG since i currently have no clue as to how or where emby gets its EPG data, or how to feed it data... tried using the file method by getting the host definition to feed epg data to xml files but that doesn't seem to be working, so this'll probably take a while to figure out

Edited by limited4
Link to comment
Share on other sites

still having trouble with the EPG since i currently have no clue as to how or where emby gets its EPG data, or how to feed it data... tried using the file method by getting the host definition to feed epg data to xml files but that doesn't seem to be working, so this'll probably take a while to figure out

 

I believe you implement GetProgramsAsync of ILiveTVService.

  • Like 1
Link to comment
Share on other sites

limited4

I believe you implement GetProgramsAsync of ILiveTVService.

Thank you so much!!!

 

this is what ive got down so far:

 

55693f3da65e2_Capture.png

 

as you can see, the plugin is now grabbing epg data from the dvbviewer service and emby parses it properly, im not committing this yet as its a pretty dodgy way of doing it so just going to work on it for a bit, but thank you so much ebr, can finally make progress

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
dabrain

Yesssss!!!

 

I was looking for a plugin like this.

 

Are you still developing it? I would really like to test it and enjoy, but I really don't know how to compile.

 

good work!

Link to comment
Share on other sites

  • 2 weeks later...
superbillen

wow this is amazing news, ive been looking for these two to melt together

 

I am so much looking forward testing this. could you provide with the links for the beta.

The old links no longer works :(

Edited by superbillen
Link to comment
Share on other sites

  • 1 month later...
e123enitan

@limited -Great, I will suggest you create a new thread under Live TV, It was by a coincident that I found this topic, I did event realised a plugin is in WIP, anyway good to know. Anyway by moving the subject into LiveTv section, there I think would attract more interesting DVBViewer users. As for me I am just in the process of implementing DVBViewer once I have sorted it out I can jump into testing Emby/DVBViewer Plugin sory I couldn't be of help at this moment.

Edited by e123enitan
Link to comment
Share on other sites

  • 8 months later...

if you want the compiled version then just install it from the server dashboard

Link to comment
Share on other sites

Zeze21

The DVBViewer Plugin? I can't find it - but maybe I am blind.... :(

Edit - just checked again:

All i can see is DVBLink TVHeadend VU+ Mediaportal NextPVR ServerWMC but no DVBViewer :/

Edited by Zeze21
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...