- newatv2user - 2012-01-30 18:05
@divingmule: It seems the last update broke the cacheFunction. I am not very familiar with caching, so maybe you can get in touch with Tobias or someone else on XBMC team to figure it out.
Everyone else: here is a quick fix to make it work. On default.py change
Quote:common.cacheFunction(get_json) to
get_json() #common.cacheFunction(get_json)
i.e Call the get_json directly and comment out the old code using cacheFunction in case you want to revert it back. I think it occurs two times, one for categories and one for subcategories. I'm just writing based on my memory from last night when I was checking the code out. So not absolutely sure. Basically find all instances and make changes.
Or maybe just wait for an update from divingmule.
Cheers.
- jimmymcmahon - 2012-01-30 18:24
newatv2user Wrote:@divingmule: It seems the last update broke the cacheFunction. I am not very familiar with caching, so maybe you can get in touch with Tobias or someone else on XBMC team to figure it out.
Everyone else: here is a quick fix to make it work. On default.py change
i.e Call the get_json directly and comment out the old code using cacheFunction in case you want to revert it back. I think it occurs two times, one for categories and one for subcategories. I'm just writing based on my memory from last night when I was checking the code out. So not absolutely sure. Basically find all instances and make changes.
Or maybe just wait for an update from divingmule.
Cheers.
Hi mate, just had a go at this, when checking the defauly py I think the function is actually
cache.cacheFunction(get_json) as opposed to common.cacheFunction(get_json) as I could find no trace of this.
Irrespective I have changed it as suggested. Now it is not erroring on initial launch and i can now see categories / stream lists however none of the streams will play at all. Suspect there are further tweaks of the code required. I will post a log file shortly
Thanks
- burro - 2012-01-30 18:36
newatv2user Wrote:@divingmule: It seems the last update broke the cacheFunction. I am not very familiar with caching, so maybe you can get in touch with Tobias or someone else on XBMC team to figure it out.
Everyone else: here is a quick fix to make it work. On default.py change
i.e Call the get_json directly and comment out the old code using cacheFunction in case you want to revert it back. I think it occurs two times, one for categories and one for subcategories. I'm just writing based on my memory from last night when I was checking the code out. So not absolutely sure. Basically find all instances and make changes.
Or maybe just wait for an update from divingmule.
Cheers.
Thank you very much.
- jimmymcmahon - 2012-01-30 18:37
Code:
16:31:29 T:102567936 NOTICE: DVDPlayer: Opening: rtmp://199.9.255.144/app/jtv_QiK3AFmYU8lCHtrM jtv=951deb6d7bca9b8f77b3e284317b06280f767b24:{\22swfDomains\22:\20[\22justin.tv\22,\20\22jtvx.com\22,\20\22xarth.com\22,\20\22twitchtv.com\22,\20\22twitch.tv\22,\20\22newjtv.com\22,\20\22jtvnw.net\22,\20\22wdtinc.com\22,\20\22imapweather.com\22,\20\22facebook.com\22,\20\22starcrafting.com\22],\20\22streamName\22:\20\22jtv_QiK3AFmYU8lCHtrM\22,\20\22expiration\22:\201327944690.1321681,\20\22geo_ip\22:\20\2286.184.221.187\22,\20\22server\22:\20\22lhr01-video4-2\22} swfUrl=http://www.justin.tv/widgets/live_embed_player.swf?channel=coolmagnifico04 Pageurl=http://www.justin.tv/coolmagnifico04
16:31:29 T:102567936 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:31:29 T:102567936 DEBUG: LinuxRendererGL: Cleaning up GL resources
16:31:29 T:138919936 DEBUG: Thread CDVDPlayer start, auto delete: 0
16:31:29 T:138919936 NOTICE: Creating InputStream
16:31:29 T:138919936 DEBUG: SECTION:LoadDLL(librtmp.0.dylib)
16:31:29 T:138919936 DEBUG: Loading: /var/stash/Applications/XBMC.frappliance/Frameworks/librtmp.0.dylib
16:31:29 T:138919936 INFO: CDVDInputStreamRTMP: Using external libRTMP
16:31:29 T:138919936 INFO: Parsing...
16:31:29 T:138919936 INFO: Parsed protocol: 0
16:31:29 T:138919936 INFO: Parsed host : 199.9.255.144
16:31:29 T:138919936 INFO: Parsed app : app
16:31:29 T:138919936 ERROR: Unknown option jtv
16:31:29 T:138919936 ERROR: Valid RTMP options are:
16:31:29 T:138919936 ERROR: socks string Use the specified SOCKS proxy
16:31:29 T:138919936 ERROR: app string Name of target app on server
16:31:29 T:138919936 ERROR: tcUrl string URL to played stream
16:31:29 T:138919936 ERROR: pageUrl string URL of played media's web page
16:31:29 T:138919936 ERROR: swfUrl string URL to player SWF file
16:31:29 T:138919936 ERROR: flashver string Flash version string (default MAC 10,0,32,18)
16:31:29 T:138919936 ERROR: conn AMF Append arbitrary AMF data to Connect message
16:31:29 T:138919936 ERROR: playpath string Path to target media on server
16:31:29 T:138919936 ERROR: playlist boolean Set playlist before play command
16:31:29 T:138919936 ERROR: live boolean Stream is live, no seeking possible
16:31:29 T:138919936 ERROR: subscribe string Stream to subscribe to
16:31:29 T:138919936 ERROR: token string Key for SecureToken response
16:31:29 T:138919936 ERROR: swfVfy boolean Perform SWF Verification
16:31:29 T:138919936 ERROR: swfAge integer Number of days to use cached SWF hash
16:31:29 T:138919936 ERROR: start integer Stream start position in milliseconds
16:31:29 T:138919936 ERROR: stop integer Stream stop position in milliseconds
16:31:29 T:138919936 ERROR: buffer integer Buffer time in milliseconds
16:31:29 T:138919936 ERROR: timeout integer Session timeout in seconds
16:31:29 T:138919936 ERROR: CDVDPlayer::OpenInputStream - error opening [rtmp://199.9.255.144/app/jtv_QiK3AFmYU8lCHtrM jtv=951deb6d7bca9b8f77b3e284317b06280f767b24:{\22swfDomains\22:\20[\22justin.tv\22,\20\22jtvx.com\22,\20\22xarth.com\22,\20\22twitchtv.com\22,\20\22twitch.tv\22,\20\22newjtv.com\22,\20\22jtvnw.net\22,\20\22wdtinc.com\22,\20\22imapweather.com\22,\20\22facebook.com\22,\20\22starcrafting.com\22],\20\22streamName\22:\20\22jtv_QiK3AFmYU8lCHtrM\22,\20\22expiration\22:\201327944690.1321681,\20\22geo_ip\22:\20\2286.184.221.187\22,\20\22server\22:\20\22lhr01-video4-2\22} swfUrl=http://www.justin.tv/widgets/live_embed_player.swf?channel=coolmagnifico04 Pageurl=http://www.justin.tv/coolmagnifico04]
16:31:29 T:138919936 NOTICE: CDVDPlayer::OnExit()
16:31:29 T:138919936 NOTICE: CDVDPlayer::OnExit() deleting input stream
16:31:29 T:138919936 DEBUG: Thread CDVDPlayer 138919936 terminating
16:31:29 T:102567936 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
16:31:29 T:102567936 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
16:31:29 T:102567936 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.jtv.archives/?url=&mode=2&name=coolmagnifico04&iconimage=http%3A%2F%2Fstatic-cdn.jtvnw.net%2Fjtv_user_pictures%2Fcoolmagnifico04-profile_image-48587ed82b5ef183-600x600.jpeg]
16:31:29 T:102567936 DEBUG: Playlist Player: no more playable items... aborting playback
16:31:30 T:123228160 DEBUG: Thread Background Loader start, auto delete: 0
16:31:30 T:102567936 NOTICE: CDVDPlayer::CloseFile()
16:31:30 T:102567936 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:31:30 T:102567936 NOTICE: DVDPlayer: waiting for threads to exit
16:31:30 T:102567936 NOTICE: DVDPlayer: finished waiting
16:31:30 T:102567936 DEBUG: LinuxRendererGL: Cleaning up GL resources
16:31:30 T:102567936 DEBUG: CGUIAudioManager::Initialize
16:31:30 T:102567936 DEBUG: Previous line repeats 1 times.
16:31:30 T:102567936 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
16:31:31 T:123228160 DEBUG: Thread Background Loader 123228160 terminating
16:31:35 T:102567936 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.jtv.archives)
16:31:35 T:102567936 DEBUG: ParentPath = [addons://sources/video/]
16:31:35 T:102567936 DEBUG: Loading fileitems [plugin://plugin.video.jtv.archives]
16:31:35 T:102567936 DEBUG: -- items: 11, directory: plugin://plugin.video.jtv.archives sort method: 0, ascending: false
16:31:35 T:123228160 DEBUG: Thread Background Loader start, auto delete: 0
16:31:36 T:107626496 DEBUG: DoWork - took 278 ms to load special://masterprofile/Thumbnails/b/b5f9dca9.jpg
16:31:36 T:123228160 DEBUG: Thread Background Loader 123228160 terminating
16:31:37 T:102567936 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video/)
16:31:37 T:102567936 DEBUG: ParentPath = []
16:31:37 T:133521408 DEBUG: Thread Background Loader start, auto delete: 0
16:31:38 T:133521408 DEBUG: Thread Background Loader 133521408 terminating
16:31:39 T:135364608 INFO: Python script stopped
16:31:39 T:135364608 DEBUG: Thread XBPyThread 135364608 terminating
16:31:39 T:102567936 DEBUG: waiting for python thread 67 to stop
16:31:39 T:102567936 DEBUG: python thread 67 destructed
16:31:43 T:102567936 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
16:31:43 T:102567936 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
16:31:43 T:102567936 DEBUG: CGUIWindowManager::PreviousWindow: Activate new
16:31:43 T:102567936 DEBUG: ------ Window Init (Home.xml) ------
16:31:43 T:102567936 INFO: Loading skin file: Home.xml
16:31:44 T:130961408 DEBUG: DoWork - took 606 ms to load special://skin/backgrounds/music.jpg
16:31:44 T:107626496 DEBUG: DoWork - took 454 ms to load special://skin/backgrounds/programs.jpg
16:31:44 T:129843200 DEBUG: DoWork - took 236 ms to load special://skin/backgrounds/settings.jpg
16:31:46 T:102567936 DEBUG: ExecuteXBMCAction : Translating ActivateWindow(SystemInfo)
16:31:46 T:102567936 DEBUG: ExecuteXBMCAction : To ActivateWindow(SystemInfo)
16:31:46 T:102567936 DEBUG: Activating window ID: 10007
16:31:46 T:102567936 DEBUG: ------ Window Deinit (Home.xml) ------
16:31:46 T:102567936 DEBUG: ------ Window Init (SettingsSystemInfo.xml) ------
16:31:46 T:102567936 INFO: Loading skin file: SettingsSystemInfo.xml
16:31:48 T:102567936 DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
16:31:49 T:102567936 DEBUG: ------ Window Deinit (SettingsSystemInfo.xml) ------
16:31:49 T:102567936 DEBUG: CGUIWindowManager::PreviousWindow: Activate new
16:31:49 T:102567936 DEBUG: ------ Window Init (Home.xml) ------
16:31:49 T:102567936 INFO: Loading skin file: Home.xml
16:31:49 T:102567936 INFO: Python, unloading python shared library because no scripts are running anymore
16:31:50 T:107626496 DEBUG: DoWork - took 426 ms to load special://skin/backgrounds/programs.jpg
16:31:56 T:102567936 DEBUG: ExecuteXBMCAction : Translating ActivateWindow(Settings)
16:31:56 T:102567936 DEBUG: ExecuteXBMCAction : To ActivateWindow(Settings)
16:31:56 T:102567936 DEBUG: Activating window ID: 10004
16:31:56 T:102567936 DEBUG: ------ Window Deinit (Home.xml) ------
16:31:56 T:102567936 DEBUG: ------ Window Init (Settings.xml) ------
16:31:56 T:102567936 INFO: Loading skin file: Settings.xml
16:31:57 T:129843200 DEBUG: DoWork - took 443 ms to load special://skin/backgrounds/system.jpg
16:31:58 T:102567936 DEBUG: ExecuteXBMCAction : Translating ActivateWindow(SystemSettings)
16:31:58 T:102567936 DEBUG: ExecuteXBMCAction : To ActivateWindow(SystemSettings)
16:31:58 T:102567936 DEBUG: Activating window ID: 10016
16:31:58 T:102567936 DEBUG: ------ Window Deinit (Settings.xml) ------
16:31:58 T:102567936 DEBUG: ------ Window Init (SettingsCategory.xml) ------
16:31:58 T:102567936 INFO: Loading skin file: SettingsCategory.xml
16:32:00 T:102567936 DEBUG: SECTION:UnloadDelayed(DLL: librtmp.0.dylib)
16:32:00 T:102567936 DEBUG: Unloading: librtmp.0.dylib
16:32:02 T:102567936 NOTICE: Disabled debug logging due to GUI setting. Level 0.
16:32:02 T:102567936 NOTICE: Log level changed to 0
- newatv2user - 2012-01-30 19:30
@jimmymcmahon: I think you're right. It's probably cache.cacheFunction(get_json). As I said before, I was writing based on my memory. And did you upgraded or did something to your XBMC? Coz your librtmp is not updated.
Quote:ERROR: Unknown option jtv
You need a librtmp that supports jtv.
Update 0.2.3 - divingmule - 2012-01-30 19:49
Here is an update, fixes for changes to the common cache add-on.
Download Zip - http://divingmules-repo.googlecode.com/files/plugin.video.jtv.archives-0.2.3.zip
If you haven't updated to Eden beta 2 you should, I was having problems with the new version of common cache add-on with my beta 1 build.
- wazli - 2012-01-30 20:13
jimmymcmahon Wrote:as indicated above mate..
It looks like the updates to youtube / common downloader etc have broke this script
Oh... damn it. I was almost ready to use xbmc as my htpc. J.tv/twitch.tv are the only reason I want a htpc. Guess I might end up buying a boxee box.
- wazli - 2012-01-30 20:15
I'm pretty new to xbmc, how do I get the beta for windows? Or should I just get ubuntu on my laptop and run the beta on there?
- divingmule - 2012-01-30 20:22
http://mirrors.xbmc.org/releases/win32/
- jimmymcmahon - 2012-01-30 20:40
newatv2user Wrote:@jimmymcmahon: I think you're right. It's probably cache.cacheFunction(get_json). As I said before, I was writing based on my memory. And did you upgraded or did something to your XBMC? Coz your librtmp is not updated.
You need a librtmp that supports jtv.
I had a librtmp from earlier in this thread but then i replaced it with this one yesterday
http://forum.xbmc.org/showpost.php?p=942549&postcount=104
I have now just realised that this post of yours was back last year and there is now probably a more recent version of librtmp!
Where can i find the most recent version please mate?
|