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] WebTools 2.x

dagalufhdagalufh Members, Plex Pass Posts: 111 Plex Pass
edited October 2016 in Plex Channels

About:

WebTools 2.x is a collection of utilities to help with the management of your Plex Server.
This plugin is not limited to the usual channel interface. Instead, it utilizes a built-in webserver to display a responsive web interface which also works on mobile devices, allowing you to manage your Plex Server from any device.

This tool was created by Dagalufh (Frontend) and Dane22 (Backend) with the beta testing from:

  • OttoKerner
  • sa2000
  • trumpy81
  • Xandi92
  • chuckpa

Currently the tools available are:

  • Logviewer

  • Subtitle Management

  • Unsupported AppStore
  • FindMedia

Logviewer

This tool allows for easy viewing of logs related to Plex and it's plugins via an easy to use web interface. It also gives you the ability to download all of the logs in a .zip file to easily send to a developer of a specific plugin.
(This includes logs of 3rd party plugins, contrary to the Log download button in Plex Web.)

Subtitle Management

The purpose of this tool is to give the user a way to manage subtitles that are not embedded.

Current features:

  • View the content of a subtitle file for easier identification.
  • Highlights the subtitle that is selected as active in Plex for a specific Movie or Episode
  • Removal of one or more subtitles. Usage is on your own risk as this will delete files on your hard drive.

Unsupported AppStore (UAS)

This tool was originally created by mikedm139 and was one of the most popular plugins in the Plex universe. Now, this is included in WebTools 2.0, giving it an easy to use web interface that allows for quick installation/removal/update of plugins.

For more information, please visit the UnsupportedAppStore thread

FindMedia

This tool will quickly search a library, and then compare the items in the Plex database to the actually accessible media files on disk. It will then list all missing items from either the Plex Media Server database, or from your file system. This tool combines the outcome from the 3rd party plugins "Find-Missing" and "Find-Unmatched".
Find-Unmatched is due to that discontinued, and removed from UAS.

User Guide:

It's with great pride, that we can announce, that one of the most dedicated Ninja's up here ( @trumpy81 ) has made a user guide, to the benefit of us all. It's fully integrated into WebTools and can be accessed via the help menu.

Installation:

Installation of WebTools is sadly a manual process, so here's what to do:

  • Download WebTools from GitHub, and select the file named WebTools.bundle.zip.
  • Extract it, and make sure, that the extracted directory is named: WebTools.bundle, it must end with .bundle
  • Make sure that inside the extracted directory, is a directory named "Contents", and if not, you might be a directory too low or high. If so, reorganize the folders with their contents.
  • Locate the plug-in folder of your Plex Media Server. For a support article about where that is, look here: https://support.plex.tv/hc/en-us/articles/202915258-Where-is-the-Plex-Media-Server-data-directory-located-
  • Copy the organised folder from above to the plugin directory

The directory structure should look like this:

Plugins
   |_ WebTools.bundle
      |_ Contents

Now wait a couple of minutes, and then check in the channels directory to see if you have a channel named WebTools. If not, restart the Plex Media Server.

Note:

You can also use the EasyInstaller if your Plex Media Server is running on:

  • AsuStore
  • QNAP
  • Synology
  • Windows

If running Docker, this might be helpful
3rd party article about how to install
Official Wiki

Usage:

To use this plugin, just type http://<Your-PMS-IP>:33400 into your browser's address bar.
It's a good idea to bookmark it.
The initial screen will be different, depending on your PMS setup:

  • If you are signed in to Plex.tv on your PMS, you use the same credentials here as it authenticates towards Plex.tv
  • If you are not signed in to Plex.tv, and it’s your first launch, you are required to set a password to use when accessing WebTools. This can later be changed from within the tool if you need to. On all the consecutive visits to WebTools you will use that password.

After login you are presented with a list of available tools:

LogViewer

When accessing this tool it loads up the Plex Media Server log. You can then via the drop-down select the log you wish to see.
There are no extra preferences available for this tool.

Subtitle Management

When accessing this tool it fetches a list of available libraries and populates a menu at the top.
By selecting one of the libraries, the tool starts to fetch a set amount of data and presents it to you.
If it’s a TV library, you can continue moving down the tree until you hit an episode
You can then select one or more subtitles for removal, view a subtitle, or upload a new one
This tool offers some extra preferences other than the default for WebTools, refer to the built-in help file for more details

Unsupported AppStore

See separate thread about usage for this over here


2016-10-23: Version 2.3
2016-04-25: Version 2.2
2016-01-14: Version 2.0
2015-10-25: Version 1.1
2015-10-11: Version 1.0
2014-11-01: Version 0.0.0.14

«13456735

Comments

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja
    Well this will never work for me as my ISP doesn't do/allow loopbacks on their modem/router so setting the external IP will never give me anything back.
  • dagalufhdagalufh Members, Plex Pass Posts: 111 Plex Pass
    edited October 2014

    Well, not really the external external.... I just mean the regular IP of your PMS box that is not the loopback (127.0.0.1).. For example: 192.168.1.x.

    Think this will work for you. :) Probably better than the PHP version! :D

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja
    edited October 2014

    Hmm, even after entering the internal IP (with or without the port) the tools still says:
    Bad or missing settings
    Select Preferences to set ip address of the PMS
    Afterwards, refresh this page
     

  • dagalufhdagalufh Members, Plex Pass Posts: 111 Plex Pass

    The address you enter should be only ip-address, nothing more.

    And after you've done that you click on the bundle and it says that the preferences has not been set?

    Can you check the logs and supply them to us?

    The specific logs for our bundle.

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja
    edited October 2014
    2014-10-30 11:36:54,254 (-bc8c470) :  DEBUG (__init__:130) - My master set the Export path to: 192.168.1.150
    2014-10-30 11:36:54,254 (-bc8c470) :  DEBUG (networking:172) - Requesting 'http://192.168.1.150:32400'
    2014-10-30 11:36:54,256 (-bc8c470) :  ERROR (networking:223) - Error opening URL 'http://192.168.1.150:32400'
    2014-10-30 11:36:54,256 (-bc8c470) :  CRITICAL (__init__:136) - Bad pmsPath
    2014-10-30 11:36:54,257 (-bc8c470) :  DEBUG (__init__:120) - **********  Ending MainMenu  **********
    You get a 401 Unauthorized if you try to use "http://192.168.1.150:32400" as you should on QNAPs. Only with "http://192.168.1.150:32400/web" can you actually open something.
  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,421 Plex Ninja
    Ismelda wrote on October 30 2014, 10:41 AM: »
    2014-10-30 11:36:54,254 (-bc8c470) :  DEBUG (__init__:130) - My master set the Export path to: 192.168.1.150
    2014-10-30 11:36:54,254 (-bc8c470) :  DEBUG (networking:172) - Requesting 'http://192.168.1.150:32400'
    2014-10-30 11:36:54,256 (-bc8c470) :  ERROR (networking:223) - Error opening URL 'http://192.168.1.150:32400'
    2014-10-30 11:36:54,256 (-bc8c470) :  CRITICAL (__init__:136) - Bad pmsPath
    2014-10-30 11:36:54,257 (-bc8c470) :  DEBUG (__init__:120) - **********  Ending MainMenu  **********
    You get a 401 Unauthorized if you try to use "http://192.168.1.150:32400" as you should on QNAPs. Only with "http://192.168.1.150:32400/web" can you actually open something.

    But.....On QNAP, as well as other platforms, you should be able to open <IP>:32400

    It should then show an XML.

    So I suspect a local issue with your setup

    /Tommy

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja

    As you know I I have basic understanding on how to make my NAS work (as long they work it is fine for me). I never touched anything much in the settings so it I wouldn't have blocked anything or allow anything.

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

    I think Ismelda has the option "Require authentication on local networks" turned on. You get a 401 Unauthorized error if not sending the correct authentication headers.

  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,421 Plex Ninja

    Good call

    /T

  • sander1sander1 Channel Developer/Admin Members, Plex Pass, Plex Ninja Posts: 3,482 Plex Ninja
    edited October 2014

    If the server is logged in to myPlex, you can get the required token (authToken) from the XML in this call: http://localhost:32400/myplex/account

    Then add the value as X-Plex-Token to the url, like so <url>?X-Plex-Token=<authToken> or send it as an http header.

  • dagalufhdagalufh Members, Plex Pass Posts: 111 Plex Pass

    Aha, nice sander1. Think we should be able to utilise that. Perhaps even in the bundle part. (Means more work for T!) ;)

  • dagalufhdagalufh Members, Plex Pass Posts: 111 Plex Pass

    @ismelda, if you turn of the require auth on local network. Does it work then? Just to confirm if thats the case.

  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,421 Plex Ninja
    dagalufh wrote on October 30 2014, 6:03 PM: »

    Aha, nice sander1. Think we should be able to utilise that. Perhaps even in the bundle part. (Means more work for T!) ;)

    Not sure here...........

    If Ismelda get's an Unauthorized response, then I fail to see we can retrieve the token....

    Unless Ismelda can confirm, that the loopback address is allowed?

    If so, then I can get the token via the loopback, and serve it to you, where you has to change all of your function calls  :D

    /T

  • dagalufhdagalufh Members, Plex Pass Posts: 111 Plex Pass
    Nooooooo... You can just append it ;)
  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,421 Plex Ninja
    dagalufh wrote on October 30 2014, 8:44 PM: »

    Nooooooo... You can just append it ;)

    :rolleyes:

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja
    edited October 2014

    What I can confirm is that http://<myIP>:32400?X-Plex-Token=<mySecretToken&gt; gives me an xml alright.

    http://localhost:32400/myplex/account or http://<myIP>:32400/myplex/account though give me a 401 unauthorized.

  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,421 Plex Ninja
    Ismelda wrote on October 30 2014, 9:07 PM: »

    What I can confirm is that http://<myIP>:32400?X-Plex-Token=<mySecretToken&gt; gives me an xml alright.

    http://localhost:32400/myplex/account or http://<myIP>:32400/myplex/account though give me a 401 unauthorized.

    Could you, as a small test, add the workstation you are using, as well as the IP addy of your QNAP, to the Allowed Networks in Plex?

    Like wkstn is running 192,168.1.33....then add 192.168.1.33/255.255.255.255 to the list.....and the same with the QNAP IP Addy, seperated with a comma

    /T

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja

    I did. Webtools still not working, neither does the myplex/account still throwing 401 error.

  • dane22dane22 Members, Plex Pass, Plex Ninja Posts: 9,421 Plex Ninja

    Then you didn't restart PMS after the change, or?

  • IsmeldaIsmelda Plex Ninja Members, Plex Pass, Plex Ninja Posts: 1,010 Plex Ninja

    or

«13456735
Sign In or Register to comment.