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] PornHub (XXX)

NotVinnyNotVinny Members Posts: 25 ✭✭
edited July 2016 in Plex Channel Plugins

I've created a channel to view videos hosted on PornHub.

Features:

  • Browse videos with various sort options (newest, most viewed, etc)
  • Categories
  • Channels
  • Porn Stars
  • Playlists
  • Members
  • Search

This channel is available in the Unsupported App Store v2. You can also download the bundle from GitHub to install manually.

Side story: I forked this from the original PornHub channel which stopped working long ago. I've created a pull request with all of my changes, but it seems like the original author hasn't been active on GitHub in 5 years, so I'm not holding my breath. If by some crazy happenstance the original author reads this (or someone knows them), I'd love to have you accept my pull request and hopefully even make me a contributor on the original repo. Until then, I'll be maintaining my fork. If enough time goes by, I might contact GitHub to remove me from "forked" status and have it as it's own stand-alone repo. Who knows. Anyways, enjoy the channel.

Also credit to @Nosinden for the idea to have a video sub-menu where you can see what porn stars are in the video, etc. Will be updating that with thumbnails eventually, much like his SpankBang channel. That dude makes good channels.

Comments

  • NotVinnyNotVinny Members Posts: 25 ✭✭
    edited July 2016

    New Release: v1.1

    This release mainly enhances the video and member menus. Some minor tweaks and bug fixes have been included as well. Please download update through UAS2.

    Note: After updating to v1.1, a restart of Plex Media Server is necessary.

    Full release details on GitHub.

  • markymanmarkmarkymanmark Members Posts: 192 ✭✭

    @NotVinny HI there,sorry to trouble you once again,was wondering if you can do any work on the xhamster plugin,another great channel.there currently two plugins available from flownex and i think LanRochpenn,neither working too well at the moment.sorry for posting on this thread as nor related,but would be great if you could do some work on the plugin to get it full functional.

  • NotVinnyNotVinny Members Posts: 25 ✭✭
    edited August 2016

    Hey @markymanmark, I sent you a longer PM, but I'll just say again I'll get around to it, but I have no timelines.

    In other news, I do plan on starting 1.2 of PornHub in a few minutes. I think I know exactly what I need to do so I'm hoping to get it released very soon, maybe even tonight depending how much time I have to test... It will be very late into the night if it does get out. I've been hitting a wall with something, but I think I've finally figured it out. We'll see

    EDIT: Realized the code changes I'm looking to make are much more extensive than originally imagined. Ended up eating pizza and falling asleep. Changes are coming... eventually

  • cvelecvele Members, Plex Pass Posts: 1 Plex Pass

    Hi, I'm having issues with this channel.
    Whenever I get to page that's supposed to display video list I get message "This channel is not responding".

    Here is error from log:

    2016-12-09 10:02:48,625 (1e28) :  DEBUG (runtime:717) - Handling request GET /video/pornhub/videos/list?url=http%3A%2F%2Fpornhub.com%2Fvideo%3Fc%3D105%26o%3Dmr&title=Most+Recent
    2016-12-09 10:02:48,627 (1e28) :  DEBUG (runtime:814) - Found route matching /video/pornhub/videos/list
    2016-12-09 10:02:48,640 (1e28) :  DEBUG (networking:166) - Requesting 'http://pornhub.com/video?c=105&o=mr'
    2016-12-09 10:02:49,556 (1e28) :  CRITICAL (core:574) - Exception (most recent call last):
      File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1751929\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request
        result = f(**d)
      File "C:\Users\vladimir\AppData\Local\Plex Media Server\Plug-ins\PornHub.bundle\Contents\Code\PHCommon.py", line 149, in ListVideos
        duration = (hours*3600 + minutes * 60 + seconds) * 1000
      File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-1751929\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 108, in <lambda>
        _getitem_           = lambda x, y: x.__getitem__(y),
    
    
    2016-12-09 10:02:49,559 (1e28) :  DEBUG (runtime:88) - Sending packed state data (1808 bytes)
    2016-12-09 10:02:49,559 (1e28) :  DEBUG (runtime:924) - Response: [500] 875 bytes
    2016-12-09 10:05:51,404 (1e4c) :  DEBUG (runtime:717) - Handling request GET /:/events/systemBundleRestarted
    2016-12-09 10:05:51,405 (1e4c) :  DEBUG (runtime:814) - Found route matching /:/events/systemBundleRestarted
    2016-12-09 10:05:51,405 (1e4c) :  DEBUG (plugin:45) - System bundle restarted - reloading services
    2016-12-09 10:05:51,411 (1e4c) :  DEBUG (runtime:1117) - Created a thread named 'load_all_services'
    2016-12-09 10:05:51,411 (1e4c) :  DEBUG (runtime:924) - Response: [200] str, 0 bytes
    2016-12-09 10:05:51,418 (1f00) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
    2016-12-09 10:05:51,421 (1f00) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
    2016-12-09 10:06:08,653 (1f00) :  DEBUG (services:362) - Loaded services
    
  • sander1sander1 Channel Developer/Admin Members, Plex Pass, Plex Ninja Posts: 3,633 Plex Ninja

    @NotVinny said:
    [...]
    Side story: I forked this from the original PornHub channel

    Hi!
    Just for your information, everything under "plex-unofficial" on Github is stuff from other authors. The user "plex-unofficial" is not the original author of the stuff you find under his username. He just forked and/or reuploaded stuff that is now very old and very broken.

  • Rainey01Rainey01 Members Posts: 251 ✭✭

    I get the same thing as cvele above
    Whenever I get to page that's supposed to display video list I get message "This channel is not responding".

  • NotVinnyNotVinny Members Posts: 25 ✭✭

    Thanks for the heads up everyone, I'll try to take a look at this tonight and throw a bandaid fix on it. I have to do some Christmas shopping still, but I'll try to get you guys an early Christmas present as well :D

  • sander1sander1 Channel Developer/Admin Members, Plex Pass, Plex Ninja Posts: 3,633 Plex Ninja

    @NotVinny said:
    Thanks for the heads up everyone, I'll try to take a look at this tonight and throw a bandaid fix on it. I have to do some Christmas shopping still, but I'll try to get you guys an early Christmas present as well :D

    You have 2 pull requests that probably fix the issue reported here.

  • NotVinnyNotVinny Members Posts: 25 ✭✭

    @sander1 I noticed that right after I made the post :D

    I've released v1.1.1. I'll be the first to admit it's a little hasty, I basically just merged one pull request (big thanks to @desertwitch) and the changes I already had made in the v1.2 branch. I still have a whole bunch of work I want to do on this, I have just been quite busy lately. I've had the code mapped out in my head for months, it's just a matter of sitting down at home and actually putting my fingers to the keyboard for a bit. I have some time off work with the holidays coming up, but between visiting my family, friends, and girlfriend's family, I feel like I'll only be more busy, not less lol.

    Also, but thanks to @Pip Longrun for your pull request. I like the idea, I'm running into a merge conflict after merging my v1.2 branch changes into main now though. What I'll likely do is implement those ideas into the v1.2 branch (when I finally get around to it). I'll write some more details onto the merge request tomorrow. Today was been work, Christmas shopping, and the last ~45 minutes to re-familiarize myself with my own code base and get this release pushed out. Now it's time for bed lol. Enjoy everyone

  • OUROBOROS02OUROBOROS02 Members, Plex Pass Posts: 1 Plex Pass

    Hey, how's it going?

    Wondering if you could assist. Keep getting "Sorry, we couldn't load the requested content" on every Video. I updated everything. Even re-installed. Same issue. Been getting it on redtube plug-in as well so doesn't look like it's plug-in specific. Any suggestions on narrowing it down?

    Thanks.

  • spacecabbiespacecabbie Members, Plex Pass Posts: 3

    Keep getting This channel is not responding. is it currently broken ?

  • DavidreverettDavidreverett Members, Plex Pass Posts: 57 Plex Pass
    edited March 16

    Seems to be...

    2017-03-08 21:42:49,588 (7f5a0bd11710) :  CRITICAL (runtime:889) - Exception (most recent call last):
      File "/raid0/data/module/Plex/sys/Resources/Plug-ins-b46e0ea/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
        result = f(**d)
      File "/raid/data/module/Plex/sys/Plex Media Server/Plug-ins/PornHub.bundle/Contents/Code/PHCommon.py", line 216, in VideoMenu
        relatedVideosThumb =    relatedVideos[0].xpath("./a/div[contains(@class, 'img')]/img/@data-mediumthumb")[0]
      File "/raid0/data/module/Plex/sys/Resources/Plug-ins-b46e0ea/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in <lambda>
        _getitem_           = lambda x, y: x.__getitem__(y),
    IndexError: list index out of range
    

    Plex Server: Thecus NAS N5550 8GB RAM Intel D2550 @ 1.86Ghz 5*ST6000VN0001 6TB Drives
    Couch Potato (Current Version)

  • planetab72planetab72 Members, Plex Pass Posts: 42 Plex Pass

    Is this expected to still be broken? I'm getting directory appears to be empty.

  • NotVinnyNotVinny Members Posts: 25 ✭✭
    edited May 20

    Hey everyone, sorry for the absence. I finally have my dev environment setup again, but I'm having trouble fixing this problem. PornHub has really obfuscated the paths to their video files, stringing it together with some random javascript jargon. I fixed the issue being reported above (dealing with related videos) easy enough, but this new problem is really stumping me. If anyone has any clue and wants to take a stab at it to help out that would be awesome. I'm sure I could do some ugly regex hacking to find all of the necessary javascript variable values and plug it in, but that just sounds awful lol. Maybe there's some simple solution that I'm missing.

    Scratch all that. I originally looked at this problem last weekend. I may have been a little (lot) drunk. Now that I'm looking with sober eyes, I'm pretty sure it's a quick fix. Stay tuned.

    Aaaaand here we go. v1.1.2 released to the master branch. Channel should be operational again.

  • Michael-AlanMichael-Alan Members, Plex Pass Posts: 43 Plex Pass

    @NotVinny

    Thank you for the fix! It is working.

    Michael-Alan

  • oliveryatcooliveryatco Members, Plex Pass Posts: 1 Plex Pass

    @NotVinny ,

    Thanks it works!

  • ADvADv Members Posts: 9 ✭✭

    @NotVinny said:
    I've created a channel to view videos hosted on PornHub.

    My HDD give your All Thanks for this plugin

  • ZyntaxZyntax Members, Plex Pass Posts: 20 Plex Pass

    @NotVinny said:
    I've created a channel to view videos hosted on PornHub.

    Features:

    • Browse videos with various sort options (newest, most viewed, etc)
    • Categories
    • Channels
    • Porn Stars
    • Playlists
    • Members
    • Search

    I installed this through the v2 Appstore. It works great except I'm missing the "Search" option in the menu.

  • SpezjrSpezjr Members Posts: 6 ✭✭
    edited July 27

    I was suprised to learn that there was even supposed to be a search feature. It's missing for me as well.

  • SMARTTVPLEXSMARTTVPLEX Validating, Plex Pass Posts: 6 Plex Pass

    In android gives error when launching video on pc works perfect

Sign In or Register to comment.