SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #801  
Old 09-13-2013, 08:34 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
I got a pretty major update in the works here. I uncovered several sneaky bugs which have been causing interminatn issues for a lot of people. mainly update, yeah it wasn't working due to the stinking properties file. When the update function is called, the SEARCH is bypassed. properties file is only read in the search... so the URLS being formed on ONLY update resulted in NADA!

here is a list of what I have been working on and a few screens so you can see how its looking
- fanart/posters fixed (mostly) there is still the case of empty poster by bmt
- series level duration fixed
- series level date (set to most recent recording (sage doesn't store series level date
- watched/unwatched now syncs like it should from sage to plex
-- I believe this will allow me to sync statuses both ways on scan.. I have to ask a few questions over on the plex forum but now that updating is working, we should be good to go!
- Show category Strings are now working correctly (before only 1 would show)
- Parental Ratings
-Director / Producer / Actors / Guest Stars / etc.
Attached Images
File Type: jpg Screen Shot 2013-09-13 at 9.33.17 PM.jpg (54.2 KB, 186 views)
File Type: jpg Screen Shot 2013-09-13 at 9.33.06 PM.jpg (89.0 KB, 185 views)
Reply With Quote
  #802  
Old 09-13-2013, 10:11 PM
AJ Bertelson AJ Bertelson is offline
Sage Expert
 
Join Date: Dec 2003
Location: Maple Grove, MN
Posts: 532
Quote:
Originally Posted by PiX64 View Post
Strange - That error showed up several weeks back when Plex updated the core code to accept more arguments. Are you running the most recent code from the google site?

If so did you fully shut down plex, restart, clean bundles, empty trash, and rescan?
yep most recent code.

Did everything and a deep scan, here is the log
Attached Files
File Type: txt Plex Media Scanner.txt (5.0 KB, 146 views)
Reply With Quote
  #803  
Old 09-15-2013, 11:04 AM
clarenceb5 clarenceb5 is offline
Sage Advanced User
 
Join Date: Jun 2007
Location: Whitby, ON
Posts: 89
Hi not sure if this question has been asked but I just noticed on the wiki instructions in the 'Configuration' section the first line of instruction is explaining that 3 files need to be modified but step 1 is this:
"Plug-ins\BMTAgent.bundle\Contents\Code\BMTAgent.properties"
But the zip file actually extracts to:
"Plug-ins\BMTAgentTVShows.bundle\Contents\Code"
Should I rename the folder "BMTAgentTVShows.bundle" to "BMTAgent.bundle"?
Thanks.
Reply With Quote
  #804  
Old 09-16-2013, 07:09 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
I will hopefully get a chance to answer these 2 questions at some point today. I also hope to have a test .py agent file for some people to test if you want to PM me.
Reply With Quote
  #805  
Old 09-16-2013, 12:13 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
I believe I have the mystery of the random non showing up fanart/posterart/seasonart nailed down!

Reply With Quote
  #806  
Old 09-16-2013, 06:15 PM
clarenceb5 clarenceb5 is offline
Sage Advanced User
 
Join Date: Jun 2007
Location: Whitby, ON
Posts: 89
Quote:
Originally Posted by clarenceb5 View Post
Hi not sure if this question has been asked but I just noticed on the wiki instructions in the 'Configuration' section the first line of instruction is explaining that 3 files need to be modified but step 1 is this:
"Plug-ins\BMTAgent.bundle\Contents\Code\BMTAgent.properties"
But the zip file actually extracts to:
"Plug-ins\BMTAgentTVShows.bundle\Contents\Code"
Should I rename the folder "BMTAgentTVShows.bundle" to "BMTAgent.bundle"?
Thanks.
So I just completed a test with the plug-ins BMTAgent folder name and I discovered that when it is named "BMTAgent.bundle" I don't get any cover art from BMT for TV Shows and for Movies I don't get anything at all. When the plug-ins BMT Agent folder named "BMTAgentTVShows.bundle" then I get all the cover art from BMT for TV Shows and for Movies I don't get anything at all. For the record I've never been able to get Movies to work with BMTAgent. But for me it's not a big conerne with the movies because they work just fine with the Plex Movie Scanner.
Reply With Quote
  #807  
Old 09-16-2013, 06:18 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by clarenceb5 View Post
So I just completed a test with the plug-ins BMTAgent folder name and I discovered that when it is named "BMTAgent.bundle" I don't get any cover art from BMT for TV Shows and for Movies I don't get anything at all. When the plug-ins BMT Agent folder named "BMTAgentTVShows.bundle" then I get all the cover art from BMT for TV Shows and for Movies I don't get anything at all. For the record I've never been able to get Movies to work with BMTAgent. But for me it's not a big conerne with the movies because they work just fine with the Plex Movie Scanner.
Had to make an u planned get trip up to U of Wisconsin for my bulldog daphne... Sorry for my lack of responses.

Movies don't use the bmt agent but rather u should use the standard plex agent for movies... It should say tha in the wiki.
Reply With Quote
  #808  
Old 09-16-2013, 06:22 PM
clarenceb5 clarenceb5 is offline
Sage Advanced User
 
Join Date: Jun 2007
Location: Whitby, ON
Posts: 89
Quote:
Originally Posted by PiX64 View Post
Had to make an u planned get trip up to U of Wisconsin for my bulldog daphne... Sorry for my lack of responses.

Movies don't use the bmt agent but rather u should use the standard plex agent for movies... It should say tha in the wiki.
No unfortunately the wiki still says to:
"Select SageTV Movie Scanner for the Media Scanner"
Reply With Quote
  #809  
Old 09-16-2013, 06:25 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by clarenceb5 View Post
No unfortunately the wiki still says to:
"Select SageTV Movie Scanner for the Media Scanner"
That's because you should use the sage tv scanner but NOT the bmt agent for metadata...
Reply With Quote
  #810  
Old 09-16-2013, 06:31 PM
clarenceb5 clarenceb5 is offline
Sage Advanced User
 
Join Date: Jun 2007
Location: Whitby, ON
Posts: 89
Quote:
Originally Posted by PiX64 View Post
That's because you should use the sage tv scanner but NOT the bmt agent for metadata...
Sorry my bad on the terminology. I meant to say that I am using the BMTScanner for movies not BMTAgent. Like you said there is no BMTAgent for movies. So same end results just incorrect term, when I use the BMTScanner for Movies with the Freebase Agent as the wiki instructions say to use I don't get anything in my Movies section. So I use the Plex Movie Scanner with The Movie Database Agent and all my movies show up.
Reply With Quote
  #811  
Old 09-17-2013, 12:21 AM
mdnttoker mdnttoker is offline
Sage Aficionado
 
Join Date: Aug 2006
Posts: 446
Quote:
Originally Posted by PiX64 View Post
I got a pretty major update in the works here. I uncovered several sneaky bugs which have been causing interminatn issues for a lot of people. mainly update, yeah it wasn't working due to the stinking properties file. When the update function is called, the SEARCH is bypassed. properties file is only read in the search... so the URLS being formed on ONLY update resulted in NADA!

here is a list of what I have been working on and a few screens so you can see how its looking
- fanart/posters fixed (mostly) there is still the case of empty poster by bmt
- series level duration fixed
- series level date (set to most recent recording (sage doesn't store series level date
- watched/unwatched now syncs like it should from sage to plex
-- I believe this will allow me to sync statuses both ways on scan.. I have to ask a few questions over on the plex forum but now that updating is working, we should be good to go!
- Show category Strings are now working correctly (before only 1 would show)
- Parental Ratings
-Director / Producer / Actors / Guest Stars / etc.
awesome...looking fwd to this!
Reply With Quote
  #812  
Old 09-18-2013, 09:33 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
I got a few people testing this out for me, but so far so good. Everything is working really well and I am very happy with the imporvements that have been made and bugs that have been eliminated.

anyone else wanna beta test it, just PM me with your email.
Reply With Quote
  #813  
Old 09-18-2013, 10:10 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
how beautiful is this!


still 1 minor thing with what happens when there is no episode thumbnail..sean is looking at something for me on the sagex side, but all in all working VERY nicely.
Reply With Quote
  #814  
Old 09-18-2013, 10:11 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Another pic showing director and writer working
Attached Images
File Type: png Screen Shot 2013-09-18 at 11.08.31 AM.png (699.1 KB, 157 views)
Reply With Quote
  #815  
Old 09-18-2013, 10:14 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
ALSO!

updates should work now. So you shouldn't HAVE to remove the section and rescan. I just did a test where the first scan resulted in missing fanart (on purpose), and then i rescanned which calls the update code....fanart showed up along with all missing metadata
Reply With Quote
  #816  
Old 09-18-2013, 01:01 PM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
excellent!

Recently Aired is not working correctly
Attached Images
File Type: jpg Screen Shot 2013-09-18 at 2.01.12 PM.jpg (139.3 KB, 157 views)
Reply With Quote
  #817  
Old 09-18-2013, 08:19 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
excellent!

Recently Aired is not working correctly
Great Job the only ones that could not get Data for are the Law & Order: Criminal Intent. I think it might have something to do with the ampersand. Or it thinks its a movie. Data is ok in BMT.

Everything Else worked great watch status carried over. Shows I was having problems with before had no problems with the update.... and I have thousands of Shows and am only missing the Law & Orders so great job. You already know recently aired did not work.

Edit it cannot be the & because Rizzoli & Isles worked.

Code:
2013-09-18 19:12:47,470 (23e0) :  DEBUG (runtime:914) - Response: [200] str, 16 bytes
2013-09-18 19:12:50,799 (2aa8) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.bmtagenttvshows/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCmVuczQKbGFuZ3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMTAKczE2CjE3ZGUwMGYyNDE4MDhkZDNzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQo4czcKZXBpc29kZXMzMQpUbyB0aGUgQm95IGluIHRoZSBCbHVlIEtuaXQgQ2FwczQKbmFtZXMxCjFzOAplcGlzb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nRlbnQlNUNTZWFzb24lMjAxMCU1Q0xhdyUyMCUyNiUyME9yZGVyJTIwQ3JpbWluYWwlMjBJbnRlbnQlMjAtJTIwUzEwRTA4JTIwLSUyMFRvJTIwdGhlJTIwQm95JTIwaW4lMjB0aGUlMjBCbHVlJTIwS25pdCUyMENhcCUyMC01OTY5NzEwLTAlMkVtcDRzOApmaWxlbmFtZXM0MApmNjcxODI1MWRkYWM5ZTZhYTE5NjQ5ZWVhNzdjNmM1ZGY5NDg2MDdhczgKcGxleEhhc2hzNwozNTgxMDAyczgKZHVyYXRpb25zMwo1NDdzMgppZHIwCg__
2013-09-18 19:12:50,801 (2aa8) :  INFO (agentkit:914) - Searching for matches for {'openSubtitlesHash': '17de00f241808dd3', 'episode': '8', 'name': 'To the Boy in the Blue Knit Cap', 'episodic': '1', 'show': 'Law & Order: Criminal Intent', 'season': '10', 'filename': '%5C%5CNYPLAYER%5Cbackup%5CSAGEED%5CLaw%20%26%20Order%20Criminal%20Intent%5CSeason%2010%5CLaw%20%26%20Order%20Criminal%20Intent%20-%20S10E08%20-%20To%20the%20Boy%20in%20the%20Blue%20Knit%20Cap%20-5969710-0%2Emp4', 'plexHash': 'f6718251ddac9e6aa19649eea77c6c5df948607a', 'duration': '3581002', 'id': '547'}
2013-09-18 19:12:50,802 (2aa8) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/library/metadata/547/tree'
2013-09-18 19:12:50,905 (2aa8) :  DEBUG (logkit:13) - ****STARTTTTTTTT
2013-09-18 19:12:50,905 (2aa8) :  DEBUG (logkit:13) - ***cwdddddddddddd=\\?\C:\Users\epere_000\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.bmtagenttvshows
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ***propertiesFilePath=C:\Users\epere_000\AppData\Local\Plex Media Server\Plug-ins\BMTAgentTVShows.bundle\Contents\Code\BMTAgent.properties
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ***Properties file key=SAGEX_HOST; value=http://usert:password@192.168.0.9:8080
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ***Properties file key=PLEX_HOST; value=http://localhost:32400
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ****media.id=547; media.filename=%5C%5CNYPLAYER%5Cbackup%5CSAGEED%5CLaw%20%26%20Order%20Criminal%20Intent%5CSeason%2010%5CLaw%20%26%20Order%20Criminal%20Intent%20-%20S10E08%20-%20To%20the%20Boy%20in%20the%20Blue%20Knit%20Cap%20-5969710-0%2Emp4
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ****unquotedFilepathAndName=\\NYPLAYER\backup\SAGEED\Law & Order Criminal Intent\Season 10\Law & Order Criminal Intent - S10E08 - To the Boy in the Blue Knit Cap -5969710-0.mp4
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ****unquotedFilename=Law & Order Criminal Intent - S10E08 - To the Boy in the Blue Knit Cap -5969710-0.mp4
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - ****filename = Law & Order Criminal Intent - S10E08 - To the Boy in the Blue Knit Cap -5969710-0
2013-09-18 19:12:50,907 (2aa8) :  DEBUG (logkit:13) - **** URL to Call = http://usert:password@192.168.0.9:8080/sagex/api?c=plex:GetMediaFileForName&1=Law & Order Criminal Intent - S10E08 - To the Boy in the Blue Knit Cap -5969710-0&encoder=json
2013-09-18 19:12:51,150 (2aa8) :  DEBUG (logkit:13) - ***Movies/Movies/Film found, ignoring and will not call update; categorylist=Movie / Romantic comedy
2013-09-18 19:12:51,151 (2aa8) :  DEBUG (runtime:914) - Response: [200] str, 320 bytes
Attached Images
File Type: jpg Intent.jpg (328.1 KB, 138 views)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-18-2013 at 08:50 PM.
Reply With Quote
  #818  
Old 09-19-2013, 06:52 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Please email me a short snippet of the file with ORIGNAL file name if you can. also please send me the full bmtagent log which has this file in it.

It is most likely a piece of metadata that the agent is grabbing or thinks it is grabbing from sagex and that returns None or null. I probably forgot to throw conditional around this metadata field, and therefore it fails upon writing the metadata to the plex media object.

scratch sending me a sample file... I see the exact filename in the log you sent. i will use that.
just as a heads up, only sending a portion of the file doesn't help all that much.. so if you have problems please just go ahead and attach the entire log.

*****Edit - I took another look at your short snippet of log and it looks like, at least from the log that the BMTAgent is picking up the Law&* Order episode as a Movie. If it is stored as a movie in plex, then it will NOT show up in the TV Shows section on Plex. Is this an imported TV show?
Can you check to see if it is set as a Movie?

Last edited by PiX64; 09-19-2013 at 06:56 AM.
Reply With Quote
  #819  
Old 09-19-2013, 08:17 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by PiX64 View Post
Please email me a short snippet of the file with ORIGNAL file name if you can. also please send me the full bmtagent log which has this file in it.

It is most likely a piece of metadata that the agent is grabbing or thinks it is grabbing from sagex and that returns None or null. I probably forgot to throw conditional around this metadata field, and therefore it fails upon writing the metadata to the plex media object.

scratch sending me a sample file... I see the exact filename in the log you sent. i will use that.
just as a heads up, only sending a portion of the file doesn't help all that much.. so if you have problems please just go ahead and attach the entire log.

*****Edit - I took another look at your short snippet of log and it looks like, at least from the log that the BMTAgent is picking up the Law&* Order episode as a Movie. If it is stored as a movie in plex, then it will NOT show up in the TV Shows section on Plex. Is this an imported TV show?
Can you check to see if it is set as a Movie?
I just did a test shot with just the Criminal Intent files and it found the metadata. Log attached

PS They are all TV Shows that were recorded and transcoded... to mp4... My roku direct plays them which is great.
Attached Files
File Type: zip com.plexapp.agents.bmtagenttvshows.zip (29.8 KB, 113 views)
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-19-2013 at 08:21 AM.
Reply With Quote
  #820  
Old 09-19-2013, 08:32 AM
PiX64's Avatar
PiX64 PiX64 is offline
Sage Icon
 
Join Date: Dec 2008
Location: Illinois
Posts: 1,991
Quote:
Originally Posted by nyplayer View Post
I just did a test shot with just the Criminal Intent files and it found the metadata. Log attached

PS They are all TV Shows that were recorded and transcoded... to mp4... My roku direct plays them which is great.
can u give me some more info on what happened here?

From the log it looks like everything went fine.
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
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


All times are GMT -6. The time now is 07:09 PM.


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