|
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
|
|||
|
|||
Question about AddMediaFile()
I have a question about AddMediaFile.
Is there a way to use a TempMediaFile to make sure the path is part of one of the import paths? (short of parsing it and doing it myself) hoping there is an api call I am missing on this one. What happens if you add a media file that is not under a import path is it still added? ( I know temps are okay but what about adding) cheers |
#2
|
|||
|
|||
In v6, adding a file to a non-media dir was fine. Haven't really tested it in v7, but I'd expect it'd be the same result.
If you wanted to make sure the path of a file to be added is a registered media dir then it shouldn't be any harder than: Code:
File f = new File("filename")); for(File mediaDir : MediaDirs) { // Use whatever API call gets to the list of dirs if(f.getAbsolutePath().startsWith(mediaDir.getAbsolutePath())) { isMediaDir = true; break; } } if(isMediaDir) <whatever> else <whatever>
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
Plucky,
I can confirm that in sage7 you can add a mediafile to a path that is not defined as an import path. You can also do the neat trick of changing the ID to something that starts with "EP" to convert the mediafile from an imported video to a recording. Tom
__________________
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. |
#5
|
|||
|
|||
Quote:
cheers |
#6
|
||||
|
||||
Quote:
Tom
__________________
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. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
RunLibraryImportScan vs. AddMediaFile | broconne | SageTV Studio | 6 | 10-15-2010 06:13 AM |
Using AddMediaFile properly | tmiranda | SageTV Studio | 2 | 04-11-2010 03:47 PM |
In place recompression and AddMediaFile() | TiltRod | SageTV Studio | 6 | 12-16-2005 07:47 PM |