|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Feature request: Scan video libraries only
In my Sage libraries I probably have tens of thousands of songs and tens of thousands of photos (I use the photo screensaver). I think I have maybe a couple of thousand of video shows - lots of kids' TV shows plus movies.
When I do a media library scan it takes something like 5-6 minutes. A few months ago I set Sage up on another server and I only had the video files installed and I was surprised to see that my media scans took a matter of seconds. This must mean the scans on my main server are bogged down by the photo and music files. It would be great if you could only scan the video libraries (or scan separately for music/photos/videos/all) as that would make it much easier to get a new movie/show up in Sage by saving me 5 minutes of scan time. I doubt that I am the only one with this issue.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#2
|
||||
|
||||
Think this would be an awesome feature... sort of lines up with the post I had a couple weeks ago, when I said that it would be possible to actually do a real import of media files as they are added. ie, Java 7 has the ability to "watch" the filesystem for changes, so it would be possible to notify sagetv to load a single video when it is added, instead of having it do a full scan.
__________________
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
|
|||
|
|||
http://forums.sagetv.com/forums/show...0&postcount=48
Is the post/thread in question. Yes it would be a nice feature to have in place. Although staying generally on topic, I know someone who would like to split the pictures and music DB off from the wiz.bin entirely. So it would conceivably fall in the scope of that kind of project. But he's still busy chasing other non-Sage projects right now, and just starting to dip his toes into the proverbial coding waters involving Sage. I don't think that kind of undertaking would be something that could done without a LOT of work(weeks if not months worth), and I doubt there would be much gained. Thankfully I think it's low on his list of things he'd like to do to Sage once he does work his way over here. |
#4
|
||||
|
||||
SageTV does sleep periodically when it's doing library import scans so as to not overload the filesystem with requests and interfere with playback/recording from/to the disk. This is done in the sage.Seeker.controlImportCPUUsage() method. If you want to put a property in there which allows disabling that CPU throttling; go for it, I'll approve it.
__________________
Jeffrey Kardatzke Founder of SageTV |
#5
|
||||
|
||||
Quote:
__________________
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 |
#6
|
|||
|
|||
Or for that matter, a single import directory.
|
#7
|
||||
|
||||
Well, I think there are calls to directly add an item to the database, but I'm not sure if this process itself will trigger 3rd party metadata searches.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#8
|
||||
|
||||
I still really like the idea of just monitoring the filesystem to get notified of file additions, rather than having to do rescans.
|
#9
|
||||
|
||||
I have looked at this very briefly, and while we could just do an Add like Fuzzy stated, I'd rather tell sagetv to do a normal scan with a "hint" where the hint is folder or file to limit the scope, and then have it do it's normal thing. The seeker code doesn't seem to be setup that way, from what I can tell, (again very quick look on my part), but, that's not to say we couldn't change it. The monitoring part is pretty easy (java 7).
__________________
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 |
#10
|
|||
|
|||
http://sagetv.com/api/sage/api/Media...a.lang.String)
Seems to be geared toward a targeted single file import. This probably is the API call mentioned previously. Digging further it looks like "java/sage/MediaFile.java" is handling the import process, but at my (basic) level of knowledge, I'm going to bow out of the chase from here. Last edited by Monedeath; 10-15-2015 at 09:18 AM. Reason: grammar correction |
#11
|
|||
|
|||
I've started with this using Java 7 api Stuckless posted it's pretty straightforward but for now is seems to be better fit as plugin vs core because of Java ver requirement
|
#12
|
||||
|
||||
Couldn't Sage 9 just require Java 7 or greater? Is there any reason to maintain backward compatibility to Java 6?
|
#13
|
|||
|
|||
Quote:
Putting conditional code into the core to take advantage of Java 1.7+ has been discussed, but consensus was that implementing as a plugin probably was a better route to pursue to keep the code in core from getting crazy with conditionals. I don't recall Narflex weighing into things one way or the other. |
#14
|
||||
|
||||
The release notes said "Java compliance level is now 1.5", but I've never read anything saying there was a desire to keep it there. It was mainly of note because the JVM on the extenders was 1.4 so extender code can't be built from the OS code.
|
#15
|
||||
|
||||
I still use Java 1.6 at home...but it shouldn't be that hard for me to upgrade that (I have a unique system that's pretty difficult to update outside of the SageTV stuff generally though).
And I don't think this is a big problem to solve either. If the issue is how long it takes; that can easily be sped up by not doing the throttling under manual request.
__________________
Jeffrey Kardatzke Founder of SageTV |
#16
|
||||
|
||||
Quote:
Perhaps something that may be even easier to speed up new additions, is when the list is generated, have it sorted by the file's timestamp, descending (currently, it's sorted alphabetically). This would get the newest additions first, and maybe get your new files in there quicker. There needs to still be some alphabetizing, however, as it is currently sorted alphabetically to ensure -0 files are processed before -1, -2, etc. on multisegment recordings.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature Request - Hide Video Folder | alton987 | Diamond | 1 | 03-05-2011 07:14 AM |
Feature Request: Online Video Enhancements | skyeclad | SageTV Beta Test Software | 2 | 01-12-2008 09:59 AM |
Request: Zoom feature in video playback and livetv. | debennett2 | SageTV Software | 5 | 04-03-2007 06:37 AM |
Feature request: Multi import libraries | CarlG | SageTV Customizations | 2 | 04-11-2006 07:45 AM |
XML file creation in Video Libraries question | dvd_maniac | SageTV Customizations | 1 | 11-12-2005 08:37 AM |