![]() |
|
SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1041
|
|||
|
|||
I don't know why but I occasionally get watched status from SageTV in Plex.
__________________
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 |
#1042
|
||||
|
||||
I think it brings sage watched status into plex with the file is added, but I think Pix64 said there was no way to change the plex status when it changes in sage without removing the file from plex and reimporting it. Also, this needs to be 2-way, so that when you watch something in Plex, it will update the watched status in sage as well.
__________________
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 |
#1043
|
|||
|
|||
Quote:
Afterwards however if you do a ' Update Library' operation in PLEX, the framework will skip over all existing files when invoking the Scanner, so the scanner doesn't see the files and Agent.update() won't be called on it as well. Hence it will not get any updated watched status on existing files that's already in the library. Update library may bring in new files and those will have their watch status migrated. I don't think there's a way around this unless PLEX changes how things work, or add some extensions/hooks for agent to update metadata without any changes to the files. Last edited by wildgoose; 04-07-2015 at 06:21 PM. |
#1044
|
||||
|
||||
I was thinking more about a separate process that used an API to read and set that data periodically - not necessarily a part of the agent - but I don't know how extensive the plex API is.
__________________
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 |
#1045
|
|||
|
|||
No there are ways to set and changed watched status know that as I found it the other day but I'm not in right computer for link.
|
#1046
|
|||
|
|||
Quote:
But I need to look into what this API is though. ![]() |
#1047
|
||||
|
||||
Honestly, the best place for this to run would be from a jar plugin in sage that simply runs periodically. To do it right, and handle the 2-way correctly, it woul dhave to maintain it's own database of all media files from each side, with the watched status (ideally the watched to timestamp) on each side. Then, when it parses through a file, it checks each server, compares it to its last stored value in its database, and then updates the value in the other server. That's really the only way to keep them in sync, since there is not going to be a timestamp for when a watched status was changed in either.
__________________
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 |
#1048
|
|||
|
|||
Just installed the new update and all I have to say is "wow"! Much improved! The speed is night and day different. Please let me know if you need any testing. I would be happy to help out.
__________________
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 |
#1049
|
|||
|
|||
Quote:
I looked into PLEX HTTP interface a bit. It is indeed possible to walk the entire library relatively easily. Here's some API info I found: https://code.google.com/p/plex-api/w/list Essentially start at http://127.0.0.1:32400/library/, and the 'key' data from the resulting XML object can be used to append to the URL and browse the entire collections: Code:
http://127.0.0.1:32400/library/ http://127.0.0.1:32400/library/sections/ http://127.0.0.1:32400/library/sections/80/ http://127.0.0.1:32400/library/sections/80/all -> http://127.0.0.1:32400/library/metadata/10590/children http://127.0.0.1:32400/library/metadata/10591/children http://127.0.0.1:32400/library/metadata/10592 So this should be totally doable. ![]() |
#1050
|
|||
|
|||
Quote:
![]() |
#1051
|
|||
|
|||
Quote:
One quick question: The old version only worked with Java 7. Is that still true with the updated code? Thanks! -D |
#1052
|
|||
|
|||
Quote:
SageTV itself uses Java. Any Java compatibility issue will remain the same and will not be affected by this plugin. Thanks.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. Last edited by wildgoose; 04-08-2015 at 11:45 AM. |
#1053
|
|||
|
|||
Quote:
|
#1054
|
||||
|
||||
was the install process simple? was any modification to files needed as was the cast during the initial install of the previous Pix package?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#1055
|
|||
|
|||
Quote:
It is somewhat simpler but still a manual process. ![]()
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. |
#1056
|
|||
|
|||
The install process was pretty much as simple as the original if not more so since you only need to edit a single configuration file. No need to go into each source file like before. The only inconvenience was the need to remove the SageTV libraries and then perform the install. But as fast as this new scanner is that doesn't matter as much.
__________________
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 |
#1057
|
||||
|
||||
Quote:
And all the libraries created need to be deleted and rebuilt? I wasn't sure if that was the case.
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#1058
|
|||
|
|||
Yes, just the single config file. Only the libraries that use the SageTV scanner need deleted and recreated.
__________________
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 |
#1059
|
||||
|
||||
Quote:
ok, thanks. and the new version scans large libraries noticeably faster?
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#1060
|
|||
|
|||
I don't know what you consider large but it scans our recording library of over 300 recordings in a few minutes. It took much longer for Plex to get all the frame grabs for each recording but the bulk of the initial scan was completed in about 5-10 minutes.
__________________
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comparing to Plex | heffneil | Batch Metadata Tools | 20 | 01-08-2012 04:54 PM |
Need help with SJQv4 remote agent | coppit | SageTV v7 Customizations | 4 | 12-19-2010 11:03 AM |
Plex in a TV? What about sage? | rwc | General Discussion | 9 | 09-05-2010 04:38 PM |
Possible to get SageTV to handle my library more like Plex? | DAMAC | SageTV Mac Edition | 0 | 06-10-2009 10:33 AM |
SagetTVService Virus Win32.Agent.dwo | Ponchera | SageTV Software | 6 | 02-04-2008 06:33 PM |