FAQ  •  Register  •  Login

Synology DS213j and shared folders

<<

Tapyon

Serviio newbie

Posts: 1

Joined: Sat Jul 20, 2013 1:41 pm

Post Sat Jul 20, 2013 1:44 pm

Synology DS213j and shared folders

Hi guys,

first of all, sorry for my bad english, Iam from Germany and i have following problems.

I Installed on my DS213j (ARM CPU) serviio and the serviio console (after installing java etc.). It works in that way, that I can get access to the serviio media server via my TV.
The problem is, that I cannot get any folders to shared folders. I dont have the button "Add patch". I only have the button "Add local". I even tried to get it via ftp (online source) but it is not able to safe because of error 503 (not able to save).

Do you know what I have to do, to get the "add path" button or any other way to get folders to the library?

thanks for help
<<

musam

Serviio newbie

Posts: 1

Joined: Thu Jul 25, 2013 11:52 am

Post Thu Jul 25, 2013 12:03 pm

Re: Synology DS213j and shared folders

Same problem.

Help?
<<

StormRyder

Serviio newbie

Posts: 3

Joined: Thu Aug 01, 2013 9:32 am

Post Thu Aug 01, 2013 10:08 am

Re: Synology DS213j and shared folders

After having the same experience of 'not seeing' the 'Add Path..' button, I started looking inside the code of the "Web UI in PHP" which you are probably running on the NAS.
With very little experience in HTML, PHP, etc. I think I happend to find the answer.

Step by step:
1. With the normal File Station on your NAS you go to the following folder "web/serviioweb/view"
2. Inside this folder there are different .php files. Look for the 'Library.php' and download that to your Mac/Windows/etc.
3. Open the library.php file with notepad or any other 'HTML/PHP/XML-editor'.
4. Press 'ctrl-F' (which opens the search bar) and search for 'AddPath'.
5. You should see the following search result:
  Code:
........?php echo tr('tab_folders_button_add_local','Add local...')?>
                </button>&nbsp;&nbsp;
<!--
                <button type="button" id="addPath" name="addPath" class="ui-button ui-widget ui-state-default ui-corner-all btn-small">
                    <?php echo tr('tab_folders_button_add_remote','Add path...')?>
                </button>&nbsp;&nbsp;        onclick="addLibRow('libraryTableFolders',null)">-->
<button type="button" id="removeFolder" name="removeFolder" class="ui-button ui-widget ui-state-default ui-corner-all btn-small" />
                    <?php echo tr('butto.........

6. As you can see, the <button type="button" id="addPath".....null)"> is in between comment tags ( <!-- [HTML or text] -->).
7. Also, the 'onclick' event was placed outside the button tag. I also changed that, so that the onclick event was inside the button tag.
8. These changes resulted in the following code:
  Code:
<button type="button" id="addPath" name="addPath" class="ui-button ui-widget ui-state-default ui-corner-all btn-small" onclick="addLibRow('libraryTableFolders',null)">
                    <?php echo tr('tab_folders_button_add_remote','Add path...')?>   </button>&nbsp;&nbsp;

9. Select the code in between the comment tags (also select the comment tags) and replace that with the code in step 8. So, change "<!-- <button type=.......null)">-->" with "<button type=..[step 8 code]..</button>&nbsp;&nbsp;".
9. Save the Library.php (do not change the name) and upload it to the NAS on the following location: "web/serviioweb/view" (be sure to override existing files, otherwise it will not replace the excisting library.php).

After this adjustment, you should be fine and the 'Add Path..' button should be there.
Hopefuly my guide is clear, otherwise let me know.

NOTE: I am a tech novice and just started working with html/php/etc. So if something is wrong with this adjustment, please let me know.

Regards and good luck!

PS I will also post this in the "Web UI in PHP" section as I think the problem lies with that 'third party application'.
<<

Djelly

Serviio newbie

Posts: 2

Joined: Mon Aug 05, 2013 4:23 pm

Post Mon Aug 05, 2013 4:27 pm

Re: Synology DS213j and shared folders

hey,

This fix doesn't work for me or I am probably doing it wrong.

this is what i got in my library. php

<!--
<button type="button" id="addPath" name="addPath" class="ui-button ui-widget ui-state-default ui-corner-all btn-small" onclick="addLibRow('libraryTableFolders',null)">
<?php echo tr('tab_folders_button_add_remote','Add path...')?> </button>&nbsp;&nbsp;>-->
<button type="button" id="removeFolder"........

Could you help me out?
Thanks
<<

StormRyder

Serviio newbie

Posts: 3

Joined: Thu Aug 01, 2013 9:32 am

Post Tue Aug 06, 2013 10:54 am

Re: Synology DS213j and shared folders

You should replace:
<!--
<button type="button" id="addPath" name="addPath" class="ui-button ui-widget ui-state-default ui-corner-all btn-small" onclick="addLibRow('libraryTableFolders',null)">
<?php echo tr('tab_folders_button_add_remote','Add path...')?> </button>&nbsp;&nbsp;>-->

with

<button type="button" id="addPath" name="addPath" class="ui-button ui-widget ui-state-default ui-corner-all btn-small" onclick="addLibRow('libraryTableFolders',null)">
<?php echo tr('tab_folders_button_add_remote','Add path...')?> </button>&nbsp;&nbsp;

Be sure to remove the <!--.......all the way to.........>--> and replace that with <button type=".......al the way to .........&nbsp;
Hope it works for you
<<

Djelly

Serviio newbie

Posts: 2

Joined: Mon Aug 05, 2013 4:23 pm

Post Tue Aug 06, 2013 1:44 pm

Re: Synology DS213j and shared folders

Yeah

Thx that did it.

And it even fixed the problem that i had with adding a path (with servdroid or remote console), that the folder was either not exsisting or serviio did not have access.

Thx
<<

bubblegum_57

Serviio newbie

Posts: 13

Joined: Wed Sep 22, 2010 8:44 pm

Location: North West London

Post Wed Aug 07, 2013 4:39 pm

Re: Synology DS213j and shared folders

vielen dank.

This solved the problem for me on my ds212j. Mind you, it took several attempts to get the added path to actually save.

Also, although my samsung tv, can play mkv files via "diskstation", it won't play them via serviio, I know that transcoding is not great using the 212j. I'll continue to play.

I couldn't upload the php file, so I just changed the extension to txt, hope it works this has the complete code, so you just use it to replace the library php file. (changing file extension to php)

:)
Attachments
library.txt
(25.12 KiB) Downloaded 872 times
<<

pejton

Serviio newbie

Posts: 1

Joined: Thu Feb 20, 2014 12:49 am

Post Thu Feb 20, 2014 12:56 am

Re: Synology DS213j and shared folders

thank you for the reply!, strange because sometime I added the path to the directory without any problem, evidently after some updates something or someone fxxk up. In any case, the solution helped me :)
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Tue Mar 25, 2014 12:15 pm

Re: Synology DS213j and shared folders

My recommendation is always to configure Serviio using Serviio Console from another PC (see my blog post instructions for details). The third party Web UI frequently breaks when new versions of Serviio are released.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.