Jump to content
spants

Spotweb Module anyone?? News index php/web

73 posts in this topic Last Reply

Recommended Posts

 

if you use $SERVER["socket"] option, you should be able to assign any ports you want to an web app that gets installed under simplefeature web server.

 

so much easier for the rewrite rule as well because you can assign rewrite rule to each sockets and not worry about it conflicting with any other app.

 

I don't use Spotweb, but I edited my lighttpd.cfg using this method in order to use separate rewrite rules for newznab and phpMyAdmin.  It works now, but  when I try to send a nzb from newznab directly to SABbnzbd using SABnzbd's api, SABnzbd gets stuck at "trying to fetch nzb..." It does have the the correct url of the nzb file, (if I paste the url in the web browser it gets the file.)  Any suggestions?

Share this post


Link to post

What is the best way to update the spotweb software? without to starting from scratch ?

 

//Peter

Share this post


Link to post

Anyone having trouble accessing their spotweb server outside of their own network?

 

I installed it as public, and can accessing it using the socket setup as described earlier.  I know my port forwarding is fine, as my newznab server can be seen outside with no problems.  Tried multiple ports, and still no go.

 

I have to think its preventing non network connections, but can't figure out where to tweak that file.

Share this post


Link to post

What is the best way to update the spotweb software? without to starting from scratch ?

 

//Peter

 

I have just done this. If you have a standard install (not hand edited any files) it is easy.

1) Copy the new files over the top. I did this via smb share

2) open terminal session as root

3) cd to the directory where it is installed (mine is /mnt/cache/.custom/www/spotweb)

4) type: php upgrade-db.php

5) for luck, I restarted the web server

 

Tony

Share this post


Link to post

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

$SERVER["socket"] == "192.168.1.105:85" {
server.document-root = "/mnt/cache/Apps/www/newznab/www/"

url.rewrite-once = (
	"^/.*\.(css|jpg|jpeg|gif|png|js|ico)" => "$0",
	"^/(admin|install).*$" => "$0",
	"^/([^/\.]+)/?(?:\?(.*))$" => "index.php?page=$1&$2",
	"^/([^/\.]+)/?$" => "index.php?page=$1",
	"^/([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=$1&id=$2&$3",
	"^/([^/\.]+)/([^/]+)/?$" => "index.php?page=$1&id=$2",
	"^/([^/\.]+)/([^/]+)/([^/]+)/?$" => "index.php?page=$1&id=$2&subpage=$3"
)
}

$SERVER["socket"] == "192.168.1.105:86" {
server.document-root = "/mnt/cache/Apps/www/spotweb/"

url.rewrite-once = ( 
	"^/api\?(.*)" => "/index.php?page=newznabapi&$1" 
)
}

 

gave this install a try last night, after another newznab broken db.

 

got everything working and indexing, but sickbeard is giving me an error loading

 

 Error loading Unraid URL: http://unraid:85/api?age=1100&apikey=b970881d6174f26badc3a40759ea1ab8&t=tvsearch&cat=5040%2C5030
Error loading Spotweb URL: http://unraid:86/api?age=1100&t=tvsearch&cat=5040%2C5030

 

wierd part is, if i manually copy/paste both of those urls, i get the xml page and i can manually search and find the show i'm looking for ...

Share this post


Link to post

What is the best way to update the spotweb software? without to starting from scratch ?

 

//Peter

 

I have just done this. If you have a standard install (not hand edited any files) it is easy.

1) Copy the new files over the top. I did this via smb share

2) open terminal session as root

3) cd to the directory where it is installed (mine is /mnt/cache/.custom/www/spotweb)

4) type: php upgrade-db.php

5) for luck, I restarted the web server

 

Tony

 

Thanks, but what would a GIT command be to update a previous version ?

 

Below code is to DL using GIT , but it want allow to run on a folder that already exist

Code: [select]

Code: [select]
git clone -b master https://github.com/spotweb/spotweb spotweb

This will create a sub directory (spotweb) in your webroot and download files from github.

 

 

//Peter

 

Share this post


Link to post

got everything working and indexing, but sickbeard is giving me an error loading

 

 Error loading Unraid URL: http://unraid:85/api?age=1100&apikey=b970881d6174f26badc3a40759ea1ab8&t=tvsearch&cat=5040%2C5030
Error loading Spotweb URL: http://unraid:86/api?age=1100&t=tvsearch&cat=5040%2C5030

 

wierd part is, if i manually copy/paste both of those urls, i get the xml page and i can manually search and find the show i'm looking for ...

 

mp328, getting exactly the same issue as you.  Haven't been able to figure it out yet .  If you (or anyone) finds a fix, please be sure to post it here.

 

I'll revisit it also.  It must be something simple that's preventing it from working and I assume there's at least one other person out there with a similar and working setup?

Share this post


Link to post

got everything working and indexing, but sickbeard is giving me an error loading

 

 Error loading Unraid URL: http://unraid:85/api?age=1100&apikey=b970881d6174f26badc3a40759ea1ab8&t=tvsearch&cat=5040%2C5030
Error loading Spotweb URL: http://unraid:86/api?age=1100&t=tvsearch&cat=5040%2C5030

 

wierd part is, if i manually copy/paste both of those urls, i get the xml page and i can manually search and find the show i'm looking for ...

 

mp328, getting exactly the same issue as you.  Haven't been able to figure it out yet .  If you (or anyone) finds a fix, please be sure to post it here.

 

I'll revisit it also.  It must be something simple that's preventing it from working and I assume there's at least one other person out there with a similar and working setup?

 

i tried something i read a few pages back which is to use your dns page instead of tower:xx and this got it working for sickbeard for me. not sure if u use an outside dns page to access your plugins from outside.

 

but i also went back to the original newznab lightphd.cfg as i didnt care much for grabbing stuff of spotweb. was just gonna do manual on spotweb.

Share this post


Link to post

Has anyone recently noticed a problem with CP finding correct movies on Spotweb?

 

In the attached screenshot, you'll notice it's pulling several movies (with different tt### corresponding to IMDB unique movie identifier #s) while grabbing the same NZB file that has nothing to do with the movie. I've let it go through and it really is the identical movie, in this case Life of Pi, downloaded over and over again despite having different tt## tags at the end of it. FWIW, I also have "Detect Duplicate Downloads: Discard" in SAB. It seems there's something going on incorrectly with CP searching and tagging NZB files from Spotweb. I do have Life of Pi on my CP Wanted list, but it still does not show any NZB has been found much less snatched/sent to SAB.

 

I just updated CouchPotato + SAB and this started happening. Spotweb is the same version as a few months ago installed according the instructions described in this thread.

 

 

edit: CP actually uses the tt## tag to post-process which results in several different movies tagged incorrectly. Last night I thought I was going to watch a Comedy/Romance movie and it turned out to be The Collector instead(!).

SAB.png.67c3c3bce28141832128e049914628dc.png

Share this post


Link to post

Hi - Sorry for reviving an old thread but I am having trouble getting Spotweb to work with CP

 

CP successfully uses the api to search for a movie, but when it tries to get the nzb I get the following error:

 

06-02 11:31:19 INFO [hpotato.core.plugins.base] Opening url: http://tower:81/spotweb/api?t=get&id=sPzymRpkcvsWoeoUQT7r6%40spot.net&apikey=xxx, params: []

 

06-02 11:31:19 ERROR [ore.providers.nzb.newznab] Failed download from tower: Traceback (most recent call last): File "/usr/local/couchpotato_v2/couchpotato/core/providers/nzb/newznab/main.py", line 141, in download data = self.urlopen(url, show_error = False) File "/usr/local/couchpotato_v2/couchpotato/core/plugins/base.py", line 148, in urlopen response = urllib2.urlopen(request, timeout = timeout) File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.6/urllib2.py", line 397, in open response = meth(req, response) File "/usr/lib/python2.6/urllib2.py", line 510, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.6/urllib2.py", line 429, in error result = self._call_chain(*args) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 605, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/lib/python2.6/urllib2.py", line 397, in open response = meth(req, response) File "/usr/lib/python2.6/urllib2.py", line 510, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.6/urllib2.py", line 435, in error return self._call_chain(*args) File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 401: Unauthorized

 

If I manually use the same url (substituting the xxx with the api key) in my browser the nzb comes up.

 

I switched CP to debug mode to check it was using the api key correctly and it is.

 

Any ideas???

Share this post


Link to post

I'm having a problem installing spotweb. I'm not sure how to fix it. I have SF installed and web server is running. Please help

 

I realize that there is something wrong with PHP extensions, but I have SimpleFeatures 1.0.11, CP, Sickbeard and Sabnzbd running perfectly, so why should I have a problem with PHP?

error.png.045dfeb0510fecdc533a02b245f3e074.png

Share this post


Link to post

I'm having a problem installing spotweb. I'm not sure how to fix it. I have SF installed and web server is running. Please help

 

I realize that there is something wrong with PHP extensions, but I have SimpleFeatures 1.0.11, CP, Sickbeard and Sabnzbd running perfectly, so why should I have a problem with PHP?

 

CP, SB or sab do not use the Web server. So that doesn't mean you're not having issues with the php.

 

But more likely you're having issues with the renaming rules for the webserver. There's a file in the config/plugins/simple features folder that you need to modify to access different ports for each thing on the Web server.

For example, I have newznab, spotweb, phpadmin, sqldumper, owncloud all running off the webserver. So for each one you have to adjust the renaming rules so they load properly.

If you can't find it I can attach mine when I get back home.

 

For me spotweb wasn't worth it and I don't even bother using it anymore. Newznab is miles better, but a lot more work to configure properly

 

Tapatalk on Samsung GS3

 

 

Share this post


Link to post

I've got this running just fine. Many thanks to all, especially jangjong!

I'm now (linux n00b) looking for a way to also run PlexWatchWeb together with SpotWeb.

 

Any pointers would be greatly appreciated!

 

------------------

 

edit: I'm running the Dynamix webserver and I thought I got it working by editing dynamix.lighttpd.cfg as follows:

# User customizations
# Add your own settings here. These won't get overwritten upon reboot
#
$SERVER["socket"] == ":81" {
  server.document-root = "/mnt/cache/_Usenet/appdata/www/plexWatchWeb/"
}
$SERVER["socket"] == ":84" {
  server.document-root = "/mnt/cache/_Usenet/Webserver/spotweb/"
}

 

plexWatchWeb initially works fine, but as soon as I have used Spotweb it will give an error. After a restart of the webserver it will work again (until I use Spotweb). Strange....

Share this post


Link to post

Probably I'm only one of a few using Spotweb on an unRAID server, maybe I get lucky....

 

It runs just fine, with one exception. I would like to setup a cron job for retrieving headers. A retrieve from the web interface works OK, but when I try to retrieve using the CLI, I get an error:

root@Tower-unRAID:~# /usr/bin/php /mnt/cache/_Usenet/Apache/www/spotweb/retrieve.php

Fatal error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /mnt/cache/_Usenet/Apache/www/spotweb/lib/dbeng/dbeng_pdo_mysql.php on line 28

 

I've been trying to troubleshoot this with trail and error but to no avail. Any pointers on how I could solve this are greatly appreciated.

Share this post


Link to post

Probably I'm only one of a few using Spotweb on an unRAID server, maybe I get lucky....

 

It runs just fine, with one exception. I would like to setup a cron job for retrieving headers. A retrieve from the web interface works OK, but when I try to retrieve using the CLI, I get an error:

root@Tower-unRAID:~# /usr/bin/php /mnt/cache/_Usenet/Apache/www/spotweb/retrieve.php

Fatal error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /mnt/cache/_Usenet/Apache/www/spotweb/lib/dbeng/dbeng_pdo_mysql.php on line 28

 

I've been trying to troubleshoot this with trail and error but to no avail. Any pointers on how I could solve this are greatly appreciated.

 

Looks like the script requires the mysql extension which isn't included in the PHP distribution of unRAID.

 

You may try the following: download the slackware PHP 5.6.19 package, extract the file /usr/lib64/php/extensions/mysql.so and copy this over to your unRAID system.

 

It will be automatically included once copied.

 

You can check the active extensions by: php -i from CLI.

 

Share this post


Link to post

Thanks a lot for your kind support! I guess I have to copy the file over to the same directory on my unRAID system where no only libvirt-php.so resides. Will try this tomorrow.

 

Happy easter to all!

Share this post


Link to post

Probably I'm only one of a few using Spotweb on an unRAID server, maybe I get lucky....

 

It runs just fine, with one exception. I would like to setup a cron job for retrieving headers. A retrieve from the web interface works OK, but when I try to retrieve using the CLI, I get an error:

root@Tower-unRAID:~# /usr/bin/php /mnt/cache/_Usenet/Apache/www/spotweb/retrieve.php

Fatal error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS' in /mnt/cache/_Usenet/Apache/www/spotweb/lib/dbeng/dbeng_pdo_mysql.php on line 28

 

I've been trying to troubleshoot this with trail and error but to no avail. Any pointers on how I could solve this are greatly appreciated.

 

I am running it in a vm.. There does not appear to be a docker for it.. Which is weird and a shame..

Share this post


Link to post

Looks like the script requires the mysql extension which isn't included in the PHP distribution of unRAID.

 

You may try the following: download the slackware PHP 5.6.19 package, extract the file /usr/lib64/php/extensions/mysql.so and copy this over to your unRAID system.

 

It will be automatically included once copied.

 

You can check the active extensions by: php -i from CLI.

 

Thanks again!

 

I found the file and copied it over to the server, but unfortunately that didn't do the trick. Maybe I'm doing something wrong.

 

What I don't understand is that retrieving headers from Spotweb's web interface works fine. Well, I will stick with that option.

 

edit - FWIW: when I run php -i I don't see any reference to mysql.

Share this post


Link to post

I now use the linuxserver.io apache Docker and added the spotweb files from github.

Works really well apart from no CRON

Share this post


Link to post

That's my problem also. What do you get when you try a retrieve from the CLI?

 

Edit: I'm pretty (?) sure I need the mysql.so extension, but whatever I try with trail and error (in my n00b case), I cannot get it to work  :(.

Share this post


Link to post

I just click the retrieve button on the bottom left - it updates the spots

Share this post


Link to post

Thanks!

 

Same here, so what's the problem... That's just a n00b (me) with (at the moment) too much time at his hands. It's also a sort of learning by doing experience and then it starts to frustrate me that I cannot get it to work properly (with a retrieve from the CLI).

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.