Thread Closed
[OLD/CLOSED] PseudoTV Live - Set-Top box solution
@Lunatixz - Just wanted to drop by and say congrats on a job well done. This looks amazing. I've since cut the cord and gotten rid of cable so I hadn't worked on this stuff in a while but you have taken it and really run with it!

By the way. I see CP and SB support on your TODO list. Did I ever send you the code for CouchPotato and SickBeard integration I did with the TVGuide mods I was working on? If not, let me know. They were isolated Python classes so it should port just fine to here. Actually, now that I think about it, I might have been committing to GitHub. I'll check, but anyway, great work!

EDIT

Yep, I did commit them to my TVGuide fork. Feel free to grab them for what you're doing. There is a class for couchpotato.py, sickbeard.py, tmdb.py and tvdb.py.

https://github.com/robnewton/script.tvgu...s/lib/apis

You can see there was a simple record via sickbeard implementation in the TVGuide EPG: https://github.com/robnewton/script.tvgu...de.py#L442

Code:
elif activeMenuOption['ActionId'] == ProgramAction.RECORD_EPISODE:
            sbAPI = SickBeard(ADDON.getSetting('sickbeard.baseurl'),ADDON.getSetting('sickbeard.apikey'))
            if sbAPI.isShowManaged(program.seriesId) == False:
                if sbAPI.addNewShow(program.seriesId) == True:
                    self.database.setShowAsSickBeardManaged(program.seriesId)
            for n in range(1, 10):
                if sbAPI.setEpisodeStatus(program.seriesId, program.seasonNumber, program.episodeNumber, 'wanted'):
                    self.database.setShowAsSickBeardManaged(program.seriesId)
                    break
                sleep(1)
            self.onRedrawEPG(self.channelIdx, self.viewStartDate)
            pass
        elif activeMenuOption['ActionId'] == ProgramAction.RECORD_SERIES:
            sbAPI = SickBeard(ADDON.getSetting('sickbeard.baseurl'),ADDON.getSetting('sickbeard.apikey'))
            if sbAPI.addNewShow(program.seriesId) == True:
                self.database.setShowAsSickBeardManaged(program.seriesId)
            self.onRedrawEPG(self.channelIdx, self.viewStartDate)
            pass
        elif activeMenuOption['ActionId'] == ProgramAction.RECORD_SERIES_W_OPTIONS:
            sbAPI = SickBeard(ADDON.getSetting('sickbeard.baseurl'),ADDON.getSetting('sickbeard.apikey'))
            if sbAPI.addNewShow(program.seriesId) == True:
                self.database.setShowAsSickBeardManaged(program.seriesId)
            self.onRedrawEPG(self.channelIdx, self.viewStartDate)
            pass
Integrating with XBMC through the JSON-RPC interface?

Try the JSON-RPC Browser

Image
  Thread Closed
 
Thread Rating:
  • 45 Vote(s) - 4.29 Average


Messages In This Thread
RE: [FORK] - by jcaa6479 - 2013-07-16, 23:25
Re: RE: - by bry - 2013-07-19, 08:42
Audio Muting Consistently ? - by gjwAudio - 2013-08-18, 08:25
PTVL Anomalies... - by gjwAudio - 2013-08-25, 01:15
Help Find The BAD Channel... - by gjwAudio - 2013-08-27, 02:12
RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - by angrycamel - 2013-09-07, 03:07
RE: - by DLWhittet - 2013-10-13, 02:48
Problems with Pseudo TV Live - by media-mogul - 2013-11-07, 22:45
Setup wifi cam stream - by rebelmaveric19 - 2013-12-12, 00:54
Black Screen - by Antisthenes - 2014-03-03, 02:06