![]() |
|
[RELEASE] NHL Gamecenter Addon - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (/forumdisplay.php?fid=154) +---- Thread: [RELEASE] NHL Gamecenter Addon (/showthread.php?tid=118853) |
- 91dxcrx - 2012-02-29 06:28 So I can replace PlaylistFactory.cpp with that new one to get this to work again? If so where do I find that file? Thanks - apok - 2012-02-29 06:39 https://github.com/cptspiff/xbmc/blob/27814f16d1612d2d267134d990e8da2e0f65278e/xbmc/playlists/PlayListFactory.cpp is the modified version. micahg, are these the only changes you made to yours for it to work? - 91dxcrx - 2012-02-29 06:45 apok Wrote:https://github.com/cptspiff/xbmc/blob/27814f16d1612d2d267134d990e8da2e0f65278e/xbmc/playlists/PlayListFactory.cpp is the modified version. micahg, are these the only changes you made to yours for it to work? I don't have any experience with github, can I download that file and replace the one in my install manually? - apok - 2012-02-29 06:54 91dxcrx Wrote:I don't have any experience with github, can I download that file and replace the one in my install manually? You would need to recompile your xbmc binary from source to replace it. The lines prefixed with > show where code was modified for my patched build. Code: apokalypse@destruction:~/tmp/xbmc$ diff ~/tmp/xbmc/playlists/PlayListFactory.cpp ~/xbmc-patched/xbmc/playlists/PlayListFactory.cpp- apok - 2012-02-29 07:06 It's worth mentioning that seeking doesn't appear to work. Not sure if this is expected / differs from previous behavior. - 91dxcrx - 2012-02-29 17:17 apok Wrote:You would need to recompile your xbmc binary from source to replace it. The lines prefixed with > show where code was modified for my patched build. Reading the wiki about recompiling builds, but I'm having a hard time grasping it. :o - apok - 2012-03-02 19:10 Carb0, I think I have a way of getting NHL live games working in the interim until HLS support is built into xbmc without having to roll your own xbmc binary. A couple tweaks to the gamecenter.py with code from divingmule's MLBMC plugin (nexdef mod more specifically), and a mlbhls stream downloader that doesn't decrypt the stream (MLB streams are AES-128 encrypted). If you guys like, I can throw this up somewhere after I test it tonight. - Carb0 - 2012-03-02 19:22 apok Wrote:Carb0, I think I have a way of getting NHL live games working in the interim until HLS support is built into xbmc without having to roll your own xbmc binary. Cool. I hope it works. - apok - 2012-03-03 04:17 K, I think I'm satisfied with this. http://www.2shared.com/file/1Tdn1jkD/mlbhls-nhltar.html http://www.2shared.com/file/e9Rw4J89/pluginvideonhl-gamecenter-mlbt.html extract plugin.video.nhl-gamecenter-mlb.tar.gz to your addons directory as you would a normal script. extract mlbhls-nhl.tar.gz somewhere and compile it (you need the libraries that are included below, i.e. config, curl, crypto and math). apokalypse@destruction:~/temp$ cd mlbhls-nhl apokalypse@destruction:~/temp/mlbhls-nhl$ make gcc -O2 mlb.c utils.c output.c -lm -lcurl -lcrypto -lconfig -o mlbhls mlb.c: In function 'mlb_refresh_playlists_thread': mlb.c:345: warning: format '%lld' expects type 'long long int', but argument 2 has type 'size_t' apokalypse@destruction:~/temp/mlbhls-nhl$ ./mlbhls Usage: ./mlbhls [options] -B <base64> -o <output_file> Required: -B, --base64 base64 url -o, --ouput File to output to Options: -V, --verbose Verbose output (big V, use multiple times to increase verbosity) then, as root, copy 'mlbhls' to /usr/bin or somewhere in your $PATH. Changes Two different links show up for Home and Away feeds. You can stream the game in it's entirety '(start)', or by selecting the '(stream)'. The start will skip the first 50 minutes worth of video, as most streams start 50-60 minutes before the broadcast feed kicks in. I'd only recommend streaming from the start if you are going to tune in right as the game is about to start. If you select stream, it'll buffer the last 20 seconds (2 URLs) worth of video. This is hardcoded in the addLinkExt() calls with the '2' at the end. It'll sleep for about 5 seconds before launching the player, so don't freak out. It's just giving the mlbhls program enough time to download from the streams and write to disk. The download file is written to /tmp/output, and cleaned up afterwards. There's also a log for mlbhls written to /tmp/hls.log. - Carb0 - 2012-03-03 13:23 Thank you. Does it only work on linux? What did you change in gamecenter.py? I've seen you added "def LAUNCHEXTERNAL(url,startFrom)" and "def addLinkExt(name,url,title,iconimage,startFrom)" and changed a few lines in "def LIVELINKS(url,name)". Anything else? Do you want to keep it as a seperate version of the addon? Or should I add the changes to my next version? Edit: There is a new version available in my repo (WITHOUT apok's modifications). You can download the repo here. 0.3.1 - Fixed logo download 0.3.0 - Added team logos - Added thumbnails for classic games - Added option to display team names abbreviated - Added addon fanart - Changed addon icon - Changed video titles - Faster scraping of classic games Please note that live games are still not working. If you want to watch live games please use apok's version. |