Kodi Community Forum
[RELEASE] Justin.tv (Video) Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Justin.tv (Video) Plugin (/showthread.php?tid=51981)



- rogerzees - 2011-09-17

Hi,Divingmule nice addon

Did give me a error when adding
do you have 1 path 2 much ?.
E:\plugin.video.jtv.archives\plugin.video.jtv.archives\plugin.video.jtv.archives

Unzipped manually and works well,but it seems to load all the channels
when via web only loads 32 channels at a time,ex when choosing entertaiment its loads over 1000 channels
its like dossing jtv if 3000 users uses this great addon.


- divingmule - 2011-09-17

rogerzees Wrote:Hi,Divingmule nice addon

Did give me a error when adding
do you have 1 path 2 much ?.
E:\plugin.video.jtv.archives\plugin.video.jtv.archives\plugin.video.jtv.archives

I see, thanks will fix it.

Quote:Unzipped manually and works well,but it seems to load all the channels
when via web only loads 32 channels at a time,ex when choosing entertaiment its loads over 1000 channels
its like dossing jtv if 3000 users uses this great addon.

It's a regular api call, I guess they would have a limit if it was a problem. Maybe we should use the smaller thumbnail thoughHuh


- divingmule - 2011-09-17

MaxMustermann Wrote:how can I pass the token in an xbmc strm file? jtv="..."? I have problems with the whitespaces. Do I also have to escape the quotation marks?

I've tried everything I can think of but can not get it to work. I'm up for suggestions myself.


- MaxMustermann - 2011-09-17

divingmule Wrote:I've tried everything I can think of but can not get it to work. I'm up for suggestions myself.

That's the only part missing. I have already integrated the rest into SportsDevil.


- rogerzees - 2011-09-17

I Dont know if this is any help.....

"I have further tested it. escape character in windows cmd shell is caret (^) but it didn't solved the problem.
however using the backslash as escape character (same as in linux) it passes the correct value of token.
so we just need to replace " with \" in token value to get it working."

http://stream-recorder.com/forum/rtmpdump-problem-downloading-justin-tv-t9611.html

or

http://www.usingxml.com/Basics/XmlSpace

*


- MaxMustermann - 2011-09-17

This is working for rtmpdump but not for xbmc, unfortunately.


- tdhz77 - 2011-09-18

Thank you for the J.TV Archives plugin!

One question, how are the archives organized? Is there a way to organize by Alphabetically, or by bitrate? Thanks again!


bookmart - joseohara - 2011-09-19

the booc\kmart doesn't work....is possible to add favorite option?


- toine512 - 2011-09-22

Hey !

I forgot to avert you that I was working on a GUI for rtmpdump & Jtv !

You can only view streams informations for now but it can be useful Smile

GIT here : https://github.com/toine512/jtv-downloader
last Windows build here : https://github.com/downloads/toine512/jtv-downloader/Jtv_downloader-pre2.7z

I'll finish the work in next months ...


- divingmule - 2011-09-22

I've made some improvements to the archive add-on. Added subcategories and smaller thumbnails to ease the loading of large directories. You can now add favorites to the add-on itself via context menu (c key). Once you add a favorite, the "Favorites" item will show in the main menu.

Download zip - http://divingmules-repo.googlecode.com/files/plugin.video.jtv.archives.0.1.zip

edit: I also added a sort by name / default sort methods.


- Livin - 2011-09-22

great to see this being worked on... thank you guys!


- hani - 2011-09-29

divingmule Wrote:I've tried everything I can think of but can not get it to work. I'm up for suggestions myself.


To Pass the Usher Authentication to xbmc player(librtmp) you need use the two hexadecimal digits representing the ASCII value of the character. E.g., spaces must be escaped as \20 and backslashes must be escaped as \5c quotation mark as \22.

the following is an example for rtmpdump
Code:
rtmpdump.exe -r "rtmp://199.9.251.79/app/jtv_k19PhnpKiBJNijTv" --jtv "7f11743e91e15d580a26b3ec457126804cc9ea1a:{\"s
wfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"wdtinc.com\", \"imapwe
ather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_k19PhnpKiBJNijTv\", \"expiration\": 131
7315601.092195, \"geo_ip\": \"114.76.93.136\", \"server\": \"video51-1\"}" --swfUrl "http://www-cdn.justin.tv/widge
ts/live_frontpage_player.r3f0f3c1a3553c859aa9c087e5732d039dd35b1b9.swf" -v
For xbmc you pass the following
Code:
rtmp://199.9.251.79/app/jtv_k19PhnpKiBJNijTv jtv=7f11743e91e15d580a26b3ec457126804cc9ea1a:{\22swfDomains\22:\20[\22justin.tv\22,\20\22jtvx.com\22,\20\22xarth.com\22,\20\22twitchtv.com\22,\20\22twitch.tv\22,\20\22wdtinc.com\22,\20\22imapweather.com\22,\20\22facebook.com\22,\20\22starcrafting.com\22],\20\22streamName\22:\20\22jtv_k19PhnpKiBJNijTv\22,\20\22expiration\22:\201317315601.092195,\20\22geo_ip\22:\20\22114.76.93.136\22,\20\22server\22:\20\22video51-1\22} swfUrl=http://www-cdn.justin.tv/widgets/live_frontpage_player.r3f0f3c1a3553c859aa9c087e5732d039dd35b1b9.swf swfVfy=1
you can use regular expression or any other method to do the string replacement

I hope this can help to get the this plugin running again.


- MaxMustermann - 2011-09-29

Yeah Smile Thank you for sharing the code. It's working great and already integrated into SportsDevil. I have tried %20 and %22 before without success.
Also looking forward to divingmule's new version.


- hani - 2011-09-29

MaxMustermann Wrote:Yeah Smile Thank you for sharing the code. It's working great and already integrated into SportsDevil. I have tried %20 and %22 before without success.
Also looking forward to divingmule's new version.

Glad to help the information was already available on http://rtmpdump.mplayerhq.hu/librtmp.3.html.
Can someone check if the SWF verification parameter(swfVfy) required, we may not need to do another http request to get the URL for the SWF player.


- hani - 2011-09-30

hani Wrote:Glad to help the information was already available on http://rtmpdump.mplayerhq.hu/librtmp.3.html.
Can someone check if the SWF verification parameter(swfVfy) required, we may not need to do another http request to get the URL for the SWF player.

you can ignore swfVfy parameter but you need to supply the player swfUrl, any dummy player from the swf domain(listed in the token) with swf extension still work not sure why.
here is the list of allowed swf domains found in the token : ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com" ].

So performing SWF Verification(hash,url,size,ctim,date) may not work if you are not using a proper url.
By default, the cached info will be used for 30 days before re-checking in the librtmp, but since UsherToken expires so quickly, i guess you can ignore any caching and validation.