tvshowtime / tvshowtime-plex-scrobbler

This scrobbler sends episodes you watch on your Plex Media Center to TVShow Time
MIT License
64 stars 16 forks source link

Fails to find metadata #7

Open ghost opened 8 years ago

ghost commented 8 years ago

Hello.

I've spent a few hours trying to get this to work today, but I'm hitting a wall.

It installs, it runs, the logs show it's seeing the PMS and grabs the TV Show ID. There are no errors at all.

The problem is, it states it's fetching the meta data from the media XML, but it doesn't actually return anything, then loops back to 'Found played'.

There's one show (any episode) that does work, so I know it's setup correctly, but it fails to find others.

E.g.

Here's a working example

Colony (episode 6). The Script/CMD window shows the video is playing:

<Element 'Video' at 0x2ffc0d0>

The log for plex_tvst_scrobbler.log shows the correct file, locates the meta details in the XML and correctly updates my TVST account (and tweets my account).

2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] config : mediaserver_log_location -> C:\Users\DELL\AppData\Local\Plex Media Server\Logs\Plex Media Server.log 2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] config : session -> C:\Users\DELL\.config\plex-tvst-scrobbler\session_key 2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] config : mediaserver_url -> http://localhost:32400 2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] config : config file location -> C:\Users\DELL/.config/plex-tvst-scrobbler/plex_tvst_scrobbler.conf 2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] config : log_file -> c:\tvsttemp\plex_tvst_scrobbler.log 2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] config : cache_location -> c:\tvsttemp\plex_scrobble.cache 2016-04-04 12:12:26,569 [4812] [main <module>] [DEBUG] using tvshowtime.com session key=C:\Users\DELL\.config\plex-tvst-scrobbler\session_key , st_mtime=Sun Apr 03 19:43:33 2016 2016-04-04 12:12:26,569 [4812] [main main] [INFO] starting log monitor thread. 2016-04-04 12:12:57,384 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14796' from plex log 2016-04-04 12:12:57,384 [4812] [plex_tvst_scrobbler.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://localhost:32400/library/metadata/14796 2016-04-04 12:12:58,713 [4812] [plex_tvst_scrobbler.plex_monitor fetch_metadata] [INFO] Matched TV show Colony S01E07 2016-04-04 12:12:58,714 [4812] [plex_tvst_scrobbler.tvst scrobble] [INFO] submitting 284210 - S01E07 to tvshowtime.com. 2016-04-04 12:13:06,839 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14796' from plex log 2016-04-04 12:13:06,839 [4812] [plex_tvst_scrobbler.plex_monitor monitor_log] [WARNING] Dupe detection : 14796, not submitting 2016-04-04 12:13:16,752 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14796' from plex log 2016-04-04 12:13:16,752 [4812] [plex_tvst_scrobbler.plex_monitor monitor_log] [WARNING] Dupe detection : 14796, not submitting 2016-04-04 12:13:17,030 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14796' from plex log 2016-04-04 12:13:17,030 [4812] [plex_tvst_scrobbler.plex_monitor monitor_log] [WARNING] Dupe detection : 14796, not submitting 2016-04-04 12:13:26,734 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14796' from plex log 2016-04-04 12:13:26,734 [4812] [plex_tvst_scrobbler.plex_monitor monitor_log] [WARNING] Dupe detection : 14796, not submitting 2016-04-04 12:13:36,821 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14796' from plex log 2016-04-04 12:13:36,821 [4812] [plex_tvst_scrobbler.plex_monitor monitor_log] [WARNING] Dupe detection : 14796, not submitting

Here's a NON working example

Baskets (episode 1). The Script/CMD window shows the video is playing, but this time instead of one entry, the entry keeps getting added every 5-10 seconds, again and again (different numbers):

<Element 'Video' at 0x30065f0>
<Element 'Video' at 0x300a7f0>
<Element 'Video' at 0x300ea10>
<Element 'Video' at 0x3010c30>
<Element 'Video' at 0x3015e50>
<Element 'Video' at 0x3020090>
<Element 'Video' at 0x301f2b0>
<Element 'Video' at 0x307d4d0>

The log for plex_tvst_scrobbler.log shows the correct ID and meta location, but doesn't seem to read it or take anything from it. It then doesn't update my TVST account, and continues to search until the show has finished.

2016-04-04 12:26:44,987 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14712' from plex log 2016-04-04 12:26:44,987 [4812] [plex_tvst_scrobbler.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://localhost:32400/library/metadata/14712 2016-04-04 12:26:53,838 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14712' from plex log 2016-04-04 12:26:53,838 [4812] [plex_tvst_scrobbler.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://localhost:32400/library/metadata/14712 2016-04-04 12:27:03,852 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14712' from plex log 2016-04-04 12:27:03,852 [4812] [plex_tvst_scrobbler.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://localhost:32400/library/metadata/14712 2016-04-04 12:27:13,841 [4812] [plex_tvst_scrobbler.plex_monitor parse_line] [INFO] Found played TV show and extracted library id '14712' from plex log 2016-04-04 12:27:13,841 [4812] [plex_tvst_scrobbler.plex_monitor fetch_metadata] [INFO] Fetching library metadata from http://localhost:32400/library/metadata/14712

I can then go and play another show (e.g. Fear the Walking Dead) and that will play fine too. The shows that match/upload to TVST are hit and miss. Any ideas. I can provide more logs if needed.