Adult channel collection for XOT-UZG
#46
Eh, I'm not really messing with much in the way of python; just Regex, which is less to learn. Wink

But thanks!

The ones that aren't working on PS, are they working if you go to the actual site?
I played some RedTube videos today, right after I fixed it, and they seemed to play alright. Streaming FLV's doesn't seem to work perfectly. Seems like it doesn't cache well or something, regardless of what player XBMC is using.
Reply
#47
squid Wrote:dude - it seems to me like you're doing fine with python.... it's listing the files as before now.

having trouble with playing some of the files though - only some work on PS and nearly all of the ones on RedTube only last for 10 seconds... not sure if it's just bad karma though - will try again later.
It may be something to do with your cache settings. You need to be playing through MPlayer for it to use the cache. For some reason the DVD player does not seem to cache. Failing that try downloading the videos. I have put the download feature from PS into Redtube and also changed the default player to Mplayer. Should make it better for those of us, like me, who have a slow internet speed.

The code changes for Redtube (open chn_redtube.py in notepad) are:

Change
Code:
self.contextMenuEnabled = False

To
Code:
self.contextMenuEnabled = True

Then add the following code at the bottom
Code:
#==============================================================================
    def DownloadEpisode(self, item):
        #check if data is already present and if video or folder
        if item.type == 'folder':
            logFile.warning("Cannot download a folder")
        elif item.type == 'video':
            if item.complete == False:
                logFile.info("Fetching MediaUrl for VideoItem")
                item = self.UpdateVideoItem(item)
            _destFilename = item.name + ".divx"
            if item.mediaurl=="":
                logFile.error("Cannot determine mediaurl")
                return item
            logFile.info("Going to download %s", _destFilename)
            _downLoader = uriHandler.Download(item.mediaurl, _destFilename)
            item.downloaded = True
            return item
        else:
            logFile.warning('Error determining folder/video type of selected item');
            
    def PlayVideoItem(self, item, player="mplayer"):
        """ NOT USER EDITABLE
        Accepts an item with or without MediaUrl and playback the item. If no
        MediaUrl is present, one will be retrieved.
        """
        logFile.info("Starting Video Playback using the %s", player)
        try:
            logFile.info('opening '+ item.mediaurl)
            if player=="mplayer":
                logFile.info("Playing using MPlayer")
                xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(item.mediaurl)
            else:
                xbmc.Player().play(item.mediaurl)
        except:
            dialog = xbmcgui.Dialog()
            dialog.ok(config.appName,"Kan dit programma niet afspelen.")
            logFile.critical("Could not playback the url", exc_info=True)

To change PS default player to Mplayer start at the line
Code:
def PlayVideoItem(self, item, player="dvdplayer"):

and change dvdplayer to mplayer all the way down keeping the same case.

May I just emphasise that none of the code is my own, it is rootyb's.
Reply
#48
And 99% of mine is just hacked-up code from Bas' scripts.

But isn't that what most programming is, anyway? Wink
Reply
#49
Redtube & PS updated to work with 2.7.0b6, which Bas appears to have released today.

http://ownedgear.com/XOT-TSV.zip
Reply
#50
rootyb Wrote:Redtube & PS updated to work with 2.7.0b6, which Bas appears to have released today.

http://ownedgear.com/XOT-TSV.zip
True, just posted it. But no big changes.
Reply
#51
Yeah, just had to change the "maxXotVersion"
Reply
#52
Hmmm... Maybe instead of having to edit each channel every time, there could be two concurrent version numberings. One for all updates, and one for changes to video processing/page parsing (or anything else that would require channels to be updated). Say, "XotVersion" and "Chn_ClassVersion" or whatever.

That way, channels could be setup with a maxChn_ClassVersion (instead of maxXotVersion), and would only stop working if there are changes that might directly affect their usability.
Reply
#53
Hello,

I run uzg version 2.7.0 FINAL.
I have upload the pronshare and redtube to the channel directory but they dont be displayed into uzg.

Is there any update for version 2.7.0 FINAL?
Reply
#54
snaaps50 Wrote:Hello,

I run uzg version 2.7.0 FINAL.
I have upload the pronshare and redtube to the channel directory but they dont be displayed into uzg.

Is there any update for version 2.7.0 FINAL?
Because the channels need to be updated for 2.7.0 FINAL. There were some changes.

And this time, not only the maxXOTVersion.
Reply
#55
Lightbulb 
How about converting all these adult channels to plugins? Cool

Good idea, bad idea, too hard/complicated? Huh
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#56
Gamester17 Wrote:How about converting all these adult channels to plugins? Cool

Good idea, bad idea, too hard/complicated? Huh

It could be done. I will look into making the Plugin option part of the XOT-Framework (http://code.google.com/p/xot-uzg/).
Reply
#57
Bumped max version on PS & Redtube. Also added channel descriptions for each.

Will look at the other changes in 2.7.0Final, but both of these should work at the moment.

http://ownedgear.com/XOT-TSV.zip
Reply
#58
dan_f14 Wrote:It may be something to do with your cache settings. You need to be playing through MPlayer for it to use the cache. For some reason the DVD player does not seem to cache. Failing that try downloading the videos. I have put the download feature from PS into Redtube and also changed the default player to Mplayer. Should make it better for those of us, like me, who have a slow internet speed.

The code changes for Redtube (open chn_redtube.py in notepad) are:

Change
Code:
self.contextMenuEnabled = False

To
Code:
self.contextMenuEnabled = True

Then add the following code at the bottom
Code:
#==============================================================================
    def DownloadEpisode(self, item):
        #check if data is already present and if video or folder
        if item.type == 'folder':
            logFile.warning("Cannot download a folder")
        elif item.type == 'video':
            if item.complete == False:
                logFile.info("Fetching MediaUrl for VideoItem")
                item = self.UpdateVideoItem(item)
            _destFilename = item.name + ".divx"
            if item.mediaurl=="":
                logFile.error("Cannot determine mediaurl")
                return item
            logFile.info("Going to download %s", _destFilename)
            _downLoader = uriHandler.Download(item.mediaurl, _destFilename)
            item.downloaded = True
            return item
        else:
            logFile.warning('Error determining folder/video type of selected item');
            
    def PlayVideoItem(self, item, player="mplayer"):
        """ NOT USER EDITABLE
        Accepts an item with or without MediaUrl and playback the item. If no
        MediaUrl is present, one will be retrieved.
        """
        logFile.info("Starting Video Playback using the %s", player)
        try:
            logFile.info('opening '+ item.mediaurl)
            if player=="mplayer":
                logFile.info("Playing using MPlayer")
                xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(item.mediaurl)
            else:
                xbmc.Player().play(item.mediaurl)
        except:
            dialog = xbmcgui.Dialog()
            dialog.ok(config.appName,"Kan dit programma niet afspelen.")
            logFile.critical("Could not playback the url", exc_info=True)

To change PS default player to Mplayer start at the line
Code:
def PlayVideoItem(self, item, player="dvdplayer"):

and change dvdplayer to mplayer all the way down keeping the same case.

May I just emphasise that none of the code is my own, it is rootyb's.

Just made the changes to redtube so I can d/l as streaming playback is very choppy, but it just hangs is this cos i've upgraded to 2.7 final?
Reply
#59
I am a little confused myself. I haven't tried the download feature on redtube for a while and you are quite correct, when trying to use the contextmenu in redtube it freezes. I find this strange as all I did was copy the download code from pronshare (which works) and stuck it in redtube. I wonder if rootyb could shed any light on the situation.
Reply
#60
Is this script working?

Sorry to be so newb, but I am trying to study up on scripting.
I loaded the script in my XBMC scripts folder and it does show the script name, but when I select it nothing happens.

What steps should I use to troubleshoot this?
Reply

Logout Mark Read Team Forum Stats Members Help
Adult channel collection for XOT-UZG0