As I wrote about in this thread I have my movies scattered around my network. I have used Moviewiz for sorting and viewing. But I needed a new way to handle it in NPVRs Video Library and I couldn't get ordinary shortcuts to work.
The Windows 7 built in Library functionality did not work.
But I have found a way by using Symbol links (I tried Junction as well but the folder.jpg wouldn't show then). I used the tool Link shell extension and when it is installed all I need is placed in the right click menu. Only thing to note is that the symbol links have to be placed in a local folder on the computer.
When all movie folders is added, they show up nicely in Videos Library, just as I wanted.
This far I have added folders manually by the tool above, but a .bat file like below can be run by a scheduled task:
There is some issues and questions around this.
* NPVR crashes when you open the folder with links - if there is a bad folder.jpg file among the movies (it works to open the the "normal" folder. (I had a folder.jpg with 1kb in size in one folder)
* I would like the meta data to be shown when I browse the folders, not just for the files. I think it can show data already, but I am not sure what files NPVR would like to see in he folder path. I know that tvshow.nfo works, but what should the file be called for movies? movie.nfo?
And it would be nice if the movie starts when I press OK on the folder - if there is one movie in the folder.
The Windows 7 built in Library functionality did not work.
But I have found a way by using Symbol links (I tried Junction as well but the folder.jpg wouldn't show then). I used the tool Link shell extension and when it is installed all I need is placed in the right click menu. Only thing to note is that the symbol links have to be placed in a local folder on the computer.
When all movie folders is added, they show up nicely in Videos Library, just as I wanted.
This far I have added folders manually by the tool above, but a .bat file like below can be run by a scheduled task:
Code:
@echo off
::-----------------------------------------------------------
::Usage: Save the file as a .bat and place it in the folder above where
::you want your Symbollinks (or change ".\" below)
::Change <Target> to the folder where the movies are.
::This script starts with deleting the shortcut folder
::(so no obsolete files or renamed files is lurking)
::Then it lists all folders to the file dirX.txt and adds these as symbol links in
::the folder "shortcuts" placed in the same folder as this .bat file
::Add the folder "Shortcuts" to the media library and set a scheduled
::task to update the folder as often as needed. make sure to do it when it is not used...
::Add as many "Set dir..." as needed.
::-----------------------------------------------------------
setlocal ENABLEDELAYEDEXPANSION
Set dirA=.\shortcuts
Set dirB=<Target1>
Set dirC=<Target2>
rd /Q /S "%dirA%"
mkdir "%dirA%"
dir /A:D /B /O "%dirB%" >dirX.txt
for /f "tokens=* delims= " %%A in (dirX.txt) do (
mklink /d "%dirA%\%%A" "%dirB%\%%A"
)
::------------------------------------------------------
:: Copy all code between the lines for each added target
::------------------------------------------------------
dir /A:D /B /O "%dirC%" >dirX.txt
for /f "tokens=* delims= " %%A in (dirX.txt) do (
mklink /d "%dirA%\%%A" "%dirC%\%%A"
)
::------------------------------------------------------
There is some issues and questions around this.
* NPVR crashes when you open the folder with links - if there is a bad folder.jpg file among the movies (it works to open the the "normal" folder. (I had a folder.jpg with 1kb in size in one folder)
* I would like the meta data to be shown when I browse the folders, not just for the files. I think it can show data already, but I am not sure what files NPVR would like to see in he folder path. I know that tvshow.nfo works, but what should the file be called for movies? movie.nfo?
And it would be nice if the movie starts when I press OK on the folder - if there is one movie in the folder.