[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: greenxeyezz, 2 Guest(s)
Post Reply 
[200/300] [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
08-17-2012, 05:54 PM (This post was last modified: 08-17-2012 05:58 PM by nino92.)
Post: #316
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
@Jhmiller,

Works perfect for me too on A300.
(fix for apostrophes feature)Tongue

Many Thanks
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 11:19 AM
Post: #317
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
As you know, I have been playing with jlauwers code and now have working ISO, VIDEO_TS as well as better handling of ?,',& etc in file names.

The ISO works like any other file type as long as the file is named correctly. The VIDEO_TS support, im not sure about as i am unsure how YAMJ's watched feature works with these folders.

On my setup i have
/Films/NAME/NAME/VIDEO_TS
/Films/NAME/NAME.nfo
/Films/NAME/NAME.jpg
/Films/NAME/NAME.fanart.jpg

Given this i have made it so the watched file is
/Films/NAME/NAME.watched

Can anyone confirm if this is correct?

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 01:34 PM (This post was last modified: 08-18-2012 01:35 PM by JamesTF.)
Post: #318
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
jhmiller,

I can confirm Video_TS and .mkv watched files are being correctly created now with (') in them for me.

My folder structure is similar:

/Films/Name/VIDEO_TS
/Films/Name/Name.nfo
/Films/Name/Name.jpg
etc

or for mkv files:

/Films/Name/Name.mkv
/Films/Name/Name.nfo
etc

I haven't had the chance to test movies starting with a number such as 17 Again but I will and report back. Those were the only two types of errors I had run across. I will also look for (&) (?) and any other symbols in my movie titles and test.

Thanks again,
Tim
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 02:16 PM
Post: #319
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I didn't think watched files were being created for VIDEO_TS folders, well i tried and it didn't send info to trakt or make a .watched folder.

Ill reset back to the standard version and try again.

Thanks for the info.
Miller

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 02:27 PM
Post: #320
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I have been using Pchtrakt for just a few months but it always has created both .mkv and video_ts watched files for me, just not correctly when there were symbols in the titles.
I have Pchtrakt put all the watched files in a watched folder, if that makes any difference.

Also I am not using Trakt.tv feature so I am not sure about that.
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 02:31 PM (This post was last modified: 08-18-2012 02:36 PM by jhmiller.)
Post: #321
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I just tested a clean install of pchtrakt and i could not get it to post to trakt.tv. I tried 2 folders and neither would see film title but it did make a watched file but i dont think it is right for use with YAMJ

/FILMS/The.Desert.Fox.The.Story.of.Rommel.(1951)/The.Desert.Fox.The.Story.of.Rommel.(1951)/.watched

So it makes a .watched file along side the VIDEO_TS folder, where i always thought posters, fanart and nfo's(and the watched file) should be 1 folder level upHuh

Can any 1 else confirm VIDEO_TS folder do scrobble and are the watched files are seen by YAMJ?

Thanks

(08-18-2012 02:27 PM)JamesTF Wrote:  I have been using Pchtrakt for just a few months but it always has created both .mkv and video_ts watched files for me, just not correctly when there were symbols in the titles.
I have Pchtrakt put all the watched files in a watched folder, if that makes any difference.

Also I am not using Trakt.tv feature so I am not sure about that.
Thanks James, Thought i was going do-lally.

I was thinking you were using Trakt.tv feature's.

When it makes the watched file for VIDEO_TS stuff, does it give it a name or just .watched? like it does for me.

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 05:06 PM
Post: #322
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
VIDEO_TS files (Films/Green Lantern (2011)/Video_TS get a watched file named: Green Lantern (2011).watched
MKV files get named: Green Lantern (2011).mkv.watched

Yamj does pick up the watched files from my watched folder as well.

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
Or do I need spaces after the comma's?

I thought it worked at one time but I noticed last night and this morning that trailers are being added to the watched folder again. As an example: 17 Again (2009).[TRAILER-17again-tlr2_h480p].mov.watched

Thanks,
James
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 05:38 PM
Post: #323
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I had forgoted about a dedicated folder for the .watched files untill you said above. My changes broke it but i have fixed it now.

I don't think it would of broken the ignored keywords feature, how you have it is ok but maybe in quotes, im not sure as ive never used it.

While getting iso and video_ts working i had to add in a min time for whats playing as some iso/video_ts have trailers in the file and trakt would say the file was done after watching an advert/trailer. As long as your trailers are less then 90 seconds it should be ignored anyway with my changes.

I have git hub account ready so can ask jlauwers to merge my changes into the offical pchtrackt branch when he feels what i have done is good enougthBlush

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to jhmiller for this post
08-18-2012, 06:42 PM
Post: #324
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I will monkey around with the trailers and ini for the trailers. I didn't think the changes made had anything to do with it, but I figure it never hurts to ask.

Thanks very much for all of your help and hard work!!!

James
Find all posts by this user
Add Thank You Quote this message in a reply
08-18-2012, 09:29 PM
Post: #325
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
I have finished with my changes. I have asked for it to be pulled into the main code but if you would like to try it out, you can.

You just need to open up scrobble.py and the pch.py files in the pchtrakt folder with a good editor (notepad++) and replace the code with the links below.

scrobble.py
pch.py

Please report how you get on as it will help jlauwers decide if its worth adding.

Just like to thank jlauwers for the great app and hope he don't mind me playing around with his code Angle

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
08-19-2012, 06:05 AM
Post: #326
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Hi,

I have found another error in playing a tv show.

Code:
2012-08-12 16:23:43,076 INFO File: The Big Bang Theory - S02E07 - The Panty Piñata Polarization.avi
2012-08-12 16:23:45,711 INFO Sending play: 80379 The Big Bang Theory 2007 2 7 1269 1
2012-08-12 16:23:45,712 INFO Video playing: success - watching The Big Bang Theory 2x07
2012-08-12 16:38:49,841 INFO Sending play: 80379 The Big Bang Theory 2007 2 7 1269 72
2012-08-12 16:38:49,843 INFO Video playing: success - watching The Big Bang Theory 2x07
2012-08-12 16:42:45,535 ERROR This should never happend! Please contact me with the error if you read this
Traceback (most recent call last):
  File "pchtrakt.py", line 218, in <module>
    doWork()
  File "pchtrakt.py", line 163, in doWork
    Debug('::: {0} :::'.format(pchtrakt.lastPath))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 139: ordinal not in range(128)
2012-08-12 16:42:45,578 ERROR /opt/sybhttpd/localhost.drives/NETWORK_SHARE/share1/Video/TV Shows/The Big Bang Theory/Season 2/The Big Bang Theory - S02E07 - The Panty Piñata Polarization.avi
Traceback (most recent call last):
  File "pchtrakt.py", line 218, in <module>
    doWork()
  File "pchtrakt.py", line 163, in doWork
    Debug('::: {0} :::'.format(pchtrakt.lastPath))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 139: ordinal not in range(128)
2012-08-12 16:42:45,581 ERROR 'ascii' codec can't encode character u'\xf1' in position 139: ordinal not in range(128)
Traceback (most recent call last):
  File "pchtrakt.py", line 218, in <module>
    doWork()
  File "pchtrakt.py", line 163, in doWork
    Debug('::: {0} :::'.format(pchtrakt.lastPath))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 139: ordinal not in range(128)


.... this sequence repeats many times in the log file ....

I was watching the file: The Big Bang Theory - S02E07 - The Panty Piñata Polarization.avi

Kane
Find all posts by this user
Add Thank You Quote this message in a reply
08-19-2012, 03:00 PM
Post: #327
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
The file name has a "latin-1" character, pchtrakt so it fails to read it.

I tried looking for a solution to this but failed, we need a more knowledgeable python programer then myself.

Strange thing is that it did read it ok to start off with then failed, i could not even replicate that, would not see file name at all for me. What version of pchtrakt are you using? Maybe somthing has changed in a newer version.

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
08-20-2012, 01:21 PM
Post: #328
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
Hi,

I am using version 0.4.22.

Kane
Find all posts by this user
Add Thank You Quote this message in a reply
08-20-2012, 06:13 PM (This post was last modified: 08-20-2012 06:22 PM by accident.)
Post: #329
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
This is not really pretty but it should work:

Change:
Code:
def Debug(msg, force=False):
    myMsg = unicode(msg)
    if (pchtrakt.debug or force):
        try:
            print myMsg
        except UnicodeEncodeError:
            print myMsg.encode( "utf-8", "replace" )

to:
Code:
def Debug(msg):
    if (pchtrakt.debug or force):
        print format(msg)

The problem is usually becuase str() is used somewhere and it's not unicode friendly. There's a lot of complicated variations of str in frameworks like django you could borrow but format() works well and is c compiled code.

if that doesn't work then you might need to just alter the actual debug call to a less pretty Debug(u":: "+format(variable)+" ::")
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to accident for this post
08-21-2012, 04:14 AM (This post was last modified: 08-21-2012 04:16 AM by jhmiller.)
Post: #330
RE: [Apps] PchTrakt 0.4.22 - Trakt.tv scrobbling
(08-20-2012 06:13 PM)accident Wrote:  This is not really pretty but it should work:

Change:
Code:
def Debug(msg, force=False):
    myMsg = unicode(msg)
    if (pchtrakt.debug or force):
        try:
            print myMsg
        except UnicodeEncodeError:
            print myMsg.encode( "utf-8", "replace" )

to:
Code:
def Debug(msg):
    if (pchtrakt.debug or force):
        print format(msg)

The problem is usually becuase str() is used somewhere and it's not unicode friendly. There's a lot of complicated variations of str in frameworks like django you could borrow but format() works well and is c compiled code.

if that doesn't work then you might need to just alter the actual debug call to a less pretty Debug(u":: "+format(variable)+" ::")

Thanks for that accident, but was no good, while it did allow the logs to display the ñ i still could not get it to run while that was included in the file name, and it needed to be in the file name due to the watched file needing to be names the same as the file.

I decided to look throught how couchpotato/sickbeard handled thes names and alto not directly related, i did get some clues and now i have it working after hours of trial and error Sad
I just need to test with normal names to make sure this has no adverse effects and i should be able to add to my code and issue another pull request.

Need sleep now Big Grin
Code:
2012-08-21 04:06:28,732 INFO Pchtrakt START
2012-08-21 04:06:29,127 INFO File: The Big Bang Theory - S02E07 - The Panty Piñata Polarization.mp4
2012-08-21 04:06:32,338 INFO Sending play: 80379 The Big Bang Theory 2007 2 7 1730 87
2012-08-21 04:06:32,341 INFO Video playing: success - watching The Big Bang Theory 2x07
2012-08-21 04:07:27,601 INFO I have created the file /share/The Big Bang Theory - S02E07 - The Panty Piñata Polarization.mp4.watched
2012-08-21 04:07:35,755 INFO (Trakt) Video is ending: success - scrobbled The Big Bang Theory 2x07

My Popcorn Hour A110 Trakt.tv (TESTING)
[Image: watched-fanart.jpg]
Community Software Installer - For All Your User Apps
PchTrakt - Millers Mods Download

A-400 - Onkyo TX SR608 AV receiver, C-200, A110
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [100/200/300/400] Wanted! How to install apps without CSI mabdewn 7 1,046 04-20-2013 05:37 PM
Last Post: TReneR
  [200] Installing apps on USB not working ted34 9 1,944 04-17-2013 05:55 PM
Last Post: ted34
  [200] A-210 error installing apps from Csi bartvanl 4 487 03-06-2013 03:15 PM
Last Post: bartvanl
Video [200] [Apps] multicast IPTV Player (FlashLite) ikovrigin 38 16,444 02-17-2013 12:23 AM
Last Post: sunny1081
  [200/300] [Apps] QtWebKit - Web Browser - Updated 23rd Sep vaidyasr 269 112,029 02-12-2013 12:41 PM
Last Post: Willem53
  [300] Guidance needed for using CSI apps mjccox 3 555 01-14-2013 01:16 AM
Last Post: jhmiller
  [200] [Apps] NMT CSI IPTV Player romanr 34 11,907 12-31-2012 07:57 PM
Last Post: romanr
  [200/300/400] Qt 5.0.0-rc1 for NMT - GUI Apps/Games/Utilities vaidyasr 2 896 12-23-2012 06:03 PM
Last Post: vaidyasr
  [200] HELP! No apps/csi Atinkler 22 1,779 11-08-2012 07:58 PM
Last Post: Atinkler
  [300] 300 series and Pchtrakt info pace508 8 2,269 10-18-2012 01:31 PM
Last Post: jhmiller

Forum Jump: