User(s) browsing this thread: jluc2808, sonic_xig, 1 Guest(s)
|
[200/300] [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
|
|
08-21-2012, 09:37 AM
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I wouldn't follow sickbeard, it's not well written. I generally code for 2.7 and have others that tell me when 2.6 doens't work. not really sure what is on the pch but the format(variable) standalone should do what you need.
|
|||
|
08-21-2012, 11:11 AM
|
|||
|
|||
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
(08-21-2012 09:37 AM)accident Wrote: I wouldn't follow sickbeard, it's not well written. I generally code for 2.7 and have others that tell me when 2.6 doens't work. not really sure what is on the pch but the format(variable) standalone should do what you need. I didn't use any code from sickbeard, just looked through its and other python programs code. When i first tried to solve this error i thought about using .decode/.encode but every time i tried it wold error out no matter what syntax i used. After looking through the other apps i noticed calls to the system encoding, pchtrakt had none. I added default system encoding set to utf-8 and my first idea of using .decode/.encode worked first time. So in the end i only had to add 2 new lines and modify 1. I am still learning python but am please with what i have learnt so far, but i also know i am way off writing a program from scrach. BTW it is 2.7 on the nmt's If you want to see my changes and offer any advice it can be found HERE
My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
08-21-2012, 07:48 PM
|
|||
|
|||
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
(08-17-2012 01:17 AM)jhmiller Wrote: I may have a fix for this error. I have tried it and works for me. Yes Yes it's works for me to on mine PCH C-200 |
|||
|
08-22-2012, 01:40 AM
|
|||
|
|||
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
(08-18-2012 05:06 PM)JamesTF Wrote: Question, is it possible the changes you made to fix the symbols error could affect the "Ignored Keywords"? I have that set in the .ini file as: Ignored Keywords = Trailer,TRAILER,trl,tlr I remembered your settings and noticed that your ignored keywords had upper and lower case, i changed the code so you only need to use lower case and it will still match. Miller My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
1 user says Thank You to jhmiller for this post |
|
08-22-2012, 08:35 PM
|
|||
|
|||
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
(06-15-2012 10:05 PM)JamesTF Wrote:(05-16-2012 07:17 PM)JamesTF Wrote:I was wondering if this was still something you may implement?(05-11-2012 10:47 AM)Bazrah Wrote: Hi John, Can we take this to the next level and get it to adjust the xml to show watched? I think the watched monitor might do this so you could collaborate? Iv'e bee going throught the thread seeing what users want adding and found this. I have got a basic setup in place that can change the xml file but unsure as to what xml file this is refering to. I have tested with a tv show that has an xml file Jukebox/TV_SHOW.S01E01.Episode.1.xml. Whilst i can update the file from Code: <watched>false</watched>Code: <watched>true</watched>If you want see feature added please give me some more info and ill try to get it added while jlauwers is playing his games
My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
1 user says Thank You to jhmiller for this post |
|
08-23-2012, 02:07 AM
(This post was last modified: 08-23-2012 02:11 AM by JamesTF.)
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Hello jhmiller,
Thank you for the upper/lower case changes to the code. I will change it and test. One thing I noticed a couple of days ago I played a trailer, I am sure it was less than 90 seconds, but the watched file was still created. I did down load and installed the links you provided beforehand. But I will double check tomorrow and post back. In regards to changing the xml file, I am glad I am not the only one who thought it was odd there was only one xml per season. I just did some checking on one season that we have only watched episode 1-7. Further down in the xml it lists "first part 1" "first part 2" etc. and I believe those are actually episodes (first part 1 = episode 1). And in the same section of each episode is a "watched date" where the time and date are entered once it has been watched. Notice in episode 8 though that "watched date" is missing. So that entire line is added once it has been watched. There may be other differences as well that I have missed, I am not even close to beginning to know/understand how this all works...just some observations. The xml is in the jukebox folder as; Army Wives S04E01.xml Here is a section of the xml, episode 7 has been watched, 8 has not been. </file> <file firstPart="7" lastPart="7" season="4" size="276174807" subtitlesExchange="NO" title="Heavy Losses" vod="" watched="true"> <fileLocation>Z:\Movies\(123) TV Shows\Army Wives\Season 4\Army Wives S04E07.mkv</fileLocation> <fileURL>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/Media/Movies/%28123%29%20TV%20Shows/Army%20Wives/Season%204/Army%20Wives%20S04E07.mkv</fileURL> <fileTitle part="7">Heavy Losses</fileTitle> <airsInfo afterSeason="0" beforeEpisode="0" beforeSeason="0" part="7">7</airsInfo> <firstAired part="7">2010-05-23</firstAired> <watchedDate>2012-07-23 09:55:11</watchedDate> <filePlot part="7">Chase returns home and appears to be making an effort in reprioritizing his life with Pamela and the kids. Claudia Joy, eager to finish her law degree, has an interview with Alex Miller, the Dean of Admissions at Carolina Law School. Denise is faced with a difficult choice in regard to Jeremy.</filePlot> <fileRating part="7">70</fileRating> <fileImageURL part="7">http%3A%2F%2Fthetvdb.com%2Fbanners%2Fepisodes%2F80231%2F2094761.jpg</fileImageURL> <fileImageFile part="7">Army%20Wives%20S04E07.videoimage.jpg</fileImageFile> </file> <file firstPart="8" lastPart="8" season="4" size="275485358" subtitlesExchange="NO" title="Over and Out" vod="" watched="false"> <fileLocation>Z:\Movies\(123) TV Shows\Army Wives\Season 4\Army Wives S04E08.mkv</fileLocation> <fileURL>file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/Media/Movies/%28123%29%20TV%20Shows/Army%20Wives/Season%204/Army%20Wives%20S04E08.mkv</fileURL> <fileTitle part="8">Over and Out</fileTitle> <airsInfo afterSeason="0" beforeEpisode="0" beforeSeason="0" part="8">8</airsInfo> <firstAired part="8">2010-06-06</firstAired> <filePlot part="8">Joan is very anxious to return home after rebuilding schools in Iraq she hopes the news she will receive will be orders that she will be allowed to go back with her unit before she got injured. A broken leg could end Emmalin's dreams of being a professional hockey player. Pamela and Chase take the steps to change something in their marriage after their children began to sense that that thing is very bad. </filePlot> <fileRating part="8">73</fileRating> <fileImageURL part="8">http%3A%2F%2Fthetvdb.com%2Fbanners%2Fepisodes%2F80231%2F2203311.jpg</fileImageURL> <fileImageFile part="8">Army%20Wives%20S04E08.videoimage.jpg</fileImageFile> </file> Thanks, James |
|||
|
08-23-2012, 03:12 AM
(This post was last modified: 08-23-2012 03:13 AM by jhmiller.)
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Thanks James, I think what i have done so far will be ok for movies as they have 1 xml for each 1. Tv stuff looks a little harder to do but i will have a go.
The 90 seconds limit should work as when i tested it, it would not output anything (scrobble, log or watched file). As for the case changes, i have not committed them yet as started other changes and thought that was to small a change. If you would like to change it, you need to replace Code: if keyword in title:Code: if keyword.lower() in title.lower():then restart. Its only a small change but saves typing Trailor,trailor,TRAILOR etc. Miller My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
08-23-2012, 03:18 AM
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I have been playing with changing the movie xml trying to figure out which watched setting to change in order for it to show as watched without running yamj (I am using Eversion). Can you tell me what you are changing in the xml? I have been beating my head up against the wall.
Thanks, James |
|||
|
08-23-2012, 03:26 AM
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Code: <showStatus>UNKNOWN</showStatus>Like i said, im not sure if correct, thats why i asked about it. I just wanted to see if i could change it from false to true. How the jukebox then works with this info, i have no idea ![]() Sorry My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
08-23-2012, 03:28 AM
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Movie is the same as tv, eversion uses the index for movie list like other_01.xml and such. But each skin is a little different. If you want it to show in the index wall you would have to change it in the inex if you want to show in details you have to change in per movie details.
|
|||
1 user says Thank You to halfelite for this post |
|
08-23-2012, 03:34 PM
(This post was last modified: 08-23-2012 04:35 PM by JamesTF.)
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Thanks halfelite, I get what you are saying. If you want to change a movie, say "127 Hours" to watched in the "Unwatched" index then you have to find that movie in "Other_Unwatched_1.xml" index and change "<watched>false</watched>" to "<watched>true</watched>".
If you also want to change that movie to watched in "All" then you have to find that movie in "Other_All_1.xml" and change it the same way. Following the above I was able to manually change an unwatched movie and it works perfectly, the watched flag is shown on the box cover without re-running yamj. I have not figured out how to change an episode to watched however. I have tried making the same change to "Other_TV Shows_1.xml" and "Other_Unwatched_1.xml" but neither will change the tv show episode to watched. Does anyone know what I am missing? Thanks, James edit: Ah...In order to change a tv episode to watched (for instance Army Wives S04E08) you need to go into "Set_Army Wives_1.xml" and find: <file firstPart="8" lastPart="8" season="4" size="275485358" subtitlesExchange="NO" title="Over and Out" vod="" watched="false"> and change: watched="false"> to watched="true"> Once that is changed the episode will show as watched without running yamj. As long as a watched file is created at the same time when yamj is run the movie or episode will remain as watched. |
|||
|
08-25-2012, 09:07 PM
(This post was last modified: 08-25-2012 09:08 PM by Bazrah.)
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Hi again,
I reinstalled python then restarted pchtrakt and the log gives me: Code: 2012-08-25 21:04:05,664 INFO Pchtrakt STARTOdd thing is that TV seems to be scrobbling fine, just not movies. I'm on version 22. PchTrakt | YAMJ wiki
|
|||
|
08-25-2012, 09:23 PM
(This post was last modified: 08-25-2012 10:44 PM by jhmiller.)
|
|||
|
|||
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
(08-25-2012 09:07 PM)Bazrah Wrote: Hi again, Should not file name be Hellraiser.(1987), rename and try it again. XML Update: Ive done a lot on this so far and can change a few of the xml files, however im stuck on a few things if any 1 wants to try and help out. 2. to find the files i use glob.glob(PATH) but this gives errors if file path has a ' in it, i cant find a work around for that If i put these in myself it works fine but need at least 1. so can change tv shows to watched as each file has lots of entries so need to find the matching show title. I was doing it by season and episode untill i found out that all shows matching S01E02 were set to watched lol My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
08-26-2012, 02:44 AM
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Update again
![]() Almost finished with th Tv side of things Code: 2012-08-26 02:22:30,112 INFO /share/Storage/PC/HD-E/Jukeboxes/YAMJ/Jukebox4/Game of Thrones - S02E01 - The North Remembers.xml has been modified as watched for Game of Thrones - S02E09 - Blackwater.mkvI do not know how each of these effects the display of watched files - maybe some one does or could say what are the best ones to change. I hope to have the movie (easier to do then Tv) side of things done by tomorrow Miller My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
08-26-2012, 04:21 AM
|
|||
|
|||
|
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
tv and movies are the same exact thing as far as watched in the xml files. you have each file, once all the files are marked watch then the standalone watched gets enabled.
|
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]







![[+]](images/collapse_collapsed.gif)

it can be found ![[Image: watched-fanart.jpg]](http://trakt.tv/user/jhmiller/widget/watched-fanart.jpg)




