NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 416 417 418 419 420 … 433 Next »
Using Symbolic links in Video Library

Using Symbolic links in Video Library
7ore
Offline

Senior Member

Posts: 598
Threads: 68
Joined: Mar 2006
#1
2010-07-25, 10:06 AM (This post was last modified: 2010-07-31, 04:43 PM by 7ore.)
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:
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.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,716
Threads: 767
Joined: Nov 2003
#2
2010-07-25, 04:20 PM
7ore Wrote:And it would be nice if the movie starts when I press OK on the folder - if there is one movie in the folder.
You cant do that, but for you record - pressing 'Play' (ctrl-p) on a folder will auto queue the contents of the folder and start playback, giving you effectively the same thing.
7ore
Offline

Senior Member

Posts: 598
Threads: 68
Joined: Mar 2006
#3
2010-07-25, 06:58 PM
OK, thanks. I always forget to use the Play button...

One more thing about Symbol links; the script need tweaking to support all movie folders and to remove links for renamed and deleted folders too. I will try and get that to work as well.
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#4
2010-08-02, 05:05 PM
7ore Wrote:OK, thanks. I always forget to use the Play button...

One more thing about Symbol links; the script need tweaking to support all movie folders and to remove links for renamed and deleted folders too. I will try and get that to work as well.

Does it work on network folders too?

"I'd rather have a bottle in front of me than a frontal lobotomy"
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#5
2010-08-02, 05:18 PM
mklink will work on network folders.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
Information Audio Video Sync Fixed with AC3Filter! gearsofwoe 0 1,070 2022-11-18, 04:36 AM
Last Post: gearsofwoe
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,865 2022-04-14, 04:33 AM
Last Post: Antmannz
  Video Meta information made from scratch MPMovieBuff 1 1,664 2020-04-06, 02:51 PM
Last Post: mvallevand
Photo video in recordings slow to display jimbojones 7 2,767 2020-04-02, 10:37 PM
Last Post: jimbojones
  Will not play recorded video on 1st computer but will play same video on second compu Krepps 5 2,144 2020-02-28, 05:33 PM
Last Post: Krepps
  No video or audio from start of playback smiffypr 8 3,648 2020-02-05, 05:11 PM
Last Post: smiffypr
  Choppy Video NND 5 2,862 2020-01-14, 09:31 PM
Last Post: NND
  Audio/video sync problem on playback and program freeze when resuming zer 34 13,259 2019-12-21, 02:49 PM
Last Post: HarryH3
  Generate missing thumbnails for video files imported into NextPVR Jimixter 7 3,139 2019-12-17, 01:32 PM
Last Post: mvallevand
  Video Library Folder/Filename Refresh meccano 3 1,665 2019-09-17, 03:13 PM
Last Post: Graham

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode