spacer
spacer search

SwissCenter

Search
spacer
Main Menu
Home
Documentation + FAQ
Screenshots
Downloads
Forums
Bug Tracking
History
Login
Username

Password

Remember me
?
No account yet?

Locations of visitors to this page

 
Home arrow Forums

SwissCenter Forums  


TVDb on Synology (Linux) - 2008/06/25 15:12 I've modified the zip functionality in the TVDb parser so that if Linux is being used it will use the standard unzip function instead of the PHP zip extension.

Can someone try this?

Thanks,
Nigel

File Attachment:
File name: www.TheTVDB.com.v1.3.zip
File size:4814 bytes


Edit: There is another version later in this thread especially for Synology users.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/25 15:43 Nigel,

I would like to help but I am not using any TV series staff in my media database. Is there anything I could try?

Joe
Clients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64
Media storage on NAS: Synology DS207+
SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10
GbE network with Zyxel GS-108A
PCH-A100 connected via HDMI in 1920x1080p to display.
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/25 18:31 Hi Nigel,

I tried the script and updated my TV series, but unfortunately I didn't get any info from the TVDb, although at least two TV series I've got (Fawlty Towers & Blake's 7) can be found at the TVDb-site.

I did the search through the config screen: "search new media", media type "TV series". Tomorrow I'll do a full (manual) media search through"
http://<IP_DS>:8050/media_search.php". Not sure, but the results might be different.

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/25 18:59 A better test would be to try it on a single episode using Edit TV Details in the Config. Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/26 01:49 Hi Nigel,

The full media search didn't return any details from the TVDb. I'll try your suggestion tonight.

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/26 05:50 This version tries to use the native linux unzip command, so if you also don't have this on Synology then it will still not work.

Does the download styles functionality work for you, this uses the same command.

If unzip cannot be made to work with Synology then I'll go one step further and make the parser download unzipped data.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/26 18:14 I tried to download a style after I copied your new www.TheTVDB.com.php into the TV parsers directory.

However, it does not work!

Joe
Clients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64
Media storage on NAS: Synology DS207+
SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10
GbE network with Zyxel GS-108A
PCH-A100 connected via HDMI in 1920x1080p to display.
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/26 18:27 Hi Nigel,

Like with Joe, the TVDb parsar does not work. On the other hand "epguides" does. So far, this works only form the config screen "Edit TV Details"; I'll try to run a full media search also to see what will happen, but I'm not too optimistic.

regards, Klaas

BTW downloading styles is no problem

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/26 19:55 Klaas: If you can download styles then you must have the unzip command available so I'm surprised the last version of TVDB posted doesn't work. If it doesn't work in Edit TV Details then it won't work with a media search either. Any further error messages produced? Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/27 07:10 Hi Nigel,

Nigel wrote:If you can download styles then you must have the unzip command available so I'm surprised the last version of TVDB posted doesn't work.
Well, don't be surprised, I checked again and despite what I mentioned before, downloading styles is NOT possible with a Synology CS/DS.

Maybe we can try unzipped data download.

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/27 19:35 Could you run the attached script? It will output the OS that PHP thinks it's using. I'm hoping I can use it to identify the Synology.

Code:

 <?php echo PHP_OS; ?>

File Attachment:
File name: php_os.zip
File size:180 bytes
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/28 03:05 Hi Nigel,

Thanks for the script; the result of “php_os.php” is:
Code:

 linux

Attached you’ll find my “info.php”, “php.ini” and “httpd.conf-user”. Earlier I’ve sent these docs to Rob as well in relation to ticket 138. I’m not sure how the server can be identified as Synology, but the “info.php” output shows that the system runs on Linux Synology. Maybe this or underlying info can be used as identifier. Rob mentioned to me that there would be enough info for SwissCenter to recognise the Synology, so please check with Rob.

Hopefully this brings you further, if not please let me know.

regards, Klaas


File Attachment:
File name: klaas_docs.zip
File size:73316 bytes


-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Linux - 2008/06/28 10:26 Lets see what this does... The attached also contains server.php which contains a function which will hopefully identify the Synology, copy this to the base folder. If TVDB still doesn't work then post log set to level 6.

File Attachment:
File name: TVDB_Synology_v1.zip
File size:7186 bytes
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 12:05 CHAPEAU Nigel!!!

It works smoothly: synopsis, actors, directors, banners, everything is there.

However, the "refresh all extra information" in the "TV series"-menu of the Swiss config screen doesn't work. All info is wiped out, but there's nothing replaced. A full media search doesn't work either.

What can I do about that? any ideas?

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 12:25 However, the "refresh all extra information" in the "TV series"-menu of the Swiss config screen doesn't work. All info is wiped out, but there's nothing replaced. A full media search doesn't work either.
The "refresh all extra information" uses shell_exec which you've already noted does not work. Does refreshing movies work?

Glad to see we're making progress anyway, it's not easy coding blindly.

Nigel
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 15:53 Hi Nigel,

Nigel wrote:The "refresh all extra information" uses shell_exec which you've already noted does not work.
In which file is function "shell_exec()" located. Maybe it can be exchange with "exec()", so "refresh all extra information" will work (like the update of the RSS feeds (see'here.

Nigel wrote:Does refreshing movies work?
It used to work, but I'm not sure with which parsar: "www.dvdloc8.com" doesn't work, but "www.filmup.it" does, but unfortunately my Italian is somewhat underdeveloped. Same applies for "www.ofdb.de".

Maybe the same problem as with "www.theTVDB.com".

Also looking for function "shell_exec()" to refresh all movie info.

regards, Klaas

BTW your blind coding is going perfectly well, isn't it?

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 16:19 There is only one occurence of shell_exec in the whole project in file.php as you know.

If you've modified this to exec and your media searches are working then I can't think of any reason why a refresh information wouldn't work (it's basically a media search but tv details are first deleted and marked to be updated).
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 16:27 But for some reason I can update the info only one by one and not all together ...

And what's your idea about the movie parsar?

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 16:39 I hope you have 'Download Extra Info' enabled for your TV and movie categories?

And what's your idea about the movie parser?
Use IMDb like everyone else
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 16:51 'Download Extra Info' are checked, anything else?
-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/28 17:10 Okay post logfile when doing a refresh all information. Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/29 08:42 Hi Nigel,

I switched over to "www.IMDb.com" and this one works works fine (both individually as through an entire media search).

For TV shows, the problem is persistent. I can retrieve info from "www.thetvdb.com" per individual show, but not through a media search. I erased table tv completely (and therefore didn't use "REFRESH_METADATA" and did a new media search for TV shows. Unfortunately the parsar did not return any info.

Attached you'll find the log file. For some reason the parsar doesn't start (see line 1553).

Does this give you any clue?

regards, Klaas


File Attachment:
File name: klaas_log_tv_search_thetvdb.zip
File size:8054 bytes


-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/29 09:22 The details on line 1553 actually means that the update TV details is being called, but it's not finding anything to update!! The only reason as I've said before that nothing is being updated is if your TV category does not have 'Downlod Extra Info' enabled. Can you post an export of your settings to confirm this? Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/29 12:45 Hi Nigel,

settings-file attached, hope this helps, regards, Klaas


File Attachment:
File name: Klaas_Settings.xml
File size:18291 bytes


-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/29 13:26 Yep, as I suspected. You have a single media location for TV series and have assigned this your 'General' category which has 'Download Extra Info' disabled.

You already have a 'TV Series' category defined with 'Download Extra Info' enabled so you need to assign this to your TV series location.

Nigel
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/29 14:53 Hi Nigel,

Indeed I overlooked cat "general" and after I enabled
"download extra info" for this cat, it worked as it should.

many thanks for your support and patience,

regards, Klaas

PS will you include the adjusted parsar and server-file be part of the new release?

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/06/29 15:09 PS will you include the adjusted parsar and server-file be part of the new release?
Yes, they're already submitted.
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/07/31 18:46 Hi Nigel,

I tried the new parser but no new art, banners, synopsis etc.
I attached the log with the details after I tried to get the TVshow details via: Edit TV Details in the Config.

Location + name of the show I tried to update is:
/volume1/video/Series/House/Season 03/House - 3x02.avi'



Looks like the show is correctly identified nut the data could not be copied.
Hope you know why.

Next,

Can you guide me to best practice for file name and file directory.
I tried several suggestions I found in the forum but its still not working.

Current method I use (and like to stick to) is:
/volume1/video/Series/Series name/season #/series name - 3x04 [episode name]

For example:
\Blake's 7\Season 1\Blake's 7 - 1x07 [Mission To Destiny].avi

I understood that everything between [ ] is disregarded during the parsing.
Also understood that the character - is disregarded during the parsing.
However when I look at the log file it seems this is not true.

Wouter
File Attachment:
File name: 0b3631f18fee84c6ace8184f5caac759.
File size:2527 bytes
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/01 08:34 Looks like something went wrong with the attachment.
Here is a retry

File Attachment:
File name: 29576ceefb39c3c8d34b67a9f1266ee9.
File size:2527 bytes
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/01 08:36 Again the file is not correctly attached or so it seems.
It should have the name: support.zip
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/01 08:55 It's failing to copy the remote file to your local filesystem /volume1/web/svr/swiss/cache/tvdb/

I would suggest looking at write permissions on the above folder.

Nigel
Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208)
Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32
Server : Windows 7 Home Premium 64bit
Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD
AV : Pioneer VSX-915 | Samsung LE40C650
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/01 18:57 I have changed the permissions for the dir tvdb.
This is a new command for me so I hope i did it correct.

The permission for /volume1/web/svr/swiss/cache/tvdb/ is now:

drwxrwxrwt 3 admin user 4096 aug 1 23:35 tvdb

Sadly the result is the same. Attached the new log with the same error:
File Attachment:
File name: 36c40e2d0913a4a18dd30cd7aa4d5dd4.
File size:2495 bytes
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/01 20:55 Hi Wouter,

Did you check the path pointing at the cache in your config-screen? A corrupted path caused various problems a couple of times with me.

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/02 05:11 In the config screen, under cache settings, the Cache directory is shown as: /volume1/web/svr/swiss/cache

So this seems to be OK, right?
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/02 05:41 To test, I created a new cache directory: /volume1/web/cache


But the same error again (but this time with the newly created cache dir).
See attached error log (zipped)

FYI, I created the new cache directory via a telnet session using the root as log on.

The new dirs permissons are

drwxrwxrwt 2 root root 4096 aug 2 11:13 cache

After the new action to look-up the TV details for one episode (via "Lookup TV Episode") a new sub-directory in the new cache directory was created: tvdb This one also has a sub directory: banners

Permissions:
drwxr-xr-t 3 admin users 4096 aug 2 11:20 tvdb
drwxr-xr-t 2 admin users 4096 aug 2 11:20 banners

After I changed the permissions to drwxrwxrwt the error still persisted




File Attachment:
File name: f5867fc12dbf6fc701ca3a05d0a5005b.
File size:2567 bytes
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/02 05:44 Hi Wouter,

The path is fine. I think you should go back to Nigel’s suggestion that the problem might be caused by the writing permissions of the directories involved. In my system the permissions are set as follows:

“/volume1/web/svr/swiss/cache”:
Code:

 drwxrwxrwx    5 admin    users

”/volume1/web/svr/swiss/cache/tvdb”:
Code:

 drwxr-xr-x    3 nobody   nobody


Your permissions look re “/volume1/web/svr/swiss/cache/tvdb/” like this:
Code:

  drwxrwxrwt    3 admin   user


I’m not sure about your permissions re “/volume1/web/svr/swiss/cache/”, but your permissions shows a "t" at the end contrary to mine. This additional “t” is known as the so-called “sticky bit" of a directory. Here you find some additional info on the “sticky bit”. Changing your permissions by removing the “t” may solve the problem.

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/02 18:52 Hi Klaas,

I thought you found it but actually my current permissions don't have the sticky bit. The above example has a typo due to an incorrect copy paste action by me.

Anyway I set my permissions exactly like yours:
(so I changed permissions as well as the groups)



“/volume1/web/svr/swiss/cache”:
Code:
Code:

 drwxrwxrwx    6 admin    users





”/volume1/web/svr/swiss/cache/tvdb”:
Code:
Code:

 drwxr-xr-x    3 nobody   nobody



Only difference is that I have 6 links for the cache dir and you have 5.

Also changed the cache path back to /volume1/web/svr/swiss/cache”
But no change after these alterations. The error " Failed to copy remote file to" still persists.

Still puzzled

Some questions:

- In this tread I read you planned to change the "shell_exec()" with the command "exec()". Could this maybe effect the parsing?

If not I am still interested to know if and how you did this.

- Nigel's file also includes the updated server.php script. Do I need to replace my server.php with this one as well?

- Do I need to restart the DS for the changes to have effect (I guess not...)
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/03 07:56 Hi Wouter,

Wouter wrote:In this tread I read you planned to change the "shell_exec()" with the command "exec()". Could this maybe effect the parsing?At that time various issues were blocking updates from TVDb, so I’m not sure whether this is a must. However, you have to make the change if you want to do a media refresh from your TV-set.

Wouter wrote:… I am still interested to know if and how you did this.Yep, I’ve made the change. If you want to do so as well, go to file /base/file.php, row 690. It shows the following code:
Code:

 return trim(shell_exec("which wget | grep '^/' | head -1"));

Replace this with
Code:

 return trim(exec("which wget | grep '^/' | head -1"));


Wouter wrote:Do I need to restart the DS for the changes to have effect (I guess not...)Don’t think so too, however, it won't harm much if you do so.

Hope this helps, regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/03 10:12 klaasvaak wrote:
Yep, I’ve made the change. If you want to do so as well, go to file /base/file.php, row 690. It shows the following code:
Code:

 return trim(shell_exec("which wget | grep '^/' | head -1"));

Replace this with
Code:

 return trim(exec("which wget | grep '^/' | head -1"));





Hi Klaas,

I would like to mention that changing the shell_exec with the exec on my DS207+ leads to endless, multiple media searches, when I manually start to refresh the media library.

I therefore now use your other suggestion, what you proposed on the Synology.NL forum, simply to "hard code":

function wget_location()
{
if (is_windows())
return os_path(SC_LOCATION.'ext/wget/wget.exe');
else

return $location= '/usr/syno/bin/php';

}

AFAIK, the shell_exec function doesn΄t work on the Sysnolgy NAS, but is just used in the file.php to "automatically" locate the php - directory, which for the current firmware seems to be /usr/syno/bin/php.

With the hard coding of the location, I am avoiding the problem with the exec() function.

Regards

Joe
Clients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64
Media storage on NAS: Synology DS207+
SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10
GbE network with Zyxel GS-108A
PCH-A100 connected via HDMI in 1920x1080p to display.
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2008/08/03 14:02 Hi Joe,

I suggest we start a new thread on the “function exec()”-topic (see here).

regards, Klaas

-----------------------------------------------------------------------------
SwissCenter 1.20.1
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0637
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/06 16:00 Hi,

Another "retry" for me was to see if I could solve my issue with the art, banners & synopsis that I had for TV series. (issue was that these where not showing in SC).

After I created a directory tvdb in the cache directory and added the rights to this directory now all works like a charm. Pictures, Banners etc.


Actually to my surprise, as I am almost sure that I tried this before and at that time it did not work.

Only thing I changed is that I have a nwer version of SC and I have installed the zip & unzip command......

As a bonus the movies now also show art for 99% of the the titles where before it was only about 30% ??

Anyway all good news for me but it left me with 1 more question:

As described I needed to manually add the tvdb directory and add the rights as well. I assume that normally a functoin in SC does this automatically.

Any ideas why this did not work in my case and how this is normally done.
I am asking as this may influence other functions as well.

Thanks
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/06 16:47 Dutchsea wrote:As described I needed to manually add the tvdb directory and add the rights as well. I assume that normally a functoin in SC does this automatically.
This is quite strange as I didn't have to do anything manually and we've got the same system. Especially, specifically giving rights to directory "/swiss/cache/tvdb/" looks overdone as you should have given the entire "/swiss/"-directory exactly the same rights or otherwise SwissCenter wouldn't work.

Probably I miss something; what type of rights did you give to directory "/swiss/" and what type of rights to "/swiss/cache/tvdb/" (the same?).

regards, Klaas

---------------------------------------------------------------------------
SwissCenter SVN 1140
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/06 16:59 Hi Klaas,

I manually gave all dirs all rights via CHMOD 777 dirname.
(as i did not know what minimum rights where needed I gave all rights)

Below the current rights:
drwxrwxrwx 15 admin users 4096 Jan 5 23:00 swiss
drwxrwxrwx 6 admin users 126976 Jan 6 21:32 cache
drwxrwxrwx 3 nobody nobody 4096 Jan 6 01:19 tvdb

Not sure why "nobody nobody" is shown for the tvdb dir...

Wouter
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/07 12:13 Hi Wouter,

I expect something went wrong at the time you set the permissions for the first set up; I can hardly imagine that the problem is caused by the zip-module, as I've got it installed as well.

Below you'll see the rights on my system.
Code:

 drwxrwxrwx   19 admin    users        4096 Jan  7 00:28 swiss  drwxrwxrwx    7 admin    users      331776 Jan  7 17:33 cache  drwxrwxrwx    3 admin    users        4096 Sep 11 21:46 tvdb

As you can see they're all identical.

But whatever the problem, it has been solved, hasn't it ...

regards, Klaas

---------------------------------------------------------------------------
SwissCenter SVN 1140
Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/07 17:46 Hi Klaas,

Sure enough!

Regardless I will soon do a full reinstall of SC as I will upgrade my CS to the latest firmware.

So I while have the opportunity to use the latest version of your manual I hope this solves some other issues I still experience.

Next I like to start a new topic how to increase speed of the menu's for SC installed at a synology DS/CS. Changing pages and paging through the menu's is pretty slow on my system.

I am interested to learn your experience in this area?

Also, does the series art etc work in your case?

Regards,

Wouter
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/08 16:28 Hi Wouter,

Wouter wrote:I am interested to learn your experience in this area?
Also, does the series art etc work in your case?

Do you want me to reply in this thread, or do you open a new one first?

regards, Klaas

---------------------------------------------------------------------------
SwissCenter SVN 1143
Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/09 15:52 Klaas,

I will open a new thread for the performance. But maybe you can let me know if your art works well here in ths post.

Thanks,

Wouter
QNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405]
Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376]
Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
  | | The administrator has disabled public write access.
Re: TVDb on Synology (Linux) - 2009/01/09 17:25 Yep, all art work is working fine, menu's are loaded reasonbly fast. However, if file sizes exceed 100kb the perfomance will decrease. This may occur when you uses large size backgrounds. But backgrounds of standard styles (like KDE, Old School, Seeing Red and Vista) work fine.

regards, Klaas

---------------------------------------------------------------------------
SwissCenter SVN 1143
Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0702
Pinnacle SC200
  | | The administrator has disabled public write access.
spacer
 

Screenshots

www.flickr.com
This is a Flickr badge showing public photos from swisscenter. Make your own badge here.


 

Mambo is Free Software released under the GNU/GPL License.
spacer