Twoure / KissNetwork.bundle

Plex Channel to view Anime, Asian Drama, Cartoons, Manga & Comics from KissAnime, KissAsian, KissCartoon, KissManga & ReadComicOnline
94 stars 21 forks source link

Encryption Debugging #63

Open Twoure opened 7 years ago

Twoure commented 7 years ago

What is this?

An attempt to better debug the multiple encryption variations provided by the kiss sites. AFAIK, the kiss sites deal out different encryption code base on country and/or IP filtering. I can only code for what I'm given, as the Kiss sites do not allow VPN connections. Thus, I need a way to see the raw webpages that users are having issues with.

How can I Help?

  1. Download and install the latest dev branch
  2. Once installed, restart PMS, to ensure the changes take effect
  3. Optional: Access -->Cartoon Upgrade<-- from within the Developer Tools. The option will disappear after the channel has successfully upgraded.

Note: 3 can be skipped if concerned about using kimcartoon as temporary cartoon source.

  1. Next access the most recent video/comic published from each source and try to play/read them. i.e. for kissanime, open Recent Additions, select the first result, then drill down to the last video available. Important: at the video page, select the Play button. If it cannot play the content, that is fine, but you have to try otherwise the page will not cache properly.

Do the same for the Cartoon, Drama, Comic and Manga sections. Again make sure to try and play/read the video/comics. If they fail, that means I can work at decrypting them.

  1. Once the latest video/comic have been access and played, navigate to the Cache Tools located within the Developer Tools. There is a new Zip Cache function, that will copy the HTTP cache, RKS cache, KissNetwork logs, and system logs into a zip file located within this channels Resources directory. Select Zip Cache and wait for it to reply.
  2. Once the zip file generates, reply to this issue with the latest zip file as an attachment and a short description of what sites worked/failed.

Concerns?

Notes:

To use this channel's DevTools, you must be the Plex Admin user (i.e. the account that setup your PMS) and enable the DevTools from this channel's preferences (located here).

This Channel's Resources directory can be found within KissNetwork.bundle/Contents/Resources/. The channel will be installed within the PMS Plug-ins directory.

aW49qA2V3RxMqD commented 7 years ago

I want to help but whenever I click on Anime, Cartoon or anything else the channel goes directly to the "all" page and I can't go to recent additions. Am I doing something wrong?

Edit: Nevermind I had the simple UI checked but now when I try to zip the cache I get channel is not responding.

forthedramas commented 7 years ago

A 2nd person getting "channel not responding" when I try to zip the cache. For what it's worth, manga and comics worked fine, but no videos would play.

spacecuppacake commented 7 years ago

Before I begin, many thanks for what you bring to the plex community. Your channel has been awesome.

I'm trying to follow the instructions for zipping the cache, but I'm not having any luck. There doesn't seem to be a "Zip Cache" function in Cache Tools.

Twoure commented 7 years ago

@BluPixal ,@forthedramas and @spacecuppacake

Did you restart your Plex Media Server (PMS) after downloading and installing the current dev branch?

If so, please reproduce the error, then attach the com.plexapp.plugins.kissnetwork.log and com.plexapp.system.log files in a comment. Log file help here.


Edit: never mind, found the issue for windows users thanks to https://github.com/Twoure/KissNetwork.bundle/issues/53#issuecomment-293742990. Pushed fix to dev branch. Please re-download (or upgrade) and follow the test procedure above.

spacecuppacake commented 7 years ago

Sorry, no luck. Still not seeing the Zip Cache.I still see only "reset datacovers" and "reset datahttp".

TL;dr, from WebTools, I "reinstalled with latest available," made sure I had "development" selected in options, and restarted PMS, PlexWebApp and Kiss Network Channel. I still see only "reset datacovers" and "reset datahttp".

Twoure commented 7 years ago

@spacecuppacake said: TL;dr, from WebTools, I "reinstalled with latest available," made sure I had "development" selected in options, and restarted PMS, PlexWebApp and Kiss Network Channel. I still see only "reset datacovers" and "reset datahttp".

Unfortunately, switching to Development does not automatically update the channel. You should get a notification within the channel when there is an update.

However currently you will not, because the internal updater is keyed off of when you locally install the channel. So, if I pushed a dev update before you installed the channel, then the Update button will not show. The assumption, is whatever you initially install will always be the latest. After that, the updater checks github timestamps against the channels local install timestamp. Once a newer commit or release is available, the update button will appear.

i.e. in this instance, you need to manually download and install the dev branch.

CastleArcade commented 7 years ago

All of the different Kiss websites work fine on my browsers, but when it comes to Plex, nothing wants to play.

Twoure commented 7 years ago

@CastleArcade, please follow all the steps above, then attach zip file for debugging.

CastleArcade commented 7 years ago

The Zip Cache button didn't seem to work, so I manually zipped them instead.

DataZip.zip

deeelwy commented 7 years ago

Neither my Apple TVv3/Plex Connect client or Plex's own Web client displayed where the zip file was located. But I found it manually located at:

/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.kissnetwork/DataItems/Archives/KissNetwork_cache_20170413-013143.zip

Note: the beginning part of the path may differ based on OS and how Plex's username's home directory is. In my case plex's user's home directory is /var/lib/plexmediaserver. Anyway, it's in the same base directory as the Plug-ins directory is where you need to unzip the download to install this Plex Channel.

spacecuppacake commented 7 years ago

Many thanks, Twoure.

side note: still no streaming from Anime or Cartoon, whether server is KissNetwork, Openload, Stream, or Beta.

KissNetwork_cache_20170412-225934.zip

NicholasLAranda commented 7 years ago

Could you make a video on how to do this? I'll post my stuff ASAP!

Yolley commented 7 years ago

kissanime site is now available from my country, so i can gather requested info. Anime and cartoons are not working still (enabled Cartoon upgrade, just get error with playing the item on every title i try to watch), manga is working weird (if i click on some page of manga, it won't open it in full screen), on drama i get "channel is not responding" on every category (so i can't even choose the title for test), on comic on every title i get "Channel is not responding". Here is zipped cache. KissNetwork_cache_20170417-163539.zip

Twoure commented 7 years ago

@Yolley reset your Header_Dict, then clear all DataHTTP cache from channel, using the devtools.

I still need to add back in some error handling within my http request to handle when the channel encounters the cloud flare auth page. I'll get to it later today.

Yolley commented 7 years ago

@Twoure Thanks! For now i don't get the "Channel is not responding" error, but comics and manga still are working weird as before (in console i see Uncaught TypeError: Cannot read property 'length' of undefined and then 429), Anime, Drama, Cartoon show me "problem playing this item" error. Here are fresh zipped logs KissNetwork_cache_20170417-182129.zip

Twoure commented 7 years ago

@Yolley, thanks for the cache zip. Was able to fix the cartoon variant from your cache, and spotted some errors of my own from the other day. Pushed patch to dev branch.

CastleArcade commented 7 years ago

I just installed the latest dev branch and everything seems to be working except for the Drama section. I figured I should let you know since it's pretty much the only section I use. I really appreciate all the work you put into this! KissNetwork_cache_20170417-233444.zip

Yolley commented 7 years ago

@Twoure, thanks for the answer. Do i need to send cache zip after update?

Twoure commented 7 years ago

@Yolley said: @Twoure, thanks for the answer. Do i need to send cache zip after update?

Only if you're still experiencing playback issues.

Yolley commented 7 years ago

@Twoure, cartoon is working fine, but still have the same issues with anime, drama, manga, comic. Actually in anime i could watch one item (tested 3 items), but it had intro with 9anime sign for some reasons. Here is the cache zip. KissNetwork_cache_20170418-182033.zip

SpaceJedi commented 7 years ago

@Twoure I can play any video from Kimcartoon.me within my browser but when I try to play it through Plex I can see the cartoons but when I try to play any of them I get the error "There was problem playing this item". I get this same error when trying to play any of the anime videos as well. Attached is my zip file DataZip.zip

SiddhantArya commented 7 years ago

@Twoure I can't play anything including cartoon. It shows "There was an error playing this item" error for everything. I am able to play videos from kissanime etc on my browser but not through this plex channel. Attached is my zip file: KissNetwork_cache_20170425-152216.zip

Twoure commented 7 years ago

@SpaceJedi, fixed your variants in https://github.com/Twoure/KissNetwork.bundle/commit/3038109b21551b60231442a3183fcb55b737194d and https://github.com/Twoure/KissNetwork.bundle/commit/08a7013aa78edc91e96c8ebdc738e5761a71886c

Twoure commented 7 years ago

@Yolley, current dev code should now work with your variants.

NicholasLAranda commented 7 years ago

I'm building my caches now as I purged them with the release from a few days ago.

It would appear so far that KimCartoon is working smoothly now as well any other form of changes needed to be made.

As soon as something I watch gives an error, I'll upload my cache.

Thanks for fixing it man. I appreciate all your hard work.

Twoure commented 7 years ago

@CastleArcade, current dev code should now work with your variants.

Twoure commented 7 years ago

@spacecuppacake, current dev code should now work with your variants.

Twoure commented 7 years ago

@SiddhantArya, current dev code should now work with your variants. However, I see you're getting redirected to the captcha page sometimes, so you'll have to solve a captcha within a web browser first for the sites before it will work in the channel. Also I was unable to get your cached cartoon selection to decrypt correctly, but I believe this is due to a bad k_token cache, and have reduced the cartoon cookie cache time to help with this issue.

Please download and install the dev branch, then reset the cartoon headers within the DevTools.

zaphod765 commented 7 years ago

After downloading dev branch and clearing caches and resetting headers, I'm able to stream both anime and cartoons! Twoure, you are the man! Truly genius work. Mac OSX, Android and Plex on Roku all streaming fine. Thanks for all the hard work!

SpaceJedi commented 7 years ago

@Twoure Awesome the cartoons are working now, thank you so much. I still get the error when playing any Anime but at least the cartoons will keep my kids happy.

SiddhantArya commented 7 years ago

@Twoure Thanks for all the hard work man. I can play almost everything including cartoons. However, for anime only the latest episodes are working. Older titles / episodes are not working as of yet. For ex. for One Piece, the latest season and episodes are working (Ep 780) but not the previous episodes (~Ep 150). Reattaching the zip: KissNetwork_cache_20170430-131844.zip

SiddhantArya commented 7 years ago

@Twoure I solved the captcha and low and behold the episode starts streaming from the channel. But it only works for that particular episode. Will I have to solve the captcha each time a play an episode?

IJ08 commented 7 years ago

Don't know what happened. Cartoons are working now. But older episodes aren't working. Both for anime and cartoons

zaphod765 commented 7 years ago

Sorry to report both anime and cartoons down once more. So close! Have tried clearing caches, headers and restarting channel but no go. Let me know if logs will help?

Twoure commented 7 years ago

@IJ08, older episodes are now hosted on Rapidvideo.com, and the latest dev should account for them. If you're still having issues, then please include the zip cache as before.

@zaphod765, yes logs are always needed.

zaphod765 commented 7 years ago

So-

I reset and reinstalled the KissNetwork App on Sunday, and now getting channel not responding. Sorry this has become such a headache. Attached are my logs, hope they help. Not sure how to reinstall from scratch, or even if it's possible?

Good Hunting,

-Z.

From: Twoure notifications@github.com Reply-To: "Twoure/KissNetwork.bundle" <reply+014f9e0a2a5f9510d519546b48f168e0a26f08805faf830f92cf00000001151e44159 2a169ce0d292a32@reply.github.com> Date: Sun, 30 Apr 2017 17:32:21 -0700 To: "Twoure/KissNetwork.bundle" KissNetwork.bundle@noreply.github.com Cc: Nova One zaphod765@gmail.com, Mention mention@noreply.github.com Subject: Re: [Twoure/KissNetwork.bundle] Encryption Debugging (#63)

@IJ08 https://github.com/IJ08 , older episodes are now hosted on Rapidvideo.com, and the latest dev should account for them. If you're still having issues, then please include the zip cache as before.

@zaphod765 https://github.com/zaphod765 , yes logs are always needed.

‹ You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Twoure/KissNetwork.bundle/issues/63#issuecomment-2982675 57 , or mute the thread https://github.com/notifications/unsubscribe-auth/AU-eCuuUfiFZMzVBumkN3VcPP ETfNNyoks5r1SgVgaJpZM4M5dIR .

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4b b","name":"GitHub"},"entity":{"external_key":"github/Twoure/KissNetwork.bund le","title":"Twoure/KissNetwork.bundle","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143 418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"h ttps://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6 -9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/Twoure/KissNetwork.bundle"}},"updates":{"s nippets":[{"icon":"PERSON","message":"@Twoure in #63: @IJ08, older episodes are now hosted on Rapidvideo.com, and the latest dev should account for them. If you're still having issues, then please include the zip cache as before.\r\n\r\n@zaphod765, yes logs are always needed."}],"action":{"name":"View Issue","url":"https://github.com/Twoure/KissNetwork.bundle/issues/63#issueco mment-298267557"}}}

Twoure commented 7 years ago

@zaphod765, sorry, but you didn't attach logs or zip cache. Upload as attachment or host elsewhere and include the link in a comment or edit you last comment.

IJ08 commented 7 years ago

Downloading latest dev branch and reinstalling and then will bounce PMS. Will check if it works or not for the rapidshare server vids @Twoure

IJ08 commented 7 years ago

Man... you are a genius.. not sure what happened, I updated my dev branch 3 days ago as well... looks like there are multiple iterations during that day that could account for me downloading an earlier version w/o the rapidshare server fix commented in. @Twoure

Thank you!

j00j4nt200 commented 7 years ago

Recent adition,cartoon, drama working, on PC but asking for capcha. Manga don't using Nothing working on xbox360. I watch anime on xbox360. Shoud I make cache log on xbox360? rename docx to zip tnx :)

DataZipp.zip.DOCX

Twoure commented 7 years ago

@j00j4nt200, looks like you're not on the latest dev branch. Download the latest, install, clear channel DataHTTP cache, then restart PMS. The latest, should not keep cached pages if its asking for a captcha, that way if you pass it from your computer (on the same network), then it should work in the channel.

j00j4nt200 commented 7 years ago

@Twoure Can you please tell me what is latest verison? I go to dev: clone or download-download zip. After install it's 1.2.9, but on this thread is 1.3.0. I can't find how to download 1.3.0?

Twoure commented 7 years ago

@j00j4nt200, v1.3.0 is a milestone, i.e. when this thread is finished it will help indicate that v1.3.0 is close or ready for release.

Edit: Sorry, to clarify, v1.2.9 is technically the latest release (which mirrors the master branch), but the dev branch (i.e. development) is farther ahead in fixes/patches. As you can see here. Once I get enough feedback that the current dev branch is working stably, then I'll merge it into the master branch and create v1.3.0 release.

IJ08 commented 7 years ago

@Twoure heads-up, looks like the captcha for kissanime just changed. Your latest dev branch isn't working anymore. Let me test and upload the logs

IJ08 commented 7 years ago

Updated with LOGS - kissnetwork log.zip

p.s.

Can't watch anime again T_T

IJ08 commented 7 years ago

Update @Twoure only kissanime is affected on my latest issue posted. I tried kisscartoons and it is working fine.

IJ08 commented 7 years ago

Okay I tried the kissnetwork channel again after trying the fixes for the other channel but still no luck. Here are updated logs. LOGS.zip

Twoure commented 7 years ago

@IJ08 said: Okay I tried the kissnetwork channel again after trying the fixes for the other channel but still no luck.

Refer to Comment_1439247 for more info.

IJ08 commented 7 years ago

Thanks!. It was on the PLEX forum so I didn't notice.

L2501 commented 7 years ago

you could use their mobile site to get rapidvideo links without captcha and other bs