[REQUEST] A general plugin that launches firefox for live TV like JUSTIN.TV..
#16
divingmule Wrote:
Code:
def startFirefox(url):
        target = '"C:\FireFox-XBMC\firefox.exe" -XBMC '+url
        print '#######  '+target
        xbmc.executebuiltin( "System.Exec(%s)" %target )

My string prints this:
Code:
#######  "C:\FireFox-XBMC irefox.exe" -XBMC http://www.justin.tv/twit

Any ideas?

You probably have to escape those "\"s
try target = '"C:\\FireFox-XBMC\\firefox.exe" -XBMC '+url

although I'm not a python dude this is how it's done in pretty much every language Smile
Reply
#17
Well after a bunch of dumbass Smile this seems to work simple enough.

default.py

change the: target = line to match your install. the -P "xbmc" is a seperate profile that I made, you should leave it out unless you have a profile setup.
Reply
#18
@Vrok, Just installed greasemonkey and your script and it's working nicely!

Can I take a look at one of your ustream pipes?

Edit: just noticed the link above
Reply
#19
divingmule Wrote:Can I take a look at one of your ustream pipes?

Here is my ustream pipe: http://pipes.yahoo.com/pipes/pipe.info?_...b62f740f0a

Also here is a jtv revised pipe that you can split per justin.tv category and works better this way : http://pipes.yahoo.com/pipes/pipe.info?_...0162ab5337

I'm trying to make your plugin work but I can't make xbmc execut a path with spaces in it :/
Reply
#20
Vrok Wrote:I'm trying to make your plugin work but I can't make xbmc execut a path with spaces in it :/

See if this helps. I added an addon-setting to browse to your firefox.exe.

plugin.video.pipes.zip
Reply
#21
Windows cannot find c:\Progra Sad
Reply
#22
@divingmule This is awesome! I just bound alt-f4 to my remote and I can finally watch live TV with xbmc Smile

But some of my pipes like ustream don't work
Reply
#23
Awesome, sounds like it's working for you.

Yeah, I was just looking at the ustream pipe. I'll have to make another scraper for it.
Reply
#24
divingmule Wrote:I'll have to make another scraper for it.


No just tell me what fields do you require so that I change all my pipes
Reply
#25
Fixed everything, here you go:
Code:
        addDir('Justin.TV Gaming','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fgaming&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Entertainment','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fentertainment&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Featured','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Ffeatured&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Mobile','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fmobile&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Social','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fsocial&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Sports','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fsports&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV News','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fnews&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Animals','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fanimals&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV News','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fscience_tech&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')
        addDir('Justin.TV Animals','http://pipes.yahoo.com/pipes/pipe.run?JustinTV=http%3A%2F%2Fwww.justin.tv%2Fdirectory%2Fother&_id=1e08a1deb5004f7ecaa0976bdc86c7e9&_render=json',1,'')        
        addDir('uStream','http://pipes.yahoo.com/pipes/pipe.run?_id=6eee52f0c0dcd4f43511846e20bdb99f&_render=json',1,'')
        addDir('own3d','http://pipes.yahoo.com/pipes/pipe.run?_id=0651a3f815c29940d521d8946b930e22&_render=json',1,'')
Reply
#26
Here is the latest - plugin.video.pipes.zip

added:
The directory's from the above post.
A bit of error handling.
The ability to type in a url.
Some icons to spiff it up a bit.
Reply
#27
divingmule Wrote:Here is the latest

Changed a bit of your code: http://dl.dropbox.com/u/771890/default.py

Fixed my pipe labels which I wrote wrong and made it so each item doesn't open as a folder when firefox is run

BTW It still doesn't allow firefox to run from a path with spaces, had to move it to one without spaces

Also changed my firefox script a bit so that it automatically bypasses the age validation in justin.tv and edited first post about it
Reply
#28
Btw

xbmc y u no integrated firefox?
Reply
#29
Reading on the forums that question seems to open up a can of worms, basically on what a 'media center' is defined as.

As for web browsing, I think this one is a good one to use http://kylo.tv/ in a media center. (one problem with it though is that there is no Linux version, seems odd since it is built upon mozilla)


Major
Reply
#30
http://dl.dropbox.com/u/771890/default.py

Added livestream and zero punctuation although the second one requires a mouse click since it doesn't autoplay and messes up with firefox focus

also fixed some bugs

Need some help from you guys. Do you know of any way to hide the mouse cursor on firefox with an addon / external program?

Also is there any addon that allows me to emulate a mouse click inside a flash object?
Reply

Logout Mark Read Team Forum Stats Members Help
[REQUEST] A general plugin that launches firefox for live TV like JUSTIN.TV..0