SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 10-01-2015, 03:05 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Monedeath View Post
I was discussing options that "stock" Sage will exercise. Also, you retained both the airing ID and Season## + Episode## in the file name as well as the Series Name, Sage could make an association through the wiz.bin so long as that iteration of the wiz.bin file had retained record of it. (And as per Jeff, that should be "forever" for all intents if it was recorded by that server)
Exactly so if you are renaming correctly I wouldn't worry about it honestly even if you are converting after or before the rename. I don't every convert my video files so I can't speak but it picks up files fine in sage that weren't recorded in sage with the correct naming and using bmt
Reply With Quote
  #42  
Old 10-01-2015, 06:02 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Monedeath View Post
So when it reorganizes things into Directory path/SeriesName(year)/Season##/SeriesNameS##E##miscelaneous.ext
format, does it create new directory paths or do you still need to go back into Sage and add them as import paths? I know from past experience that I wasn't able to get Sage to climb directory trees in the past when it comes to video imports so I imagine it doesn't(oddly, it does with pictures though).
All you need is the 'Directory path/' folder as a sagetv import, and anything under that will be picked up by sagetv's scanning. Sagetv most certainly does scan through subdirectories, and even has in it's base UI, a way to view imports by folder.
__________________
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
Reply With Quote
  #43  
Old 10-01-2015, 06:18 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Monedeath View Post
Yeah, files created to retain the metadata outside of the recordings themselves is the other way to pull it off and re-import them that way.
You are more than willing to test the current builds if you want PM me now is the time to provide feedback for anything you want.
Reply With Quote
  #44  
Old 10-01-2015, 09:26 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Quote:
Originally Posted by Monedeath View Post
Yeah, files created to retain the metadata outside of the recordings themselves is the other way to pull it off and re-import them that way.

I was discussing options that "stock" Sage will exercise. Also, you retained both the airing ID and Season## + Episode## in the file name as well as the Series Name, Sage could make an association through the wiz.bin so long as that iteration of the wiz.bin file had retained record of it. (And as per Jeff, that should be "forever" for all intents if it was recorded by that server)
I'm not saying this is a bad idea, but I am curious to know what scenario you can think of which would make this useful.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #45  
Old 10-01-2015, 10:09 PM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by Skirge01 View Post
I'm not saying this is a bad idea, but I am curious to know what scenario you can think of which would make this useful.
Recordings where the EPG does not provide sufficient data for the SxxExx information to be appended to the filename(soap operas, and daily "talk show" format type programs are prone to this), airing ID's getting stripped for whatever reason(If I'm intending to keep it in Sage, I keep them, but otherwise I chop them; I can't speak to what other people may try to do while acting on advice for file naming conventions from Plex, Kodi, or where-ever else).

News programs fall into weird handling scenarios as well, particularly local news programs, as guide data for them is typically bad at best. Special report type programs can bring pain in other ways.


As to the suggestion of a way to "auto-add" import directory paths itself, like I posted earlier, I've had previous experiences with Sage not climbing (child) directory trees on video imports for whatever reason. So if that experience continues to hold true, firing off a program that starts tossing recordings into a few dozen new (child) directories that didn't exist previously is likely going to create quite the import directory creation party for me(and anyone else with comparable experiences) if I have to chase them down manually.

Edit to add mea-culpa: Ok, think I figured out what was going on. The Recording directory doesn't crawl sub-directories(as sage doesn't use them that way when making recordings), I just needed to remember/realize that the Import directories play by different rules than the recording directory.

Last edited by Monedeath; 10-01-2015 at 10:20 PM.
Reply With Quote
  #46  
Old 10-02-2015, 05:50 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Out of curiosity, would it not be easier to just build a new metadata scraper for Kodi that looks up files from SageTV instead of the web?

http://kodi.wiki/view/Scrapers
Reply With Quote
  #47  
Old 10-02-2015, 06:24 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Monedeath View Post
News programs fall into weird handling scenarios as well, particularly local news programs, as guide data for them is typically bad at best. Special report type programs can bring pain in other ways.
I have a separate way to handle news programs/stuff without season/episode numbers. Its by title and overrides the others. You can name any title differently and even create .nfos if you need to go that far

As far as sage not climbing the directory tree never once had an issue with that all my movies have always been in their old folders and way down the tree.

Quote:
Originally Posted by stanger89 View Post
Out of curiosity, would it not be easier to just build a new metadata scraper for Kodi that looks up files from SageTV instead of the web?

http://kodi.wiki/view/Scrapers
It would work but naming the files is better organization to me and it is more universal if you are using multiple programs.
Reply With Quote
  #48  
Old 10-02-2015, 07:04 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Sort of a side note... but still related to all of this. Java 7 added some new filesystem apis, and one of interest is the ability to monitor the filesystem for changes. I've used this a number of times in other projects to be notified when a new file/directory is added/modified/deleted, and it works extremely well, and relies on the OS specific fs events (ie, this is not a polling solution that hammers the filesytem, but rather an event driven system)

On my TODO list (which is quite long at the moment) is a plugin that can add new items to sagetv database automatically when a file is added to the directory structure, without doing a full refresh, or waiting for the next refresh interval.
Reply With Quote
  #49  
Old 10-02-2015, 07:19 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Stuckless good to know for future and about time Java had something like this.
Reply With Quote
  #50  
Old 10-02-2015, 09:47 AM
jm9843 jm9843 is offline
Sage Aficionado
 
Join Date: Oct 2003
Posts: 288
Quote:
Originally Posted by stuckless View Post
On my TODO list (which is quite long at the moment) is a plugin that can add new items to sagetv database automatically when a file is added to the directory structure, without doing a full refresh, or waiting for the next refresh interval.
That would be a nice improvement. You don't think that'd be a good candidate for a "core" SageTV change?
Reply With Quote
  #51  
Old 10-02-2015, 09:56 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jm9843 View Post
That would be a nice improvement. You don't think that'd be a good candidate for a "core" SageTV change?
Sure, I think it would be something that would be good in core... but there's a always a fine line between what I want in core, and what Jeff allows me to put in core He's a lot more concerned about preserving Java 1.5 compatibility in the core, whereas, I'm ok if we set the min requirements to be java 8.

Unfortunately, I can't even look at this for some time... but it's something that I wish was there everytime to copy over some media and go to play it, and discover that sagetv hasn't refreshed yet
Reply With Quote
  #52  
Old 10-02-2015, 10:25 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
Sure, I think it would be something that would be good in core... but there's a always a fine line between what I want in core, and what Jeff allows me to put in core He's a lot more concerned about preserving Java 1.5 compatibility in the core, whereas, I'm ok if we set the min requirements to be java 8.
What is his rationale?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #53  
Old 10-02-2015, 10:27 AM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by stuckless View Post
Sure, I think it would be something that would be good in core... but there's a always a fine line between what I want in core, and what Jeff allows me to put in core He's a lot more concerned about preserving Java 1.5 compatibility in the core, whereas, I'm ok if we set the min requirements to be java 8.
I know this is an option in some scripting languages, but not sure how it would be approached in Sage or Java in general. Perhaps implement it in such a way that it "fails gracefully" (or never even executes) if certain conditions are not met. Such as before it tries to do something have it do a check for a java version greater than x.y.z before trying to carry it out. Maintain the backwards compatibility, but allow the newer ones to take advantage of those abilities.

Of course doing that would make maintainability of the code base more difficult.
Reply With Quote
  #54  
Old 10-02-2015, 10:36 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by Monedeath View Post
I know this is an option in some scripting languages, but not sure how it would be approached in Sage or Java in general. Perhaps implement it in such a way that it "fails gracefully" (or never even executes) if certain conditions are not met. Such as before it tries to do something have it do a check for a java version greater than x.y.z before trying to carry it out. Maintain the backwards compatibility, but allow the newer ones to take advantage of those abilities.

Of course doing that would make maintainability of the code base more difficult.
Not sure about Java but I know you can do that sort of thing with iOS. That was necessary with backwards compatibility when iOS 8 changed needing to prompt the user for permissions to access the camera, gps, etc. Older iOS versions crash if passed methods they don't understand. So you have to test if an object responds to a particular method before calling it. Pretty straightforward.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #55  
Old 10-02-2015, 10:54 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Monedeath View Post
I know this is an option in some scripting languages, but not sure how it would be approached in Sage or Java in general. Perhaps implement it in such a way that it "fails gracefully" (or never even executes) if certain conditions are not met. Such as before it tries to do something have it do a check for a java version greater than x.y.z before trying to carry it out. Maintain the backwards compatibility, but allow the newer ones to take advantage of those abilities.

Of course doing that would make maintainability of the code base more difficult.
Quote:
Originally Posted by Taddeusz View Post
Not sure about Java but I know you can do that sort of thing with iOS. That was necessary with backwards compatibility when iOS 8 changed needing to prompt the user for permissions to access the camera, gps, etc. Older iOS versions crash if passed methods they don't understand. So you have to test if an object responds to a particular method before calling it. Pretty straightforward.
Absolutely, you can do that type of coding... Android in general is a mess of that You can test code to see if meets a java version, and only run code under certain conditions... You have to be careful to organize that code so that you are references stuff that isn't there. Just makes it more complicated when using reflection. Personally, I'd just say, Java 1.7 is the new minimum, can keep it clean. Which is why I initially suggested to use a plugin, since for a plugin I control the java version
Reply With Quote
  #56  
Old 10-02-2015, 11:01 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
What is his rationale?
I think his rationale is that the current set of hardware extends can only run java 1.5. But either way, I'd have to build it first, and see what happens. (or if someone else want to forge ahead, you'd be looking at the java 7 file watcher apis, and possible the Seeker.java, which I think is responsible for refreshing the library when things change.)
Reply With Quote
  #57  
Old 10-02-2015, 11:16 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Since the code for the extenders isn't being built anymore anyway, I don't see a reason to not raise the java version to 1.7.
__________________
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
Reply With Quote
  #58  
Old 10-02-2015, 12:33 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Quote:
Originally Posted by Fuzzy View Post
Since the code for the extenders isn't being built anymore anyway, I don't see a reason to not raise the java version to 1.7.
Because they still have extenders for sale?
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #59  
Old 10-02-2015, 12:38 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by Skirge01 View Post
Because they still have extenders for sale?
I wouldn't think that the Java version would affect compatibility between devices as long as the Java objects themselves still conform to 1.5 standards. Are the objects just POCO's or do they have a lot of code included in them?
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #60  
Old 10-02-2015, 12:44 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Sorry, I guess I just answered my own question. No, SageTV's objects are not simple POJO's (POCO's).
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help migrating to Kodi (XBMC) cumak General Discussion 40 10-15-2016 06:31 AM


All times are GMT -6. The time now is 05:42 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.