TVDb on Synology (Linux) - 2008/06/25 15:12I'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.
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.
Joe_999
User
Posts: 83
Re: TVDb on Linux - 2008/06/25 15:43Nigel,
I would like to help but I am not using any TV series staff in my media database. Is there anything I could try?
JoeClients: 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.
klaasvaak
User
Posts: 463
Re: TVDb on Linux - 2008/06/25 18:31Hi 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Linux - 2008/06/25 18:59A 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.
klaasvaak
User
Posts: 463
Re: TVDb on Linux - 2008/06/26 01:49Hi 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Linux - 2008/06/26 05:50This 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.
Joe_999
User
Posts: 83
Re: TVDb on Linux - 2008/06/26 18:14I tried to download a style after I copied your new www.TheTVDB.com.php into the TV parsers directory.
However, it does not work!
JoeClients: 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.
klaasvaak
User
Posts: 463
Re: TVDb on Linux - 2008/06/26 18:27Hi 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Linux - 2008/06/26 19:55Klaas: 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.
klaasvaak
User
Posts: 463
Re: TVDb on Linux - 2008/06/27 07:10Hi 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Linux - 2008/06/27 19:35Could 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.
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.
klaasvaak
User
Posts: 463
Re: TVDb on Linux - 2008/06/28 03:05Hi 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.
-----------------------------------------------------------------------------
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.
Pernod
Admin
Posts: 1335
Re: TVDb on Linux - 2008/06/28 10:26Lets 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.
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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/06/28 12:05CHAPEAU 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/28 12:25However, 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.
NigelPlayer : 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/06/28 15:53Hi 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/28 16:19There 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/06/28 16:27But 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/28 16:39I 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.
klaasvaak
User
Posts: 463
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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/28 17:10Okay 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/06/29 08:42Hi 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).
----------------------------------------------------------------------------- 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/29 09:22The 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/06/29 12:45Hi Nigel,
settings-file attached, 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/29 13:26Yep, 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.
NigelPlayer : 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/06/29 14:53Hi 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/06/29 15:09PS 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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/07/31 18:46Hi 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.
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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/08/01 08:34Looks like something went wrong with the attachment. Here is a retry
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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/08/01 08:36Again the file is not correctly attached or so it seems. It should have the name: support.zipSwissCenter 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.
Pernod
Admin
Posts: 1335
Re: TVDb on Synology (Linux) - 2008/08/01 08:55It'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.
NigelPlayer : 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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/08/01 18:57I 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:
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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/08/01 20:55Hi 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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/08/02 05:11In 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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/08/02 05:41To 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
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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/08/02 05:44Hi 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.
Dutchsea
User
Posts: 60
Re: TVDb on Synology (Linux) - 2008/08/02 18:52Hi 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/08/03 07:56Hi 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.
Joe_999
User
Posts: 83
Re: TVDb on Synology (Linux) - 2008/08/03 10:12klaasvaak 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
JoeClients: 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.
klaasvaak
User
Posts: 463
Re: TVDb on Synology (Linux) - 2008/08/03 14:02Hi 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.