![]() |
|
|||||||
| SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
RunLibraryImportScan vs. AddMediaFile
Is there any substantial difference between the two commands: RunLibraryImportScan and AddMediaFile if all I am doing is looking to add a new file in the one of the import paths to Sage?
Will the AddMediaFile method invoke BMT (if configured and installed obviously) or other plugins that listen for new media? |
|
#2
|
||||
|
||||
|
Quote:
If you add media to an import area, then I'd just use RunLibraryImportScan, which is what is called when you hit "Refresh Library" from the Metadata Tools web UI. (that's what I use). I have 1000s of shows/movies and when I use that to force a refresh they show up in sage almost immediately after.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
Add media file works fine in my testing.
|
|
#5
|
|||
|
|||
|
Thanks Plucky -
I am trying to figure out "NamePrefix" argument.. Should that just be the import path that matches the file I am adding? The docs say Code:
NamePrefix- the 'prefix' to prepend to the name of this media file for hierarchical purposes (i.e. the subdirectory that the file is in relative to the import root) |
|
#6
|
||||
|
||||
|
Quote:
BTW - If you use AddMediaFile you do not have to run RunLibraryImportScan().
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
|
#7
|
|||
|
|||
|
Quote:
Code:
AddMediaFile(File,File.getAbsolutePath()) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using AddMediaFile properly | tmiranda | SageTV Studio | 2 | 04-11-2010 03:47 PM |
| Long ramble on AddShow, AddAiring, AddMediaFile | nielm | SageTV Studio | 13 | 09-01-2006 04:06 PM |
| In place recompression and AddMediaFile() | TiltRod | SageTV Studio | 6 | 12-16-2005 07:47 PM |