|
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
|
||||
|
||||
mediafile metadata- time added?
Folks,
I was looking to add the ability to view the most recently added videos, and I've been through the MediaFileAPI and the AiringAPI, and I cannot find anything that looks like a timestamp for when a video (not a TV recording) was added to the library. Does such a beast exist?
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients |
#2
|
||||
|
||||
The currentMediaFile.getStartTime() is probably the timestamp of the file, though it isn't necessarily when the file was added to the library as such... It doesn't matter whether it is a recording, picture, audio or video file...
__________________
SageTCPServer (2.3.5): Open source TCP interface to the SageTV API MLSageTV (3.1.8)/Sage Media Server (1.13): SageTV plugin for MainLobby/CQC TaSageTV (2.58)/TaSTVRemote (1.14): Monitor/control SageTV with an Android device TbSageTV (1.02)/STVRemote (1.11): Monitor/control SageTV with a PlayBook 2 TiSageTV (1.64)/TiSTVRemote (1.09): Monitor/control SageTV with an iPhone/iPod/iPad |
#3
|
||||
|
||||
Yeah, I saw that. That definitely beats trying to go out and look at the file with native java commands, as it should work across any platform, but as you say, it doesn't necessarily correspond to when the file was added to the library. If you run out of space and relocate your video collection, you're likely to have a whole brand new set of timestamps.
Hopefully someone will inform me that the info I'm looking for is in there, just not generally advertised Cheers Ikarius
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients |
#4
|
||||
|
||||
If it's not in the MediaFile API, then it seems like a good bet that it doesn't exist.
That said, it shouldn't be too hard to simulate. Keep a persistent list of MediaFileIDs sorted by the date you first noticed them. Once a day (or whatever) run a scan of all current MediaFiles. Any that aren't already in your list are by definition newly added; so add them to the end of the list with today's date (and checkpoint the list to disk). Use the list to filter your Recently Added display.
__________________
-- Greg |
#5
|
||||
|
||||
Couldn't you just sort the files on their file date just like for photos?
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#6
|
||||
|
||||
Gerry - I already answered that. It's my fallback position, but it's not ideal as it's not necessarily representative. Looks like it's what I'll be doing though.
Thanks for the responses folks!
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients |
#7
|
||||
|
||||
Yes I understand. It's just that this is the only thing missing in a video view that would make life so much easier. I was just hoping you wouldn't drop it because it wasn't available in the API. I have over 400 DVD rips available and everytime I add 3 or 4 new ones it is such a pain finding them or remembering what they are. And the wife-well that's a whole other story. The only other thing that would bring the same type benefit is if there was a way to mark a DVD rip as being watched. And being able to sort on that. Anyways good luck.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#8
|
||||
|
||||
At this point my biggest quandry is whether "New releases" should be
a). time specific- i.e. added in the last 2 weeks (time period would probably need to be configurable) or b). just a Most Recent list- the 5 or 10 most recently added. As it does not appear that the "added to library" timestamp exists, I'll be using the mediafile->GetFileStartTime api, as I wish this to work reguardless of whether it's on a full-blown client, placeshifter, or extender. Buut.. have no fear, it's coming. Along with single-level genre selection (picking sci-fi gives you all action/sci-fi as well as sci-fi/comedy), and proper title sorting ("A " and "The " will be stripped from title beginnings for the sort). Cheers Ikarius
__________________
SageTV 6.6.2, SageMC+CenterSage Theme Server: Intel Core2 Q6600, 8gb memory, 3x 1tb WD EACS drives, software RAID5 2tb capacity, 4gb Flash boot drive, Ubuntu 8.0.4 Server edition Capture: 1x HD-PVR -> Motorola DTC6200 Clients: 1x STX-HD100 1x STX-HD200, Windows & OSX Clients |
#9
|
|||
|
|||
Sounds very nice Anything that allows showing of latest added titles will be good.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clean out old metadata created by My Movies before creating new metadata for SageTV? | Texas-Hansen | SageTV Customizations | 0 | 02-12-2009 10:31 AM |
Test if MediaFile exists | dflachbart | SageTV Studio | 9 | 05-23-2006 01:24 PM |
Is MediaFile Required? | aperry | SageTV Studio | 8 | 04-18-2006 03:05 PM |