PDA

View Full Version : How to decrypt encrypted smi files from hulu.com


chanc
10-06-2012, 08:21 AM
While using hulu.sh, I can download http://www.hulu.com/watch/358372. And I can also get the encrypted subtitles in the form of smi file.But without decrpting it, the subtitles are a bunch of meaningless numbers and letters.
Any way to decrypt such files ?
If open the file in txt , it is like this :
<SAMI><BODY><SYNC Encrypted="true" start="0">c78729cdc2b218fdb3174eb72b602730</SYNC>
<SYNC Encrypted="true" start="1998">5ea9a6c6459619528b9fd24c27aec2603958d9d424dd3b71f2 22534c814b996e</SYNC>
<SYNC Encrypted="true" start="3464">b8e31ed615b8c229beceb90def8f4c2b94b96ca82a7f5d086f 0a72ca4142ae64f5e641119c393c9cc4d4a7be584e57c4</SYNC>
<SYNC Encrypted="true" start="6164">29cecff0e801bd967e44e143dd58e52d3a5ff253d850ee482f ededec43762d69a944e95f4c48c9530815ba1eb2fd4e87aab4 e326dcbd8504e5dbc5f4c1bb1a446c0312e6edbd6dcec378c6 523ca607f0</SYNC>
<SYNC Encrypted="true" start="10098">3d88a243be0a02210d08e9cf47cce66dd41ff2b96e4db18ba7 34ac6b9a7fa8fcac19551dc9a39002185fe5e294e462f143f4 73999870a742f289a748b9442dbe</SYNC>
<SYNC Encrypted="true" start="13064">733715c861cb8a3a88be8e43dbb2c760db0fe70139f89b5997 d4b62c4388e74dd1282243f42ab4fdfc7b2903baa9cc50d63c e0ad5011a5dfdfcd0c9cca137eef1ed4b5a57a6cf940e5d07b 7d831c6ceb</SYNC>
<SYNC Encrypted="true" start="17464">c78729cdc2b218fdb3174eb72b602730</SYNC>
<SYNC Encrypted="true" start="19331">1fec5db407c3bb4b675ecf35ad1939a8761180826b1a3956d0 0c6ca0540af3744714824ebf818b1223eeeb3ccc5d8df6</SYNC>
<SYNC Encrypted="true" start="22764">29e433baccb6491267f05bed63438969fcbabc2fbf5d2c2d1d c9d6b62af87b2129f794d052dfe4ab394b654c19907aaf7e54 0ebc09223fbade5923017e149605</SYNC>
<SYNC Encrypted="true" start="24764">02b85931434159692efd54e84f6877c5</SYNC>
<SYNC Encrypted="true" start="26264">c78729cdc2b218fdb3174eb72b602730</SYNC>
<SYNC Encrypted="true" start="27564">b8e31ed615b8c229beceb90def8f4c2b94b96ca82a7f5d086f 0a72ca4142ae64f5e641119c393c9cc4d4a7be584e57c4</SYNC>
<SYNC Encrypted="true" start="30764">c78729cdc2b218fdb3174eb72b602730</SYNC>
<SYNC Encrypted="true" start="33498">e818878f37457e9653dd797498828d33</SYNC>
<SYNC Encrypted="true" start="38064">0d4c6ec9251616459e924c68c2bba5ef339cc069307dbb7579 5f22e71b60d894</SYNC>
<SYNC Encrypted="true" start="39331">2bea0cd7e82040d350bdc9cf25bfb1f4686de30237cb375d5f 5ae9e68bdbe78bc5e7135c2e6f534defc2d170df24e5e0844a adb34a00137ad4a5a02fecb45136</SYNC>
<SYNC Encrypted="true"
.....
<SYNC Encrypted="true" start="1292764">c78729cdc2b218fdb3174eb72b602730</SYNC>
</BODY></SAMI>

svnpenn
10-06-2012, 03:38 PM
If you have python, this should work

code.google.com/p/bluecop-xbmc-repo/source/browse/trunk/plugin.video.hulu/resources/lib/subtitles.py

otherwise I can try to port that into something else

chanc
10-06-2012, 09:33 PM
Thanks, SVNPENN.You are always there to offer help. How generous!

But python is totally unfamiliar to me.

Could you please turn it into something that can be run in cygwin ?

Thank you very much.

chanc
10-07-2012, 08:04 PM
If you have python, this should work

code.google.com/p/bluecop-xbmc-repo/source/browse/trunk/plugin.video.hulu/resources/lib/subtitles.py


I have installed python in my computer.
When I ran subtitles.py in cygwin, I got :
Administrator@pc ~
$ python -V
Python 2.7.3

Administrator@pc ~
$ cd c:/cygwin/usr/local/bin/

Administrator@pc /usr/local/bin
$ python subtitles.py
Traceback (most recent call last):
File "subtitles.py", line 1, in <module>
import xbmc
ImportError: No module named xbmc

Administrator@pc /usr/local/bin
$


The subtitles.py seems to be a part of a plugin of xbmc. I don't know how to make it work.