|
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 |
#461
|
||||
|
||||
Quote:
This really on pertains to SageTV Scanner code / BMT Agent code updates. The reasoning behind it is that Plex will use its cache when searching for media. IT does this to decrease the amount of time it takes to scan, and rescan Sections. When we update any code, most of the time it is a fix in the way metadata is pulled in, poster/cover art is pulled in, metadata fields that are filled in on the plex side, etc. removing the SageTV section, updating the scanner/agent code, and then re-adding the section ensures that plex will go out and manually scan EACH and EVERY file again and NOT used a cached version of it. As referenced by Darci in the wiki, this makes sure that you aren't left with orphaned elements, or elements with incorrect (NON updated data) inside of plex. This method ONLY applys to the SageTV code Scanner(s) and Agent. You do not have to do this with normal plex "official" releases of plugins. You will find that on occasion if a plex scanner, or agent has been updated and an official release has been pushed out: If you do not remove the section and re-add it, the updates may not take affect on your existing library sections. *** This seems to be becoming less and less true as new versions of the Plex media server is rolled out. Also as a side note, code changes and updates at this point are few and far between, so unless there is something specific you want fixed, added, or are having trouble with, we won't be pushing out new "updates" Hope that answers your question(s). If not lemme know and Ill give it another whirl. |
#462
|
|||
|
|||
PiX64,
I have one question I tried reading through the thread but found no answer. Does your scanner set the watched flag in SageTV once it is watched in Plex?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#463
|
||||
|
||||
Quote:
So with that being said, The watched status SHOULD be synced upon initial scan of your directory (possibly on subsaquent scans (although i haven't tested it)) inward to plex. Once in plex the watched status and watched position information is maintained within plex. I have toyed with the idea of creating a plex plugin/script that would allow for sync backwards to SageTV Server, but it is just not that clean of a solution in my opinion. It would be easier in my opinion to create a small sage plugin which periodically went out to the plex server and requested watched status info anything also maintained within plex... you could also potentially make the files delete that have been watched... but yeah long answer to your question sorry. short answer is no plex just brings in watched status from sage on initial scan :-) |
#464
|
|||
|
|||
PIX64,
Do you know where Plex keeps its watched status? maybe an XML file or DB that I can scan then use SJQ to mark as watched. If you can point me in the right direction it would be appreciated.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#465
|
||||
|
||||
Quote:
http://wiki.plexapp.com/index.php/PlexNine_AdvancedInfo VERY similiar to the way you use stuckless sagex api via a browser, you can also all individual elements, by using the correct syntax, or get all items. What is returned is an xml document with the information you are looking for. I believe you can also pull it out of the Metadata served up by the Plex DLNA server. I haven't looked to much into though so I am not 100% sure what exactly is available via the API... |
#466
|
|||
|
|||
Thanks.
I can view the recently watched shows using Plex DLNA server... by browsing under Video\TV Shows\Recently Viewed Episodes. Now I just have to find a way to get that to a text document. That gives me a starting point at least. Thanks.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#467
|
|||
|
|||
Followup,
I was able to accomplish what I wanted using wget and SJQ3. This gives me the viewed Items in an xml C:\SJQNEW\wget\wget.exe "http://192.168.0.9:32400/library/sections/2/recentlyViewed" I do a scan for the airing Id. I then use SJQ3 to marked them watched. I do the same for the movies section.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#468
|
||||
|
||||
Quote:
I may have to get your help setting that up. I never dove into SJQ because I just didn't have a need to... If this setup works well, then it may be worth it to invest the time in figuring out how to use it. |
#469
|
|||
|
|||
SageTV Scanner missing?
Hi,
I just tried to install this on Linux, using the instructions at http://code.google.com/p/sagetv-for-...allingAndUsing. I did the following: Code:
sudo /etc/init.d/plexmediaserver stop cd /usr/lib/plexmediaserver/Resources sudo unzip /tmp/sagetv-for-plexmediacenter.zip sudo unzip /tmp/sagetv-for-plexmediacenter-r2.zip sudo unzip /tmp/sagetv-for-plexmediacenter-r3 sudo unzip /tmp/BMTAgent-LinuxMac-Fix-PATCH.zip sudo vi Plug-ins/BMTAgent.bundle/Contents/Code/BMTAgent.properties sudo vi Scanners/Series/SageTV\ Scanner.py sudo vi Scanners/Movies/SageTV\ Movie\ Scanner.py sudo /etc/init.d/plexmediaserver start I think maybe things might unzip to the wrong place, so it is not seeing the new files. I'm running " plexmediaserver 0.9.7.11.386-d353989". For example, until I did the unzip, there was no "Scanners" directory. Just a Plug-ins/Scanners.bundle/ directory. Is my plex too new? Thanks, Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#470
|
||||
|
||||
Quote:
1) Make sure that you completely shutdown plex media server before copying over the contents of the zip files (I see that you stopped and started it, but I was having issues with Linux, specifically Ubuntu where I had to actually do a restart for it to completely stop). U will only need the latest release of the code, the linux patch, and the bmt agent. 2) Make sure to put the files in the following locations: $PLEX_HOME/Library/Application Support/Plex Media Server/Scanner $PLEX_HOME/Library/Application Support/Plex Media Server/Plug-ins 3) Once that is done, for kicks please try restarting your linux box, restarting plex, and then try and add the scanners/agent when adding a new section. lemme know how it goes, and if that doesn't work, then we will work through how to get it up and running. ~Mike |
#471
|
|||
|
|||
Thanks for making me look harder for the "Application Support" directory! Plex puts stuff in weird places, so I had tried to find it using the contents of the dpkg and that was how I arrived at /usr/lib/plexmediaserver/Resources. But it turns out that the correct path to unzip things from is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server
It must create that on the fly, as it was not mentioned in the dpkg contents. FWIW, I'm on Ubuntu & the start/stop script worked fine for me. I checked with ps that nothing was running before unzipping in the correct stop. At any rate, the Recordings section is now populating!!! BTW, the reason I'm trying this is because the native plex scanner seems to miss about 50% of my recordings. Last night I was trying to watch something on my android tablet, and I could not find it because (I guess) the Plex scanner could not figure it out. FWIW, the problematic show now seems to be in the index, even thhough it is a show which BMT can't figure out either (Silicon Valley: American Experience). Thanks so much for this!! Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#472
|
||||
|
||||
Quote:
You should see ALL recordings now, and movies for that matter recorded by SageTV (If you setup a SageTV Movies Section and used the SageTV Movie Scanner of course). Please let me know if you have any other issues, have enhancement suggestions, etc. With enhancements, I haven't done much updating on it in a while since it has been working so smoothly, but that doesn't mean i can't find time to do some updates. |
#473
|
|||
|
|||
Why is it that I am getting better metadata for all my shows using the built in scanner rather then the Sagetv agent? All my file are named correctly.. but i tried using the Sage agent and half my shows have no descriptions... yet when I use the built in scanner I get info for all my shows.
Perhaps the built in scanner has better logic to match episodes?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#474
|
||||
|
||||
Quote:
The scanner is used to take the oddly named files and obtain base level information required by Plex to add it to the content library. This includes: 1) Title 2) Season # 3) Ep # 4) Original airdate (I believe thats right i would have to verify by looking at the code to be sure) The BMT Agent is what is used to get the remaining metadata, poster art, etc. from the sagex apis. If you are seeing sketchy metadata then either 1) you are missing that data in BMT/SageTV or 2) there is an error happening somewhere in your api call from plex to the sagex api. (if this is the case then i would need to see all pert. logs in order to assist you. |
#475
|
|||
|
|||
Maybe it is just taking a lot longer or getting stuck somewhere. I will do more testing in the morning and let you know. Thanks for your quick response.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#476
|
||||
|
||||
no prob, keep me posted.
|
#477
|
||||
|
||||
I'm missing episode descriptions/summaries also on my TV shows; I'll poke around this weekend and see what's what. I've got PlexPass so I'm always using the latest server (and the new computer client is looking pretty good, based on the final version of XBMC Frodo, it has AirPlay, yay!!)
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT) via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2 |
#478
|
||||
|
||||
Quote:
|
#479
|
|||
|
|||
I moved on to using the SageTVScanner with the plex built in TheTVDB agent and am getting better matches
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#480
|
||||
|
||||
yeah, that will work fine provided you have season and episode info in your file names. if not, then you will get some wonky results for certain shows. I would check your BMT however if i were you just to see if you are missing that data inside of SageTV as well...
|
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 |