Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

[REL] KissNetwork

TwoureTwoure Members Posts: 574 ✭✭✭
edited March 28 in Plex Channels

KissNetwork.bundle



Channel Broken: 3/15/17 - Refer to Comment_1397287

Updated: 03/14/17 - Version: 1.2.9

View content from the following websites: Kissanime.ru, Kissasian.com, Kisscartoon.se, Kissmanga.com, and ReadComicOnline.to. It is currently under development and as such, should be considered alpha software and potentially unstable.

NOTE: (1) If you have any issues please include Logs as an attachment or upload to a site like Pastebin and share the link. For Windows your username is included in your log files. It's generated whenever a Path is logged because the Channel is located within your users AppData. This does not apply to Windows Server if the Channel is installed in the Admin user folder. Delete/Replace your username before posting logs if concerned.

NOTE: (2) The author of this plugin has no affiliation with the Kiss sites nor the owners of the content that they hosts.


Features

  • Watch video content across all Kiss sites (quality ranges from 360p to 1080p)
  • Choose which sites to view content, hide/disable others
  • Option to Block most Adult content
  • Read manga from Kissmanga
  • Read Comics from ReadComicOnline
  • Create custom Bookmarks
  • Search all sites for Videos/Manga/Comics

Channel Support

Plex Media Server:
  • Tested Working:
    • Ubuntu 14.04 LTS: PMS version 1.4.2 (works with channel transcoding)
    • Windows 7: PMS version 0.9.16.6 (untested since v1.2.1)
Plex Clients:
  • Tested Working:
    • Plex Home Theater (Ubuntu 14.04 LTS, v1.4.1)
    • OpenPHT (Ubuntu 14.04 LTS, v1.6.2)
    • Android (4.4.2) (Plex Client App, v5.6.1.505)
    • Android (7.1.1) (Plex Client App, v5.6.1.505)
    • Plex Media Player (1.1.4)
    • Plex/Web (3.0.1) (Videos)
    • Chromecast (Videos, Pictures)

How To Install

  1. This channel can be installed via WebTools.bundle or manually follow the directions below.
  2. Download the latest and install KissNetwork by following the Plex instructions or the instructions below.
  3. Unzip and rename the folder to KissNetwork.bundle
  4. Copy KissNetwork.bundle into the PMS Plug-ins directory
  5. Unix based platforms need to chown plex:plex -R KissNetwork.bundle after moving it into the Plug-ins directory (user:group may differ by platform)
  6. Restart PMS

Operation

Issues

Plans

ChangeLog

View Content on GitHub


Source code: https://github.com/Twoure/KissNetwork.bundle
Development code: https://github.com/Twoure/KissNetwork.bundle/tree/dev

«13456742

Comments

  • TwoureTwoure Members Posts: 574 ✭✭✭

    Just realized that the important cookies for Kissasian.com expire after 1.5 hours. Currently the channel is setup to cache cookies every 24 hours, so the kissasian (Drama) part breaks after 1.5 hours. This also breaks the search function.

    Working on fix now. I'll post an update once finished. Thinking I'll fix it by caching the time the cookie was stored and do a check against it. Once expired it will get a new cookie just for the kissasian site. Depending on how well this works, I may even switch to that for all the cookies since they all vary in duration. Some a few days, other are a day.

  • TwoureTwoure Members Posts: 574 ✭✭✭
    edited October 2015

    duplicate comment

  • TwoureTwoure Members Posts: 574 ✭✭✭

    @Twoure said:
    Just realized that the important cookies for Kissasian.com expire after 1.5 hours. Currently the channel is setup to cache cookies every 24 hours, so the kissasian (Drama) part breaks after 1.5 hours. This also breaks the search function.

    Sorry for the double post, don't know what is going on there.

    Just pushed my fix to GitHub for the header cookies cache time. Now instead of re-caching cookies every 24hrs, the channel now checks the cookies expire date and only updates it's cookie when it expires.

  • TwoureTwoure Members Posts: 574 ✭✭✭
    edited October 2015

    duplicate comment

  • TwoureTwoure Members Posts: 574 ✭✭✭

    Version 0.04

    Moved header caching to "Shared Code" and improved header cache times. If you have issues, please check them against the current "Known Issues". Otherwise feel free to ask here or create an issue over at GitHub.

    Cheers

  • miniopminiop Members, Plex Pass Posts: 238 Plex Pass

    @Twoure Good job !! amazing plugin . Thanks

  • miniopminiop Members, Plex Pass Posts: 238 Plex Pass

    @Twoure is it possible to add in each section the new & hot , most popular . In drama new drama, top day, top week, top month and in cartoon the same ?

    Thanks

  • TwoureTwoure Members Posts: 574 ✭✭✭

    @miniop said:
    Twoure is it possible to add in each section the new & hot , most popular . In drama new drama, top day, top week, top month and in cartoon the same ?

    Thanks

    @miniop yes actually I'm currently working on that for the next version. Thanks for the feedback.

  • miniopminiop Members, Plex Pass Posts: 238 Plex Pass

    thats great !! thanks

  • Vicious942Vicious942 Members, Plex Pass Posts: 2 Plex Pass

    Tried playing Anime, and it always comes back as "Plex Media Server not responding"

  • Vicious942Vicious942 Members, Plex Pass Posts: 2 Plex Pass

    @Vicious942 said:
    Tried playing Anime, and it always comes back as "Plex Media Server not responding"

    Nevermind above post. Was trying to play from show view, rather than episode view.

  • TwoureTwoure Members Posts: 574 ✭✭✭

    Version 0.05 is almost ready, still working out some bugs. You can always track my progress by viewing the dev branch.

    In the mean time, yesterday I found out that the kisscartoon.me cookies are being cached for too long. I have them currently set to refresh every 16 days but they time out at 8 days. This is fixed in Version 0.05 where I have them set to refresh every 7 days.

    If you continue to see this message:

    "Please wait a second or two while the URL Headers are set, then try again."
    

    when trying to access cartoons from kisscartoon.me, then the cookies have either timed out or the site is down. If the cookies timed out then you will need to delete the Header_Dict file located in:

    Windows

    On Windows, the content is located inside of the user directory.

    "%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Data\com.plexapp.plugins.kissnetwork\Header_Dict"
    

    OS X

    Using the Finder's "Go" menu, select Go To Folder... then enter the following in the dialog box that pops up:

    "~/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.kissnetwork/Header_Dict"
    

    Linux

    In general, the Plug-In Support folder for the various Linux versions of Plex Media Server will be found under:

    "$PLEX_HOME/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.kissnetwork/Header_Dict"
    

    Locations taken from here. We want 'Data' not 'Caches'.

    Once the file is removed, either restart Plex Media Server and wait for the header dictionary to rebuild (takes about 20 seconds) or try and access content from the KissNetwork channel and wait for the header dictionary to rebuild (same ~20sec).

    Or the alternative, you can just edit the test.pys file in the Shared Code section and set the Cartoon time_constant to 'Cartoon': Datetime.Delta(days=7), located within the GetHeadersForURL() function.

  • moneyblindmoneyblind Members, Plex Pass Posts: 3 Plex Pass
    edited October 2015

    I keep getting a "this channel is not responding".

    I have been having it for a bit and it suddenly started randomly. No update to my server box or anything.

    <br /> 2015-10-26 20:21:16,799 (7f7a48ff9700) : DEBUG (runtime:814) - Found route matching /video/kissnetwork/bookmarkssub<br /> 2015-10-26 20:21:16,799 (7f7a48ff9700) : DEBUG (<strong>init</strong>:1060) - category Anime<br /> 2015-10-26 20:21:16,800 (7f7a48ff9700) : DEBUG (runtime:106) - Sending packed state data (112 bytes)<br /> 2015-10-26 20:21:16,800 (7f7a48ff9700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1305 bytes<br /> 2015-10-26 20:21:32,571 (7f7a48ff9700) : DEBUG (runtime:717) - Handling request GET /video/kissnetwork<br /> 2015-10-26 20:21:32,572 (7f7a48ff9700) : DEBUG (runtime:814) - Found route matching /video/kissnetwork<br /> 2015-10-26 20:21:32,572 (7f7a48ff9700) : DEBUG (base:117) - Checking if com.plexapp.plugins.kissnetwork is broken<br /> 2015-10-26 20:21:32,573 (7f7a48ff9700) : DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzEKY29tLnBsZXhhcHAucGx1Z2lucy5raXNzbmV0d29ya3MxMAppZGVudGlmaWVycjAK'<br /> 2015-10-26 20:21:32,577 (7f7a48ff9700) : DEBUG (runtime:106) - Sending packed state data (112 bytes)<br /> 2015-10-26 20:21:32,577 (7f7a48ff9700) : DEBUG (runtime:918) - Response: [200] MediaContainer, 1981 bytes<br /> 2015-10-26 20:21:32,586 (7f7a48ff9700) : DEBUG (runtime:717) - Handling request GET /video/kissnetwork/item?art=art-anime.png&amp;item_title=Fairy+Tail+%28Dub%29&amp;type_title=Anime&amp;item_sys_name=Fairy-Tail-Dub&amp;page_url=http%3A%2F%2Fkissanime.com%2FAnime%2FFairy-Tail-Dub<br /> 2015-10-26 20:21:32,587 (7f7a48ff9700) : DEBUG (runtime:814) - Found route matching /video/kissnetwork/item<br /> 2015-10-26 20:21:32,587 (7f7a48ff9700) : DEBUG (test:81) - url to get headers = http://kissanime.com/Anime/Fairy-Tail-Dub<br /> 2015-10-26 20:21:32,589 (7f7a48ff9700) : CRITICAL (runtime:883) - Exception (most recent call last):<br /> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request<br /> result = f(**d)<br /> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/KissNetwork.bundle/Contents/Code/__init__.py", line 582, in ItemPage<br /> Logger('testing GetHeadersForURL | %s' %Test.GetHeadersForURL(page_url))<br /> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/KissNetwork.bundle/Contents/Services/Shared Code/test.pys", line 101, in GetHeadersForURL<br /> cachetime = Datetime.ParseDate(header_data[type_title]['date'])<br /> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/utilkit.py", line 418, in ParseDate<br /> result = dateutil.parser.parse(date)<br /> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/dateutil/parser.py", line 700, in parse<br /> return DEFAULTPARSER.parse(timestr, **kwargs)<br /> File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/dateutil/parser.py", line 302, in parse<br /> raise ValueError, "unknown string format"<br /> ValueError: unknown string format</p> <p>2015-10-26 20:21:32,589 (7f7a48ff9700) : DEBUG (runtime:106) - Sending packed state data (112 bytes)<br /> 2015-10-26 20:21:32,589 (7f7a48ff9700) : DEBUG (runtime:918) - Response: [500] 1627 bytes<br />

  • TwoureTwoure Members Posts: 574 ✭✭✭

    @moneyblind what does your "Header_Dict" file look like? My previous post explains it's location. The date section should be a string, but I vaguely remember this being a problem and fixed it in the new unreleased version(I think), but don't remember right now. Bottom line, it sounds like the date isn't being cached correctly, i.e. malformed. Do you have the latest version of my channel? Anyway, let me know what the "date" section says in your "Header_Dict" file.

    Header_Dict should look like this

    {
        "Anime": {
            "cookie": "cf_clearance=7f39ffe27921407ad509ac4719654e784b13fc1b-1445492187-604800; __cfduid=d00b2b71c9669ea1800a6e030f22ee5d21445492180",
            "date": "2015-10-22 00:36:35.168437",
            "referer": "http://kissanime.com",
            "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"
        },
        "Cartoon": {
            "cookie": "cf_clearance=95531afe54c4c86f8a73792ee6c1644f2b283a98-1445494798-604800; __cfduid=dcfc4c6d078ff7cdeeee5cc34798532451445494791",
            "date": "2015-10-22 01:20:05.313643",
            "referer": "http://kisscartoon.me",
            "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"
        },
        "Drama": {
            "cookie": "cf_clearance=45e669309c1e6256252361163b6fd0c4b4cd2f54-1445910511-1800; __cfduid=d617229e44693236cab0b155537b5dfb41445910506",
            "date": "2015-10-26 20:48:35.265397",
            "referer": "http://kissasian.com",
            "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"
        },
        "Manga": {
            "cookie": "cf_clearance=; __cfduid=de92f230ebb560c6f526a659680c12d411444882354",
            "date": "2015-10-14 23:12:47.191006",
            "referer": "http://kissmanga.com",
            "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"
        }
    }
    
  • moneyblindmoneyblind Members, Plex Pass Posts: 3 Plex Pass
    edited October 2015

    I actually deleted the Header_Dict file in an attempt to see if that worked; No go after restarting the service restart. This is what is there now.

    moneyblind@ubuntuServer:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.kissnetwork$ cat Header_Dict
    {
    "Anime": {
    "cookie": "test",
    "date": "test",
    "referer": "test",
    "user-agent": "test"
    }
    }
    moneyblind@ubuntuServer:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.plugins.kisnetwork$

  • moneyblindmoneyblind Members, Plex Pass Posts: 3 Plex Pass
    edited October 2015

    Alright, now that i am awake and doing this; The issue was actually the Dict file;

    My Steps:
    Stop the plex service (sudo service plexmediaserver stop)
    Rename Dict to "Dict.old"
    Delete Headers_Dict
    Started plex (sudo service plexmediaserver start)

    Working.

  • TwoureTwoure Members Posts: 574 ✭✭✭

    Hmm, I noticed that for http://kissanime.com/Anime/Fairy-Tail-Dub the summary has some artifacts in it when I add it to my bookmarks. May have been a string error from that.

    Otherwise the Header_Dict is tied to the Dict by a check. If you've ever built the Header_Dict a key is set in the Dict that is checked every time the channel is restarted. That way it's not rebuilding the Header_Dict from scratch each time the channel restarts. What your Header_Dict did was create a default line to be filled later but wasn't being filled for some reason. In the new version I'm moving away from not checking the headers on start and setting it up to check each kiss site's headers if the Header_Dict is already created and the channel has restarted. Sorry for the header shenanigans, wish the Kiss sites didn't need them.

    Errors like this makes me think It might be better to move the bookmarks into their own file separate from the Dict, so when/if the Dict has an error it wouldn't effect the bookmarks. And/or being separate would/could help isolate errors.

  • TwoureTwoure Members Posts: 574 ✭✭✭

    Version 0.05

    • Due to a string encode/decode error you will need to Clear All Bookmarks before updating from 0.04 to 0.05.
    • Top list now included in Cartoons and Drama as-we-as each Kiss site's default home page list (Latest Update, New, Most Popular, etc...). The "Sort List" option in the Prefs is for the "All", "Alphabets", "Genres", "Country", and "Movie" list. All other list are governed by their Kiss site defaults.
    • Metadata for videos is now either Movie, Episode, or Video Clip. Improved overall Metadata and Summary lookup.
    • Block Adult Content. This keys off an item's Genre List.

      • Note: KissCartoon does not categorize adult/mature cartoons but has some, so the adult block option will not work with KissCartoon.
    • Fixed KissCartoon cache time error. Was cached for too long. Moved cache time from 16 days to 7 days.

    • Headers are now check on each start of the channel, that way if a header needs to be updated it can do so in the background. If you access a site before it's ready, it should give you a popup warning to wait, or it may just time out.

    If you have issues, please check them against the current "Known Issues". Otherwise feel free to ask here or create an issue over at GitHub.


    Source: https://github.com/Twoure/KissNetwork.bundle
    Development: https://github.com/Twoure/KissNetwork.bundle/tree/dev

  • sertismediahsertismediah Members Posts: 2

    First time installing this plugin, and i'm getting repeated "Please wait a second" messages on all sites. Deleting the Header_Dict file doesn't appear to work.{
    "Anime": {
    "cookie": "test",
    "date": "test",
    "referer": "test",
    "user-agent": "test"
    }

    Interesting there's only one object, none for the other sites even though I attempted to use them.

  • TwoureTwoure Members Posts: 574 ✭✭✭

    @sertismediah What operating system is your Plex server running on? Without seeing your logs, my first guess is the cloudflare-scrape code is not running properly on your platform. Please enable "Enable Debug Logging" in KissNetwork's Prefs and watch your Log file for errors. I retested again on my systems starting from fresh install and was not able to reproduce your error.

    For Linux: in a terminal use tail -f $PLEX_HOME/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.plugins.kissnetwork.log

    For Windows: Use Powershell to watch the log files. Info here on how to do that.

«13456742
Sign In or Register to comment.