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.
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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, Mozilla Firefox on MS Vista Business SP1.0
Media storage on NAS: Synology DS207+
1st SC 1.21.1 SVN1117 installed on DS207+ with FW 7.22 utilizing: Apache 2.2.8 (Unix) mod_ssl/2.2.8, MySQL 5.0.51b, OpenSSL 0.9.8g, PHP 5.2.6
2nd SC 1.21.1 SVN1117 installed on WIN-XP, Simese 2.07, PHP 4.4.4, mySQL 4.0.21
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. Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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.
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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, Mozilla Firefox on MS Vista Business SP1.0
Media storage on NAS: Synology DS207+
1st SC 1.21.1 SVN1117 installed on DS207+ with FW 7.22 utilizing: Apache 2.2.8 (Unix) mod_ssl/2.2.8, MySQL 5.0.51b, OpenSSL 0.9.8g, PHP 5.2.6
2nd SC 1.21.1 SVN1117 installed on WIN-XP, Simese 2.07, PHP 4.4.4, mySQL 4.0.21
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? Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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).
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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. Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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? Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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.
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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
Player : Netgear EVA700 & Popcorn A-100 (081106)
Server : Vista SP1 Home Premium (Simese 2.07, SwissCenter current SVN)
Spec : Intel C2Q Q6600, 2GB RAM, 1Tb storage.
  | | 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
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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?
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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...)
SwissCenter 1.20.1
Synology CS407 firmware DSM 2.0-0598
Pinnacle SC200 - firmware 21-63
Windows XP SP2
Linux on Synology
PHP 5.2.0
MySQL 5.0.51
Apache 2.2.3 (Unix)
  | | 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, Mozilla Firefox on MS Vista Business SP1.0
Media storage on NAS: Synology DS207+
1st SC 1.21.1 SVN1117 installed on DS207+ with FW 7.22 utilizing: Apache 2.2.8 (Unix) mod_ssl/2.2.8, MySQL 5.0.51b, OpenSSL 0.9.8g, PHP 5.2.6
2nd SC 1.21.1 SVN1117 installed on WIN-XP, Simese 2.07, PHP 4.4.4, mySQL 4.0.21
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.