-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Subtitle Decoder #14
Comments
facing the same issue. please resolve |
Yep I know this one. But I don't know how it is encoded. Any idea how it was encoded? |
ENCRYPTION ALGORITHM: AES 128 CBC |
New version is released (v0.1.7) which should fix this. Without decryption: $ kisskh dl https://kisskh.co/Drama/Night-Has-Come?id=8357 -f 1 -l 1 -o .
2023-12-21 07:06:47,616 - INFO - Getting details for Episode 1...
[generic] Extracting URL: https://hls05.videodelivery.shop/hls05/Night-Has-Come-Ep1/index.m3u8
[generic] index: Downloading webpage
[generic] index: Downloading m3u8 information
[generic] index: Checking m3u8 live status
[info] index: Downloading 1 format(s): 0
[download] ./Night_Has_Come/Night_Has_Come_E01.mp4 has already been downloaded
[download] 100% of 187.75MiB
2023-12-21 07:06:50,121 - INFO - Downloading English sub...
$ head Night_Has_Come/Night_Has_Come_E01.en.txt
1
00:00:17,230 --> 00:00:20,620
O7/IcKbSiPWvjf9ZDApGz5k1HcFRViOkWZh7ycxseodPloMXNEAvgMCheiFhfXJD
2
00:00:21,380 --> 00:00:24,740
omMKrTrmZ5GZkwgexx6RLsogSJoBF4veRLTSPVLDF3TyXC+CcXXeQR/Pu21iQLC+
3
00:00:34,920 --> 00:00:39,410 With decryption: $ export KISSKH_KEY=8056483646328763
$ export KISSKH_INITIALIZATION_VECTOR=6852612370185273
$ kisskh dl https://kisskh.co/Drama/Night-Has-Come?id=8357 -f 1 -l 1 -o . -ds
2023-12-21 07:05:33,476 - INFO - Getting details for Episode 1...
[generic] Extracting URL: https://hls05.videodelivery.shop/hls05/Night-Has-Come-Ep1/index.m3u8
[generic] index: Downloading webpage
[generic] index: Downloading m3u8 information
[generic] index: Checking m3u8 live status
[info] index: Downloading 1 format(s): 0
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 223
[download] Destination: ./Night_Has_Come/Night_Has_Come_E01.mp4
[download] 100% of 187.75MiB in 00:00:07 at 24.86MiB/s
WARNING: index: Possible MPEG-TS in MP4 container or malformed AAC timestamps. Install ffmpeg to fix this automatically
2023-12-21 07:05:43,009 - INFO - Downloading English sub...
$ head Night_Has_Come/Night_Has_Come_E01.en.txt
1
00:00:17,230 --> 00:00:20,620
(Lee Jae In / Kim Woo Seok / Choi Ye Bin)
2
00:00:21,380 --> 00:00:24,740
(Cha Woo Min / Ahn Ji Ho / Jeong So Ri)
3
00:00:34,920 --> 00:00:39,410 Not hardcoding the IV and key as they may change in future. |
it is not working for me
|
You don't need decrypter for that series: $ kisskh dl "https://kisskh.co/Drama/My-Boss?id=8273" -f 3 -l 8 -o .
2024-01-07 01:02:36,276 - INFO - Getting details for Episode 3...
[generic] Extracting URL: https://cachemp4.site/My-Boss.Ep3.mp4?v=12
[generic] My-Boss.Ep3: Downloading webpage
[info] My-Boss.Ep3: Downloading 1 format(s): mp4
[download] Destination: ./My_Boss/My_Boss_E03.mp4
[download] 100% of 416.24MiB in 00:00:02 at 176.38MiB/s
2024-01-07 01:02:39,958 - INFO - Downloading English sub...
2024-01-07 01:02:40,236 - INFO - Getting details for Episode 4...
[generic] Extracting URL: https://cachemp4.site/My-Boss.Ep4.mp4?v=1
[generic] My-Boss.Ep4: Downloading webpage
[info] My-Boss.Ep4: Downloading 1 format(s): mp4
[download] Destination: ./My_Boss/My_Boss_E04.mp4
[download] 100.0% of 400.65MiB at 251.97MiB/s ETA 00:00^C
Aborted!
$ head -20 My_Boss/My_Boss_E03.en.srt
1
00:01:35,653 --> 00:01:38,802
(My Boss)
2
00:01:39,210 --> 00:01:41,937
(Episode 3)
3
00:01:42,018 --> 00:01:44,842
(Is it because of Cheng Yao that I fell asleep?)
4
00:02:00,043 --> 00:02:01,575
Cheng Yao, wake up.
5
00:02:03,748 --> 00:02:04,748
Wake up. |
There are a lot of series and it's hard to check which episodes require decryption. Is it possible to automatically trigger download if decryption fails? Or something to check if the downloaded file requires decryption or not and automatically downloads accordingly? |
Sorry, it seems as new episodes are out, they decrypted the subtitle of the old episode. Eg. for ep 9 https://kisskh.co/Drama/My-Boss/Episode-9?id=8273&ep=144285&page=0&pageSize=100 I'm getting ValueError: Invalid key size (144) for AES. |
@debakarr You now need a key for My Boss Ep 16 |
use below method that works for me, set ALGORITHM=AES 128 CBC after use kisskh dl "https://kisskh.co/Drama/The-Rise-of-Ning/Episode-5?id=9174&ep=165215&page=0&pageSize=100" -o . -ds this will help you decrypt subtitle. but downloaded fill will be text file. so, you have to save that file as .srt. then all set. try this. |
Some shows have encoded subtitles, which is similar to - I think - HiTv encoding https://sepr0.com/posts/encrypted-subtitles-gohitv/
Sample URL of encoded subtitles:
https://kisskh.co/Drama/Seasons-of-Blossom?id=6082
The text was updated successfully, but these errors were encountered: