Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Newznab Plug-in

Featured Replies

I currently have a very basic plug-in out for testing. A couple bugs have been found and fixed so far.

 

Here is a copy/paste from my original post:

Here's what it does and doesn't do:

 

Does:

Download and install newznab

Adjusts the lighttpd.cfg to add the rewrite rules. NOTE: You must still restart the web server for the rules to take effect!

Will not let you install unless you have both the mysql plugin and the simple features web server plug-in.

NEW! - If Mysql or SF web server is not installed, gives download button to download and install the respective plug-ins.

 

Does not:

Install mysql and web server plug-ins

restart lighttpd automatically so rules take effect

Have the ability to install Newznab Plus(donate version)

 

I may add these features to the plug-in, but am on the fence about it right now.

I will be adding these features, with the possible exception of installing NN Plus, but I will investigate that as well.

 

It is basic right now, I'll add more when I get a chance and with feedback. Right now consider it "alpha" stage, I've tested every which way I can think of, so let me know if you find an issue!

 

newznab_unplugged.plg

 

EDIT: Also, haven't adjusted the icon size at all so it throws everything out of whack, will do that tomorrow

  • Replies 523
  • Views 105.9k
  • Created
  • Last Reply

You rule, I'll give this a go ASAP :)

 

Will this plugin start/stop the plus version after I get it installed?

Where should I put the plugin and can it download and install the plus version of newznab?

  • Author

The plug-in doesn't actually start/stop newznab. When its installed...its installed. Any starting/stopping would be done via the simplefeatures webserver plug-in. It will do so irrespective of if its the free or plus version.

 

You would put the plug-in with the rest of the plug-ins, in /boot/config/plugins/

 

It will not download the plus version(right now). I have not donated yet so don't have access to the information to have the plug-in download the plus version.

Hey, could we get svn installed with this so those of us with + can just update, rather than monkey files from our desktops? :)

 

The plus download is a username/password to an authenticated svn server BTW.

 

Perhaps short-term let us point to a tar.gz rather than download the free version?  As an option I mean.

  • Author

It's on the todo list.

Whopse, putting this in a new post

 

Would it be possible to point at a tar.gz file on the flash to install from as an option....for those of us with plus as a bridge.

  • Author

Also, since the server part is already handled the only thing that would need to be stopped is the update script. I'm looking into ways to stop that when the array is stopping.

 

Yeah I can see about adding that option. If a tar file is designated use that, if not pull down the free version.

Perfect man, I can just update on another server and zip it up

 

Just need to make sure the tar is built in the right spot, so it untars without like adding a directory to the path.

Keep up the great work, your plugins are really essential.

 

Huh, I did the "Install" and my datadir is empty.  It said extracting, so I'm a bit confused.  Can you give us a broad example of what the plugin will do?

  • Author

Jeez how are all these unraid systems so different from mine :P

 

It should download the free version and extract it to whatever you set as the server root... Check the permissions of that directory, I may have to chmod it beforehand.

Oh, I hit "Update plg" and it moved the existing one to ".old" but didn't get the new...whopse!  Guess it is still in testing ;).  Let me fix that and see what I can do.

  • Author

Yeah, the download is currently on my dropbox, I haven't put it on github yet. Even then the update plg won't work until its on the master branch.

Now the plugin thinks it is installed, hurm.

  • Author

If it thinks that it is finding the files installed to the directory you pointed to.

 

It'll look for automated.config.php in /www/, if that exists it will consider newznab installed. If install.lock isn't present(created after running the guided setup) it will show as not configured, if it is present it will show simply as running.

Anywhere to find info on configuring the web server? Default settings won't allow me to enable it.

  • Author

There is a thread on it in the User Customization sub-forum. What are you using as your web root?

I am still stuck on Not Configured. You asked that I post my lighttpd.cfg.

I get the 404 when I try to access http://tower:81 intall.

Thanks

 

# User customizations

# Add your own settings here. These won't get overwritten upon reboot

#

url.rewrite-once = (

"^/.*\.(css|jpg|jpeg|gif|png|js|ico)" => "/tmp/checkconfig",

  "^/(admin|install).*$" => "/tmp/checkconfig",

  "^/([^/\.]+)/?(?:\?(.*))$" => "index.php?page=&",

  "^/([^/\.]+)/?$" => "index.php?page=",

  "^/([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=&id=&",

  "^/([^/\.]+)/([^/]+)/?$" => "index.php?page=&id=",

  "^/([^/\.]+)/([^/]+)/([^/]+)/?$" => "index.php?page=&id=&subpage=" )

 

There is a thread on it in the User Customization sub-forum. What are you using as your web root?

 

/mnt/cache/apps/web

  • Author

I am still stuck on Not Configured. You asked that I post my lighttpd.cfg.

I get the 404 when I try to access http://tower:81 intall.

Thanks

 

# User customizations

# Add your own settings here. These won't get overwritten upon reboot

#

url.rewrite-once = (

"^/.*\.(css|jpg|jpeg|gif|png|js|ico)" => "/tmp/checkconfig",

  "^/(admin|install).*$" => "/tmp/checkconfig",

  "^/([^/\.]+)/?(?:\?(.*))$" => "index.php?page=&",

  "^/([^/\.]+)/?$" => "index.php?page=",

  "^/([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=&id=&",

  "^/([^/\.]+)/([^/]+)/?$" => "index.php?page=&id=",

  "^/([^/\.]+)/([^/]+)/([^/]+)/?$" => "index.php?page=&id=&subpage=" )

 

Try using mine, its the same but it fixed it for another user.

 

lighttpd.cfg

 

Inimical, check /boot/config/plugins/simpleFeatures/ and see if there is a simpleFeatures.cfg in there. If there is, see if there are any lighttpd variables in it.

I'm getting the 404 as well, doesn't look like a permissions thing as lighttpd is running as root.

 

Installdir for Newznab: /mnt/cache/AppData/Newznab

webroot  for lighttpd: /mnt/cache/AppData/Newznab

 

Also getting these errors from lighhtpd's php error log:

[13-Dec-2012 04:26:21 UTC] PHP Deprecated: Comments starting with '#' are deprecated in /boot/config/plugins/newznab/newznab.cfg on line 1 in /usr/local/emhttp/plugins/newznab/newznab.php on line 3
[13-Dec-2012 04:26:21 UTC] PHP Deprecated: Comments starting with '#' are deprecated in /boot/config/plugins/simpleFeatures/simpleFeatures.cfg on line 1 in /usr/local/emhttp/plugins/newznab/newznab.php on line 4
[13-Dec-2012 04:26:21 UTC] PHP Notice: Use of undefined constant PLG_STORAGESIZE - assumed 'PLG_STORAGESIZE' in /usr/local/emhttp/plugins/newznab/newznab.php on line 13
[13-Dec-2012 04:26:21 UTC] PHP Notice: Use of undefined constant PLG_DATACHECK - assumed 'PLG_DATACHECK' in /usr/local/emhttp/plugins/newznab/newznab.php on line 15
[13-Dec-2012 04:26:21 UTC] PHP Notice: Undefined index: PLG_DATACHECK in /usr/local/emhttp/plugins/newznab/newznab.php on line 15
[13-Dec-2012 04:26:21 UTC] PHP Notice: Use of undefined constant PLG_STORAGESIZE - assumed 'PLG_STORAGESIZE' in /usr/local/emhttp/plugins/newznab/newznab.php on line 86
[13-Dec-2012 04:26:21 UTC] PHP Notice: Undefined variable: newznab_datacheck in /usr/local/emhttp/plugins/newznab/newznab.php on line 89

I am still stuck on Not Configured. You asked that I post my lighttpd.cfg.

I get the 404 when I try to access http://tower:81 intall.

Thanks

 

# User customizations

# Add your own settings here. These won't get overwritten upon reboot

#

url.rewrite-once = (

"^/.*\.(css|jpg|jpeg|gif|png|js|ico)" => "/tmp/checkconfig",

  "^/(admin|install).*$" => "/tmp/checkconfig",

  "^/([^/\.]+)/?(?:\?(.*))$" => "index.php?page=&",

  "^/([^/\.]+)/?$" => "index.php?page=",

  "^/([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=&id=&",

  "^/([^/\.]+)/([^/]+)/?$" => "index.php?page=&id=",

  "^/([^/\.]+)/([^/]+)/([^/]+)/?$" => "index.php?page=&id=&subpage=" )

 

Try using mine, its the same but it fixed it for another user.

 

lighttpd.cfg

 

Inimical, check /boot/config/plugins/simpleFeatures/ and see if there is a simpleFeatures.cfg in there. If there is, see if there are any lighttpd variables in it.

 

No simplefeatures.cfg file, only lighttpd.cfg. I used your plugin.

  • Author

Those errors are just a "catch all", the errors are actually coming from the plug-in settings page and will happen for all of the settings pages. They can be ignored.

 

I'll try a completely fresh install, I swear I haven't had these issues at all and I've made about 100 web roots to test, lol.

 

simpleFeatures should be creating a cfg in that location. Try running this:

 

chmod 777 /boot/config/plugins/simpleFeatures
touch /boot/config/plugins/simpleFeatures/simpleFeatures.cfg
chmod 777 /boot/config/plugins/simpleFeatures/simpleFeatures.cfg

 

Then try to set the web server up again.

 

Out of interest, are you using the plug-in simpleFeatures.web.server.1.0.5-noarch-1.plg?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.