|
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 |
#1261
|
|||
|
|||
Quote:
Code:
http://user:pwd@localhost:8080/sagex/api?c=plex:GetMediaFileForName&1=XXXSummerOlympics-OpeningCeremony-1950709-0.mpg&encoder=json XXXSummerOlympics-OpeningCeremony-1950709-0.mpg is the actual filename of the show you are interested in getting sage data from. You can see a bunch of these URL lines in the sageplex_scanner.log file. What you'll get back will be a JSON string. Find 2 episodes that should belong to the same show, but are being categorized into different shows. Look at the JSON data to see if you can spot any issues (show name, season, episode, etc..). You can google for online JSON formatter to convert the JSON string into a prettier format, I think there are also chrome plugin that would do this automatically.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. |
#1262
|
|||
|
|||
Quote:
Quote:
Figuring out the agent time is more difficult. PLEX calls into the plugin repeatedly for each recording that it wants metadata (after the scanner has completed). So there's no clear start/end (the plugin doesn't know when it has ended). There are also multiple threads, this is why I prefix the agent log with show/season/episode info as sometimes the entries are interleaved between 2 different threads. Getting this metadata for 9k entries is probably what's taking up most of the time. However, on subsequent re-scan, PLEX should only be calling the agent on changed files. So if you perform a manual rescan without any change, com.plexapp.agents.bmtagenttvshows.log should not show any new activity on files.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. |
#1263
|
|||
|
|||
Guys, things were running well for quite awhile, but something has changed and plex is no longer getting any metadata from the scanner anymore. I first thought this was triggered by a plex media server update I did, but in checking the log files, the plugin and plex seem to be working fine - it is calling sagex on the sage server, but every entry is showing an error, with no media info returned.
Sage is working fine, recordings are going on fine, as is playback. I can go to the BMT webpage and it's working fine, and I can't find any errors in sage logfiles. How can I turn on debugging on the sagex interface and see the other side of the queries the plex scanner is making? I have restarted sage and rebooted the sageTV server a few times to no avail. Thanks! Mike |
#1264
|
|||
|
|||
Well, I figured it out. It was a java update I did on the server that I thought only was going to update the 64 bit version of java, but updated the 32 bit version as well. It didn't remove the old version 7 java, but it overrode it, and that was enough to cause the failure.
I worry about the security issues in older java implementations. Will we ever be able to run only a modern java with v9? thanks! Mike |
#1265
|
||||
|
||||
Quote:
I run my Java server with Java 8, but, some parts of jetty (and likely other plugins) are not working. This isn't a sagetv thing, but a plugin thing. ie, nothing has to change with sagetv, but plugin authors (of which I'm one of them) need to look how the plugins are failing under v8 and fix it. Now that I'm running v8 on my server, I'll likely start this process.
__________________
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 |
#1266
|
||||
|
||||
@wildgoose - I have SageTV docker container that I'm using for unRAID, and I've been a plex pass member for years, but due to my love/hate relationship with plex, I've never used it. I thought I'd give it another shot, and I figured that I would add an option to install the plex plugin in both the plex server and sagetv to make it easier to get the integration working under unRAID.
A couple of questions... 1. I tried running 'make' under linux and it fails. Is the Makefile windows only? 2. I see the synctool in the plex folder.. is this a plex integration thing (ie, plex knows what a sync tool is) or is this a commandline tool that needs to run periodically, etc. 3. The installer script seems to make some assumptions about the locations of plex, can this be overridden on the commandline? 4. The installer seems to prevent running as a user other than plex, can this be overridden on the command line? Thanks.
__________________
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 |
#1267
|
|||
|
|||
Quote:
Is V9 of SageTV still 32 bit java based, or does it run under the x64 java runtime? If not, is it waiting for the plugins to go x64 as well? I'm unclear as to where all the various dependencies come from. Thanks again for all your work on the plugins and what you have contributed. It is so useful to me and many others! Plex works pretty well these days, esp with this plugin. The main reason I use it is not so much a TV client replacement but for mobile access to sync and auto transcode to ipads and android phones so the kids can watch it on long trips in the car and I can watch all the shows I never watch with my wife on airplanes. I used to move the MPEG2 recordings to a flash drive I stick on my laptop to watch, and still do that somewhat, but it takes up a lot of space, and transcoding by hand is pretty cumbersome and takes time I don't usually have. With plex, I can just select a season or a set of movies, and it'll transcode overnight and sync and then I can hop on the plane and everything is there. And being able to sync remotely when I am in a hotel or remote office with a fast connection to get a recently recorded show is very cool - I never could do that the old way. There are some issues with syncing on iOS that occasionally bite me, but in general it works pretty well. I just wish plex could do auto-skip on commercials, or even jump to the end of a commercial, but the +30/-10 skips work ok. Thx Mike |
#1268
|
||||
|
||||
Quote:
On linux, I only produce 64bit versions and as such, I need a 64bit jvm (Java 7 or 8 and eventualy 9 when it's released). On Windows, there is only 32bit versions of the SageTV native parts, and as such, you also need to use the 32bit version of Java. Windows does not have 64bit version of the sagetv native parts, and it's likely that it never will, unless someone takes ownership of doing that. The Jetty and SageTV Plugin issues are completely different. ie, on Java 8 (doesn't matter 32 bit or 64bit) some of the SageTV plugins that use jetty don't quite work well. I have yet to investigate this, but likely I will have to, since I'm running Java 8 on my server.
__________________
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 |
#1269
|
|||
|
|||
Quote:
__________________
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 |
#1270
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
You can bypass the issue by change the code here: https://github.com/ai7/sagetv-for-pl...nstall.py#L967 I don't know if PLEX is always installed as plex user on Linux or not. If not, then this part would need to be updated/fixed. For the container setup, it might be easier to simply perform the install steps manually by copying the files to the right location, and configure the sageplex_cfg.json file. The main github page has the manual install instructions (again for Windows ) but it should be simple to figure out the linux equivalent.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. |
#1271
|
||||
|
||||
I did try this yesterday, but I didn't have much success I've set this up before so I know I can get it working.
But, I'm wondering... I just added my /var/media/tv to Plex with it's default scanner and metadata lookup, and it was able to accurately find and add all the shows without this plugin. So, I guess I'm wondering why use the plugin? Obviously the syncing tool is important, but even for me, that's less important right now as I just wanted to provide a web interface to my media, for my kids, so they can watch shows/movies on their computers (as they do with netflix right now). In general I'm not a fan of the plex clients for watching tv, but the web ui is impressive.
__________________
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 |
#1272
|
|||
|
|||
Quote:
__________________
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 |
#1273
|
||||
|
||||
For some reason since converting plex to a docker in unraid I can no longer get the BMT Series Agent to work. Log is below.
Code:
2016-05-28 15:12:13,248 (2b5a7dca8480) : INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 5089475 (Fri Apr 22 21:25:00 UTC 2016) 2016-05-28 15:12:13,248 (2b5a7dca8480) : DEBUG (core:361) - Using the standard policy 2016-05-28 15:12:13,248 (2b5a7dca8480) : DEBUG (core:450) - Starting runtime component. 2016-05-28 15:12:13,251 (2b5a7dca8480) : DEBUG (core:450) - Starting caching component. 2016-05-28 15:12:13,251 (2b5a7dca8480) : DEBUG (core:450) - Starting data component. 2016-05-28 15:12:13,251 (2b5a7dca8480) : DEBUG (core:450) - Starting networking component. 2016-05-28 15:12:13,251 (2b5a7dca8480) : DEBUG (networking:286) - No cookie jar found 2016-05-28 15:12:13,252 (2b5a7dca8480) : DEBUG (networking:450) - Setting the default network timeout to 20.0 2016-05-28 15:12:13,252 (2b5a7dca8480) : DEBUG (core:450) - Starting localization component. 2016-05-28 15:12:13,253 (2b5a7dca8480) : INFO (localization:409) - Setting the default locale to en-us 2016-05-28 15:12:13,253 (2b5a7dca8480) : DEBUG (core:450) - Starting messaging component. 2016-05-28 15:12:13,253 (2b5a7dca8480) : DEBUG (core:450) - Starting debugging component. 2016-05-28 15:12:13,254 (2b5a7dca8480) : DEBUG (core:450) - Starting services component. 2016-05-28 15:12:13,254 (2b5a7dca8480) : DEBUG (core:450) - Starting myplex component. 2016-05-28 15:12:13,255 (2b5a8607a700) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.bmtagenttvshows' 2016-05-28 15:12:13,255 (2b5a7dca8480) : DEBUG (core:450) - Starting notifications component. 2016-05-28 15:12:13,406 (2b5a7dca8480) : DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.bmtagenttvshows in namespace 'metadata' 2016-05-28 15:12:13,412 (2b5a7dca8480) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes' 2016-05-28 15:12:17,645 (2b5a8607a700) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system 2016-05-28 15:12:17,646 (2b5a7dca8480) : DEBUG (runtime:1117) - Created a thread named 'load_all_services' 2016-05-28 15:12:17,648 (2b5a7dca8480) : DEBUG (runtime:1117) - Created a thread named 'get_server_info' 2016-05-28 15:12:17,650 (2b5a8607a700) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_' 2016-05-28 15:12:17,652 (2b5a8647c700) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400' 2016-05-28 15:12:17,652 (2b5a7dca8480) : DEBUG (core:150) - Finished starting framework core 2016-05-28 15:12:17,654 (2b5a7dca8480) : DEBUG (core:560) - Loading plug-in code 2016-05-28 15:12:17,818 (2b5a7dca8480) : DEBUG (core:566) - Finished loading plug-in code 2016-05-28 15:12:17,819 (2b5a8647c700) : DEBUG (core:538) - Machine identifier is c427c0270572c0d27ac36625cf4812d8fd4953c0 2016-05-28 15:12:17,820 (2b5a8647c700) : DEBUG (core:539) - Server version is 0.9.16.6.1993-5089475 2016-05-28 15:12:17,820 (2b5a7dca8480) : CRITICAL (core:615) - Exception starting plug-in (most recent call last): File "/usr/lib/plexmediaserver/Resources/Plug-ins-5089475/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 608, in start self.sandbox.execute(self.init_code) File "/usr/lib/plexmediaserver/Resources/Plug-ins-5089475/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 256, in execute exec(code) in self.environment File "/config/Library/Application Support/Plex Media Server/Plug-ins/BMTAgentTVShows.bundle/Contents/Code/__init__.py", line 19, in <module> import plexlog # log wrapper File "/usr/lib/plexmediaserver/Resources/Plug-ins-5089475/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 345, in __import__ raise e ImportError: No module named plexlog 2016-05-28 15:12:17,911 (2b5a8607a700) : DEBUG (services:362) - Loaded services 2016-05-28 15:12:17,921 (2b5a8627b700) : DEBUG (services:438) - No shared code to load
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60 Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup. |
#1274
|
|||
|
|||
It's not finding plexlog, this is plexlog.py in the folder Plug-ins/BMTAgentTVShows.bundle/Contents/Code/.
Based on the error message it should be in /config/Library/Application Support/Plex Media Server/Plug-ins/BMTAgentTVShows.bundle/Contents/Code/ Do you see it in this folder? It should contain the following additional files besides __init__.py config.py plexapi.py plexlog.py sagex.py spvideo.py
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. |
#1275
|
|||
|
|||
For the integration between SageTv and Plex for recordings, do both Sage and Plex have to be installed on the same server?
|
#1277
|
||||
|
||||
Quote:
There's a log file in the appdata area called sageplex_scanner.log which has grown to 15gb's. Does that seem correct, or if not, can it be deleted and it will just start regenerating again? thanks
__________________
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 |
#1278
|
||||
|
||||
Quote:
__________________
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 |
#1279
|
||||
|
||||
Quote:
thanks
__________________
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 |
#1280
|
|||
|
|||
Quote:
I have code that suppose to rotate the log at 4MB, and keep at most 5 logs, so around 20mb total. Looks like its not working for some reason. Any chance you are running an older version of the plugin? https://github.com/ai7/sagetv-for-pl...plexlog.py#L84 Search for this file on your system, open it and see if you can find the string "maxsize" in there. According to the history the rotating feature was added around 2015-04-10. Anyone else having similar issue? The sageplex_scanner.log should be less than 4MB in size.
__________________
sagetv-for-plexmediacenter v8.3.1 is available! Github/Download site. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
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 |