Giter Site home page Giter Site logo

traktforvlc's Introduction

TraktForVLC Travis Build Status AppVeyor Build status

TraktForVLC allows scrobbling VLC content to trakt.tv.

TraktForVLC 2.x works by using together a lua VLC module and a Python helper script in order to find information on the media you are watching. Contrary to previous versions of TraktForVLC, the VLC module allows for a direct binding in your media activity (play, pause, stop) and thus to take immediate actions on your trakt.tv account.

Table of Contents

Information

Credits

This version of TraktForVLC has been rewritten from scratch.

All licensing and used code is mentionned directly in the code source, except for the external libraries and resources information provided below.

License

Copyright (C) 2017-2018 Raphaël Beamonte <[email protected]>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

External libraries and resources

The vlc-logo-1s.mp4 file in this repository, also distributed in the binary files for Windows, contains a VLC logo that is not owned by this project. This logo is owned by its authors. VideoLAN can be reached on their website.

TraktForVLC uses external libraries and APIs for the media resolution:

  • The OpenSubtitles API
  • The TVDB API (through the tvdb_api Python package); TV information is provided by TheTVDB.com, but we are not endorsed or certified by TheTVDB.com or its affiliates.
  • The IMDB API (through the imdbpie Python package)
  • The TMDb API (through the tmdbsimple Python package); This product uses the TMDb API but is not endorsed or certified by TMDb.

TraktForVLC is not endorsed or certified by any of these external libraries and resources owners.

Installation

Finding the installers

Installers are provided in the GitHub release section. The latest release is available here; however, we highly recommend using a stable release if you are not sure of what you are doing.

Once you have found the installer that corresponds to your operating system and downloaded it, simply running it will allow you to install TraktForVLC with the default parameters.

Installation per OS

On Windows, you can right-click and run the file with the administrator privileges to start the install process. The administrator privileges are required as, on Windows, the Python helper is installed as a Windows service.

On Linux and MacOS, make the file executable (using chmod +x file) and then run it in the command line (./TraktForVLC_version_os).

Initial configuration

At the end of the first installation, the initial configuration will automatically be started by the installer. This process aims at authorizing TraktForVLC to access your trakt.tv account.

Depending on your OS, the process is presented a bit differently:

  • On Linux and MacOS: a message giving instructions will appear directly at the end of the installation logs
  • On Windows: a VLC window will be started and the screen will soon show a message giving instructions

The message shown should look like the following:

TraktForVLC is not setup with Trakt.tv yet!
--
PLEASE GO TO https://trakt.tv/activate
AND ENTER THE FOLLOWING CODE:
9EC4F248

The instructions are to go to a URL and enter a given code. Please do while keeping the process (VLC window on Windows) active, and wait after entering the code and validating the authorization that the process stops by itself. If you stops the process before then, you will need to restart the initial configuration manually.

To restart the initial configuration process manually, the following command might be used: ./TraktForVLC_version_os init_trakt_auth

Configuration file

The configuration file for TraktForVLC is a JSON file named trakt_config.json.

Location

The trakt_config.json file is located in your VLC configuration directory. Depending on your OS, the VLC configuration directory will be located at the following places:

  • Linux: ~/.config/vlc
  • MacOS: ~/Library/Preferences/org.videolan.vlc
  • Windows: %APPDATA%/vlc (where %APPDATA% is the value of the APPDATA environment variable)

Sections

  • config_version: The version of TraktForVLC that generated the configuration file (present for retrocompatibility purposes)
  • cache: Configuration relative to the media cache used by TraktForVLC
    • delay: The delays for operations performed on the media cache
      • save: Delay (in seconds) between save operations on the cache (default: 30)
      • cleanup: Delay (in seconds) between cleanup operations on the cache (default: 60)
      • expire: Time (in seconds) after which an unused entry in the cache expires (default: 2592000 - 30 days)
  • media: Configuration relative to media resolution and scrobbling
    • info: Configuration relative to media resolution
      • max_try: Maximum number of times we will try to resolve the current watched item through IMDB (default: 10)
      • try_delay_factor: Delay factor (in seconds) between try attempts; if try_delay_factor is f and attempt is n, next try will be after n*f seconds (default: 30)
    • start: Configuration relative to media watching status
      • time: Time after which a media will be marked as being watched on trakt.tv (default: 30)
      • percent: Percentage of the media watched after which the media will be marked as being watched on trakt.tv (default: .25 - 0.25%)
      • movie: Whether or not to mark movies as being watched (default: true)
      • episode: Whether or not to mark episodes as being watched (default: true)
    • stop: Configuration relative to media scrobbling
      • watched_percent: The minimum watched percent for a media to be scrobbled as seen on trakt.tv; i.e. you must have watched at least that percentage of the media, for it to be scrobbled (default: 50)
      • percent: The minimum percentage of the media duration at which you must currently be for the media to be scrobbled as seen (if the media has a duration of 100mn, and you configured the percent as 90, you must at least be at the 90th minute of the media) (default: 90)
      • movie: Whether or not to scrobble movies as watched (default: true)
      • episode: Whether or not to scrobble episodes as watched (default: true)
      • check_unprocessed_delay: Delay (in seconds) between checks for medias that should be scrobbled as watched but have not been for any reason (no internet connection, media not identified yet, etc.) (default: 120)
      • delay: Delay (in seconds) between scrobbles for a given media (any subsequent scrobble in the given delay will be ignored) (default: 1200 - 20 minutes)
  • helper: Configuration relative to the helper tool
    • mode: The mode of the helper. Can be one of standalone or service (default: standalone)
    • service: The service configuration, when the helper is installed as a service
      • host: The host on which the service is listening (default: localhost)
      • port: The port on which the service is listening (default: 1984)
    • update: To configure the automatic updates for TraktForVLC
      • check_delay: Delay (in seconds) in between checks for new updates, disabled if set to 0 (default: 86400 - 24 hours)
      • release_type: The type of releases to look for. Can be one of stable, rc, beta, alpha or latest (default: stable)
      • action: The action to perform automatically when a new release is found. Can be one of install, download or check (default: install)

Issues

Please use the GitHub integrated issue tracker for every problem you can encounter. Please DO NOT use my email for issues or walkthrough.

When submitting an issue, please submit a VLC logfile showing the error. You can start VLC in debug mode (--vv option) to obtain more thorough logs.

Please be careful to remove any personnal information that might still be in the logfile (password, identification token, ...) before putting your file online.

traktforvlc's People

Contributors

xaf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

traktforvlc's Issues

issue over osx 10.10.4

Alfredo-Andaluz-Prados-MacBook-Pro:~ aandaluz$ python TraktForVLC.py
Traceback (most recent call last):
File "TraktForVLC.py", line 41, in
import requests
ImportError: No module named requests
Alfredo-Andaluz-Prados-MacBook-Pro:~ aandaluz$

Starting VLC Using Arguments by Default

How do i start VLC on mac using these command arguments by default? Like if i wanted to run it by default all the time using ~/Applications/VLC.app/Contents/MacOS/VLC --extraintf=rc --rc-host=localhost:4222

Shows not being scrobbled / Shows not being marked as watched in Trakt.tv

I'm running TraktForVLC v1.3.0-rc1 Breaking Bad on OS X Darwin-15.2.0-x86_64-i386-64bit, with Python 2.7.10 with VLC version is 2.2.1.

While I'm watching a show the progress bar in Trakt.tv is updated properly. After the show is finished I've found that the show is not being marked as watched on Trakt.tv. Running the script in debug mode I've found that the show is never actually scrobbled. I've tracked this down to the last 4 lines of this if statement in TraktForVLC.py:

        if (((video['tv'] and self.DO_SCROBBLE_TV)
                or (not video['tv'] and self.DO_SCROBBLE_MOVIE))
                and video["percentage"] >= self.SCROBBLE_PERCENT
                and not self.cache["scrobbled"]
                and self.cache['started_watching'] is not None
                and ((time.time() - self.cache['started_watching'][0])
                     > (float(video['duration']) / 3.0))
                and ((self.vlcTime - self.cache['started_watching'][1])
                     > (float(video['duration']) / 4.0))):

I'm curious what the logic is of doing this math.

So that you can see what the values are set to in my running of the script I've added debug statements to capture what all of the variables are set to. Here is the debug output with the extra output added after a video has past 90%:

2016-01-07 02:57:11,979::VLCRemote::DEBUG::VLC version is 2.2.1
2016-01-07 02:57:11,980::VLCRemote::DEBUG::-> Sending: is_playing
2016-01-07 02:57:11,980::VLCRemote::DEBUG::<- Received: 1
2016-01-07 02:57:11,980::VLCRemote::DEBUG::cleaning cache
2016-01-07 02:57:11,980::VLCRemote::DEBUG::<- Received: >
2016-01-07 02:57:11,980::VLCRemote::DEBUG::-> Sending: get_length
2016-01-07 02:57:11,980::VLCRemote::DEBUG::<- Received: 2668
2016-01-07 02:57:11,980::VLCRemote::DEBUG::cleaning cache
2016-01-07 02:57:11,980::VLCRemote::DEBUG::<- Received: >
2016-01-07 02:57:11,980::VLCRemote::DEBUG::-> Sending: get_title
2016-01-07 02:57:11,980::VLCRemote::DEBUG::<- Received: supergirl.108.hdtv-lol[ettv].mp4
2016-01-07 02:57:11,981::VLCRemote::DEBUG::cleaning cache
2016-01-07 02:57:11,981::VLCRemote::DEBUG::<- Received: >
2016-01-07 02:57:11,981::VLCRemote::DEBUG::-> Sending: get_time
2016-01-07 02:57:11,981::VLCRemote::DEBUG::<- Received: 2454
2016-01-07 02:57:11,981::TraktForVLC::INFO::Supergirl - 1x08 state : 91%
2016-01-07 02:57:11,981::TraktForVLC::DEBUG::main::Video: {'duration': 2668, 'show_imdbid': u'tt4016454', 'episode': u'8', 'title': u'Supergirl', 'tv': True, 'imdbid': u'tt4955278', 'percentage': 91, 'year': u'2015-10-26', 'season': u'1'}
2016-01-07 02:57:11,986::TraktForVLC::DEBUG::main::This video is scrobbled : False
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::video['tv'] : True
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::DO_SCROBBLE_TV : True
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::DO_SCROBBLE_MOVIE : True
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::self.SCROBBLE_PERCENT : 90
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::self.cache['started_watching'] : (1452164188.60399, 1864)
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::time.time() : 1452164231.99
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::self.cache['started_watching'][0] : 1452164188.6
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::float(video['duration']) : 2668.0
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::self.vlcTime : 2454
2016-01-07 02:57:11,987::TraktForVLC::DEBUG::main::self.cache['started_watching'][1] : 1864
2016-01-07 02:57:11,993::TraktForVLC::DEBUG::main::float(video['duration']) : 2668.0

I did start the video and run it for a while (longer than 30 seconds) and then skipped to about 88% and let the video run from there. I'm not sure if this messed up some of the values but the results seem to be the same if I let the video run all the way through.

For now I've modified the debug and if statements in TraktForVLC.py as follows to make the scrobbling work:

        self.log.info(logtitle + " state : " + str(video["percentage"]) + "%")
        self.log.debug("main::Video: %s" % str(video))
        self.log.debug("main::This video is scrobbled : " +
                       str(self.cache["scrobbled"]))
        self.log.debug("main::video['tv'] : " +
                       str(video['tv']))
        self.log.debug("main::DO_SCROBBLE_TV : " +
                       str(self.DO_SCROBBLE_TV))
        self.log.debug("main::DO_SCROBBLE_MOVIE : " +
                       str(self.DO_SCROBBLE_MOVIE))
        self.log.debug("main::self.SCROBBLE_PERCENT : " +
                       str(self.SCROBBLE_PERCENT))
        self.log.debug("main::self.cache['started_watching'] : " +
                       str(self.cache['started_watching']))
        self.log.debug("main::time.time() : " +
                       str(time.time()))
        self.log.debug("main::self.cache['started_watching'][0] : " +
                       str(self.cache['started_watching'][0]))
        self.log.debug("main::float(video['duration']) : " +
                       str(float(video['duration'])))
        self.log.debug("main::self.vlcTime : " +
                       str(self.vlcTime))
        self.log.debug("main::self.cache['started_watching'][1] : " +
                       str(self.cache['started_watching'][1]))
        self.log.debug("main::float(video['duration']) : " +
                       str(float(video['duration'])))

        if (((video['tv'] and self.DO_SCROBBLE_TV)
                or (not video['tv'] and self.DO_SCROBBLE_MOVIE))
                and video["percentage"] >= self.SCROBBLE_PERCENT
                and not self.cache["scrobbled"]
#                and self.cache['started_watching'] is not None
                and self.cache['started_watching'] is not None):
#                and ((time.time() - self.cache['started_watching'][0])
#                     > (float(video['duration']) / 3.0))
#                and ((self.vlcTime - self.cache['started_watching'][1])
#                     > (float(video['duration']) / 4.0))):

I am interested in understanding what this last bit of logic does though.

Episode is being marked as watched multiple times.

This is the log:
Windows 8.1 and Python 2.7

2015-06-25 22:11:37,334::TraktForVLC::INFO::Sense8 - 1x08 state : 83%
2015-06-25 22:11:37,334::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 83, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:11:37,334::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:11:37,334::TraktForVLC::DEBUG::main::Trying to mark Sense8 - 1x08 watching on Trakt...
2015-06-25 22:11:37,334::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-04-14", "progress": 83, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:11:37,334::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 83, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:11:37,334::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:11:56,302::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 201 290
2015-06-25 22:11:56,302::TraktForVLC::INFO::Sense8 - 1x08 is currently watching on Trakt...
2015-06-25 22:12:01,303::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:12:01,303::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:12:01,303::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:12:01,303::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:12:01,303::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:12:01,303::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:12:01,303::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:12:01,309::VLCRemote::DEBUG::<- Received: 2511
2015-06-25 22:12:01,309::TraktForVLC::INFO::Sense8 - 1x08 state : 84%
2015-06-25 22:12:01,309::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 84, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:12:01,309::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:12:01,309::TraktForVLC::DEBUG::main::Trying to mark Sense8 - 1x08 watching on Trakt...
2015-06-25 22:12:01,309::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-04-14", "progress": 84, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:12:01,309::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 84, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:12:01,309::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:13:01,946::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 504 None
2015-06-25 22:13:01,950::TraktForVLC::ERROR::An error occurred while trying to mark as watching Sense8 - 1x08
Traceback (most recent call last):
File "../TraktForVLC.py", line 554, in main
self.get_episode(video))
File "C:\TraktForVLC\TraktClient.py", line 420, in startWatching
return self.__watching('start', imdb_id, progress, episode)
File "C:\TraktForVLC\TraktClient.py", line 377, in __watching
progress=progress)
File "C:\TraktForVLC\TraktClient.py", line 416, in __watchingEpisode
return self.__scrobble(action, data)
File "C:\TraktForVLC\TraktClient.py", line 358, in __scrobble
stream.reason))
TraktError: Unable to start episode: 504 Gateway Time-out
2015-06-25 22:13:06,951::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:13:06,951::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:13:06,951::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:13:06,951::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:13:06,951::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:13:06,951::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:13:06,951::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:13:06,957::VLCRemote::DEBUG::<- Received: 2577
2015-06-25 22:13:06,957::TraktForVLC::INFO::Sense8 - 1x08 state : 86%
2015-06-25 22:13:06,957::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 86, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:13:06,957::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:13:06,957::TraktForVLC::DEBUG::main::Trying to mark Sense8 - 1x08 watching on Trakt...
2015-06-25 22:13:06,957::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-04-14", "progress": 86, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:13:06,957::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 86, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:13:06,957::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:13:44,042::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 201 290
2015-06-25 22:13:44,046::TraktForVLC::INFO::Sense8 - 1x08 is currently watching on Trakt...
2015-06-25 22:13:49,049::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:13:49,049::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:13:49,049::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:13:49,049::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:13:49,049::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:13:49,053::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:13:49,053::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:13:49,053::VLCRemote::DEBUG::<- Received: 2619
2015-06-25 22:13:49,053::TraktForVLC::INFO::Sense8 - 1x08 state : 87%
2015-06-25 22:13:49,053::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 87, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:13:49,053::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:13:49,053::TraktForVLC::DEBUG::main::Trying to mark Sense8 - 1x08 watching on Trakt...
2015-06-25 22:13:49,053::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-04-14", "progress": 87, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:13:49,053::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 87, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:13:49,053::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:14:13,588::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 504 None
2015-06-25 22:14:13,592::TraktForVLC::ERROR::An error occurred while trying to mark as watching Sense8 - 1x08
Traceback (most recent call last):
File "../TraktForVLC.py", line 554, in main
self.get_episode(video))
File "C:\TraktForVLC\TraktClient.py", line 420, in startWatching
return self.__watching('start', imdb_id, progress, episode)
File "C:\TraktForVLC\TraktClient.py", line 377, in __watching
progress=progress)
File "C:\TraktForVLC\TraktClient.py", line 416, in __watchingEpisode
return self.__scrobble(action, data)
File "C:\TraktForVLC\TraktClient.py", line 358, in __scrobble
stream.reason))
TraktError: Unable to start episode: 504 Gateway Time-out
2015-06-25 22:14:18,592::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:14:18,592::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:14:18,592::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:14:18,592::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:14:18,592::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:14:18,592::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:14:18,592::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:14:18,598::VLCRemote::DEBUG::<- Received: 2648
2015-06-25 22:14:18,598::TraktForVLC::INFO::Sense8 - 1x08 state : 88%
2015-06-25 22:14:18,598::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 88, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:14:18,598::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:14:18,598::TraktForVLC::DEBUG::main::Trying to mark Sense8 - 1x08 watching on Trakt...
2015-06-25 22:14:18,598::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-04-14", "progress": 88, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:14:18,598::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 88, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:14:18,598::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:14:44,088::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 504 None
2015-06-25 22:14:44,092::TraktForVLC::ERROR::An error occurred while trying to mark as watching Sense8 - 1x08
Traceback (most recent call last):
File "../TraktForVLC.py", line 554, in main
self.get_episode(video))
File "C:\TraktForVLC\TraktClient.py", line 420, in startWatching
return self.__watching('start', imdb_id, progress, episode)
File "C:\TraktForVLC\TraktClient.py", line 377, in __watching
progress=progress)
File "C:\TraktForVLC\TraktClient.py", line 416, in __watchingEpisode
return self.__scrobble(action, data)
File "C:\TraktForVLC\TraktClient.py", line 358, in __scrobble
stream.reason))
TraktError: Unable to start episode: 504 Gateway Time-out
2015-06-25 22:14:49,092::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:14:49,092::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:14:49,092::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:14:49,092::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:14:49,092::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:14:49,098::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:14:49,098::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:14:49,098::VLCRemote::DEBUG::<- Received: 2679
2015-06-25 22:14:49,098::TraktForVLC::INFO::Sense8 - 1x08 state : 89%
2015-06-25 22:14:49,098::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 89, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:14:49,098::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:14:49,098::TraktForVLC::DEBUG::main::Trying to mark Sense8 - 1x08 watching on Trakt...
2015-06-25 22:14:49,098::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-04-14", "progress": 89, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:14:49,098::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 89, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:14:49,098::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:15:04,641::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 504 None
2015-06-25 22:15:04,644::TraktForVLC::ERROR::An error occurred while trying to mark as watching Sense8 - 1x08
Traceback (most recent call last):
File "../TraktForVLC.py", line 554, in main
self.get_episode(video))
File "C:\TraktForVLC\TraktClient.py", line 420, in startWatching
return self.__watching('start', imdb_id, progress, episode)
File "C:\TraktForVLC\TraktClient.py", line 377, in __watching
progress=progress)
File "C:\TraktForVLC\TraktClient.py", line 416, in __watchingEpisode
return self.__scrobble(action, data)
File "C:\TraktForVLC\TraktClient.py", line 358, in __scrobble
stream.reason))
TraktError: Unable to start episode: 504 Gateway Time-out
2015-06-25 22:15:09,645::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:15:09,647::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:15:09,647::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:15:09,647::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:15:09,647::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:15:09,647::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:15:09,647::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:15:09,648::VLCRemote::DEBUG::<- Received: 2699
2015-06-25 22:15:09,648::TraktForVLC::INFO::Sense8 - 1x08 state : 90%
2015-06-25 22:15:09,648::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 90, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:15:09,648::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:15:09,648::TraktForVLC::INFO::Scrobbling Sense8 - 1x08 to Trakt...
2015-06-25 22:15:09,648::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/stop data {"app_date": "2015-04-14", "progress": 90, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:15:09,648::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 90, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:15:09,648::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:15:26,325::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/stop HTTP/1.1" 504 None
2015-06-25 22:15:26,329::TraktForVLC::ERROR::An error occurred while trying to scrobble
Traceback (most recent call last):
File "../TraktForVLC.py", line 532, in main
self.get_episode(video))
File "C:\TraktForVLC\TraktClient.py", line 424, in stopWatching
return self.__watching('stop', imdb_id, progress, episode)
File "C:\TraktForVLC\TraktClient.py", line 377, in __watching
progress=progress)
File "C:\TraktForVLC\TraktClient.py", line 416, in __watchingEpisode
return self.__scrobble(action, data)
File "C:\TraktForVLC\TraktClient.py", line 358, in __scrobble
stream.reason))
TraktError: Unable to stop episode: 504 Gateway Time-out
2015-06-25 22:15:31,334::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:15:31,334::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:15:31,334::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:15:31,334::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:15:31,334::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:15:31,334::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:15:31,334::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:15:31,338::VLCRemote::DEBUG::<- Received: 2721
2015-06-25 22:15:31,338::TraktForVLC::INFO::Sense8 - 1x08 state : 91%
2015-06-25 22:15:31,338::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 91, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:15:31,338::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:15:31,338::TraktForVLC::INFO::Scrobbling Sense8 - 1x08 to Trakt...
2015-06-25 22:15:31,338::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/stop data {"app_date": "2015-04-14", "progress": 91, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:15:31,338::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 91, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:15:31,338::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:16:28,239::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/stop HTTP/1.1" 504 None
2015-06-25 22:16:28,243::TraktForVLC::ERROR::An error occurred while trying to scrobble
Traceback (most recent call last):
File "../TraktForVLC.py", line 532, in main
self.get_episode(video))
File "C:\TraktForVLC\TraktClient.py", line 424, in stopWatching
return self.__watching('stop', imdb_id, progress, episode)
File "C:\TraktForVLC\TraktClient.py", line 377, in __watching
progress=progress)
File "C:\TraktForVLC\TraktClient.py", line 416, in __watchingEpisode
return self.__scrobble(action, data)
File "C:\TraktForVLC\TraktClient.py", line 358, in __scrobble
stream.reason))
TraktError: Unable to stop episode: 504 Gateway Time-out
2015-06-25 22:16:33,246::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:16:33,247::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:16:33,247::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:16:33,247::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:16:33,249::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:16:33,249::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:16:33,249::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:16:33,250::VLCRemote::DEBUG::<- Received: 2783
2015-06-25 22:16:33,250::TraktForVLC::INFO::Sense8 - 1x08 state : 93%
2015-06-25 22:16:33,250::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 93, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:16:33,250::TraktForVLC::DEBUG::main::This video is scrobbled : False
2015-06-25 22:16:33,250::TraktForVLC::INFO::Scrobbling Sense8 - 1x08 to Trakt...
2015-06-25 22:16:33,250::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/stop data {"app_date": "2015-04-14", "progress": 93, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:16:33,250::TraktClient::DEBUG::{"app_date": "2015-04-14", "progress": 93, "app_version": "1.3.0-rc1", "episode": {"season": "1", "number": "8"}, "show": {"ids": {"imdb": "tt2431438"}}}
2015-06-25 22:16:33,252::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2015-06-25 22:16:34,582::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/stop HTTP/1.1" 201 292
2015-06-25 22:16:34,585::TraktForVLC::INFO::Sense8 - 1x08 scrobbled to Trakt !
2015-06-25 22:16:39,586::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:16:39,586::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:16:39,586::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:16:39,586::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:16:39,586::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:16:39,586::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:16:39,586::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:16:39,586::VLCRemote::DEBUG::<- Received: 2789
2015-06-25 22:16:39,586::TraktForVLC::INFO::Sense8 - 1x08 state : 93%
2015-06-25 22:16:39,586::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 93, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:16:39,586::TraktForVLC::DEBUG::main::This video is scrobbled : True
2015-06-25 22:16:44,589::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:16:44,589::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:16:44,591::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:16:44,591::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:16:44,591::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:16:44,592::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:16:44,592::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:16:44,592::VLCRemote::DEBUG::<- Received: 2794
2015-06-25 22:16:44,592::TraktForVLC::INFO::Sense8 - 1x08 state : 93%
2015-06-25 22:16:44,592::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 93, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:16:44,592::TraktForVLC::DEBUG::main::This video is scrobbled : True
2015-06-25 22:16:49,595::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:16:49,595::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:16:49,595::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:16:49,595::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:16:49,595::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:16:49,595::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:16:49,595::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:16:49,596::VLCRemote::DEBUG::<- Received: 2799
2015-06-25 22:16:49,596::TraktForVLC::INFO::Sense8 - 1x08 state : 94%
2015-06-25 22:16:49,596::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 94, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:16:49,596::TraktForVLC::DEBUG::main::This video is scrobbled : True
2015-06-25 22:16:54,596::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:16:54,596::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:16:54,596::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:16:54,596::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:16:54,596::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:16:54,596::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:16:54,596::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:16:54,596::VLCRemote::DEBUG::<- Received: 2804
2015-06-25 22:16:54,596::TraktForVLC::INFO::Sense8 - 1x08 state : 94%
2015-06-25 22:16:54,596::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 94, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:16:54,596::TraktForVLC::DEBUG::main::This video is scrobbled : True
2015-06-25 22:16:59,602::VLCRemote::DEBUG::-> Sending: is_playing
2015-06-25 22:16:59,602::VLCRemote::DEBUG::<- Received: 1
2015-06-25 22:16:59,602::VLCRemote::DEBUG::-> Sending: get_length
2015-06-25 22:16:59,602::VLCRemote::DEBUG::<- Received: 2977
2015-06-25 22:16:59,602::VLCRemote::DEBUG::-> Sending: get_title
2015-06-25 22:16:59,602::VLCRemote::DEBUG::<- Received: Sense8 S01E08.mp4
2015-06-25 22:16:59,602::VLCRemote::DEBUG::-> Sending: get_time
2015-06-25 22:16:59,602::VLCRemote::DEBUG::<- Received: 2809
2015-06-25 22:16:59,602::TraktForVLC::INFO::Sense8 - 1x08 state : 94%
2015-06-25 22:16:59,608::TraktForVLC::DEBUG::main::Video: {'duration': 2977, 'show_imdbid': u'tt2431438', 'episode': u'8', 'title': u'Sense8', 'tv': True, 'imdbid': u'tt3963678', 'percentage': 94, 'year': u'2015-06-05', 'season': u'1'}
2015-06-25 22:16:59,608::TraktForVLC::DEBUG::main::This video is scrobbled : True
2015-06-25 22:17:04,608::VLCRemote::DEBUG::-> Sending: is_playing

TV Shows and Movies not being marked as watched.

It shows progress on the Trakt.tv website as i'm watching but does not auto mark as being watched.

Also getting errors in the logs:

2015-03-10 13:56:43,357::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "C:\TraktForVlc\TraktForVLC.py", line 208, in run
    self.main()
  File "C:\TraktForVlc\TraktForVLC.py", line 236, in main
    vlcStatus = vlc.is_playing()
  File "C:\TraktForVlc\vlcrc\__init__.py", line 92, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "C:\TraktForVlc\vlcrc\__init__.py", line 55, in _command
    raise VLCBadReturn(cmd_ret)
VLCBadReturn 

Looped over and over...

[Errno 10061]

Hey,

So it's me again ...
I'm still having errors in my debug log and it's still not scrobbling on the website ...

2015-05-30 13:07:58,311::VLCRemote::DEBUG::-> Sending: is_playing
2015-05-30 13:08:00,125::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "C:\TraktForVLC-master\TraktForVLC.py", line 397, in run
    self.main()
  File "C:\TraktForVLC-master\TraktForVLC.py", line 434, in main
    vlcStatus = vlc.is_playing()
  File "C:\TraktForVLC-master\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "C:\TraktForVLC-master\vlcrc\__init__.py", line 106, in _command
    index, match, cmd_ret = self.cnx.expect([return_re], self.timeout)
  File "C:\Python27\lib\telnetlib.py", line 655, in expect
    return self._expect_with_select(list, timeout)
  File "C:\Python27\lib\telnetlib.py", line 755, in _expect_with_select
    self.fill_rawq()
  File "C:\Python27\lib\telnetlib.py", line 576, in fill_rawq
    buf = self.sock.recv(50)
error: [Errno 10054] Une connexion existante a dû être fermée par l’hôte distant
2015-05-30 13:08:07,128::TraktForVLC::INFO::Could not find VLC running at localhost:4222
2015-05-30 13:08:07,128::TraktForVLC::DEBUG::Make sure your VLC player is running with --extraintf=rc --rc-host=localhost:4222 --rc-quiet
Traceback (most recent call last):
  File "C:\TraktForVLC-master\TraktForVLC.py", line 407, in main
    vlc = VLCRemote(self.vlc_ip, self.vlc_port)
  File "C:\TraktForVLC-master\vlcrc\__init__.py", line 38, in __init__
    self.cnx = telnetlib.Telnet(hostname, port)
  File "C:\Python27\lib\telnetlib.py", line 211, in __init__
    self.open(host, port, timeout)
  File "C:\Python27\lib\telnetlib.py", line 227, in open
    self.sock = socket.create_connection((host, port), timeout)
  File "C:\Python27\lib\socket.py", line 575, in create_connection
    raise err
error: [Errno 10061] Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée
2015-05-30 13:08:07,130::TraktForVLC::DEBUG::reset cache view status (None)

Any ideas ?

ImportError: No module named 'tvdb_ui'

Hi @XaF,

I hope your weekend will either be fun or chilled, whichever you prefer more :)

Thanks for this app/script, this will be an awesome addition for me once I get it working.
I've tried to install your script on VLC for the 1st time tonight and seem to be having similar problems as other users, however I'm not sure if I've missed something during the setup.

This is what I'm running:
VLC 2.2.1 "Weatherwax"
TraktForVLC (Latest commit 9ad799c on Sep 20)
Python 3.4.3
Microsoft Windows [Version 6.3.9600] aka "Windows 8.1 Pro"

I've updated VLC as advised, but didn't disable the CLI output.

Config (config.ini)
http://pastebin.com/XFudrt0F

More config (config.bat):
http://pastebin.com/t6dCKVbd

The problem:
Then I run VLC 1st and then load in a file, it opens the CLI with it which is fine for now.
However when I load in a file then I get the following output, I believe this is why I don't see updates on Trakt.

CLI Output:
http://pastebin.com/qTGs8AjG

I was then looking around on other tickets and found that if I run the following I get the same as "ciakki" in #23.
http://pastebin.com/mKsWEZGJ

I've also run the import command you suggested to "AquaGen" in #12
http://pastebin.com/WPaUSqFk

I have however noticed that I do not have any log folders/files, not sure why.

Your thoughts?

Error during playback, no tracking happens

Getting ONLY this error repeated in the log during playback and no tracking occurs:

Received: 
2015-05-26 10:20:40,766::VLCRemote::DEBUG::-> Sending: is_playing
2015-05-26 10:20:43,766::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "C:\VLC\TraktForVLC-master\TraktForVLC.py", line 397, in run
    self.main()
  File "C:\VLC\TraktForVLC-master\TraktForVLC.py", line 434, in main
    vlcStatus = vlc.is_playing()
  File "C:\VLC\TraktForVLC-master\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "C:\VLC\TraktForVLC-master\vlcrc\__init__.py", line 109, in _command
    'Pattern: %s\nReceived: %s' % (return_re.pattern, cmd_ret))
VLCBadReturn: Pattern: ^(?!status change:)>?\s*(?P<playing>\d+)
?

I've tried using start_debug_process.bat in hopes for some more debug information, but with no avail.

Any help on tracking down this issue and making the script work would be appreciated.

Doesn't work anymore

For the last week or so this tool doesn't seem to work anymore. Does this only happen to me or is it a known issue? My log output:

2015-11-20 12:56:05,346::TraktForVLC::INFO::## TraktForVLC v1.3.0-rc1 Breaking Bad
2015-11-20 12:56:05,346::TraktForVLC::INFO::## Copyright (C) 2014-2015  Raphaël Beamonte <[email protected]>
2015-11-20 12:56:05,346::TraktForVLC::INFO::##
2015-11-20 12:56:05,346::TraktForVLC::INFO::## TraktForVLC is distributed in the hope that it will be useful, but
2015-11-20 12:56:05,346::TraktForVLC::INFO::## with ABSOLUTELY NO WARRANTY. This is free software; you are welcome
2015-11-20 12:56:05,348::TraktForVLC::INFO::## to redistribute and/or modify it under the terms of the GPL2.
2015-11-20 12:56:05,348::TraktForVLC::INFO::
2015-11-20 12:56:05,368::TraktForVLC::DEBUG::Running on Windows-8-6.2.9200, with Python 2.7.10
2015-11-20 12:56:05,380::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api.github.com
2015-11-20 12:56:06,500::requests.packages.urllib3.connectionpool::DEBUG::"GET /repos/XaF/TraktForVLC/releases HTTP/1.1" 200 None
2015-11-20 12:56:06,503::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2015-11-20 12:56:06,505::TraktForVLC::INFO::Logger level is set to DEBUG
2015-11-20 12:56:06,505::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2015-11-20 12:56:06,505::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2015-11-20 12:56:06,505::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2015-11-20 12:56:06,505::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2015-11-20 12:56:06,505::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2015-11-20 12:56:06,506::TraktForVLC::INFO::-- Timer set to 5 secs
2015-11-20 12:56:06,506::TraktForVLC::INFO::-- Video will be marked as "is watching" from 5 secs
2015-11-20 12:56:06,506::TraktForVLC::INFO::Listening VLC to localhost:4222
2015-11-20 12:56:06,506::TraktClient::DEBUG::TraktClient logger initialized
2015-11-20 12:56:06,506::TraktClient::DEBUG::TraktClient will use PIN Auth
2015-11-20 12:56:06,506::TraktForVLC::DEBUG::reset cache (None, None)
2015-11-20 12:56:06,509::VLCRemote::DEBUG::-> Sending: is_playing
2015-11-20 12:56:09,510::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "D:\Dropbox\Failai\TraktForVLC\TraktForVLC.py", line 397, in run
    self.main()
  File "D:\Dropbox\Failai\TraktForVLC\TraktForVLC.py", line 434, in main
    vlcStatus = vlc.is_playing()
  File "D:\Dropbox\Failai\TraktForVLC\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "D:\Dropbox\Failai\TraktForVLC\vlcrc\__init__.py", line 109, in _command
    'Pattern: %s\nReceived: %s' % (return_re.pattern, cmd_ret))
VLCBadReturn: Pattern: ^(?!status change:)>?\s*(?P<playing>\d+)
?

Received: 
2015-11-20 12:56:14,513::VLCRemote::DEBUG::-> Sending: is_playing
2015-11-20 12:56:17,515::TraktForVLC::ERROR::An unknown error occurred
Traceback (most recent call last):
  File "D:\Dropbox\Failai\TraktForVLC\TraktForVLC.py", line 397, in run
    self.main()
  File "D:\Dropbox\Failai\TraktForVLC\TraktForVLC.py", line 434, in main
    vlcStatus = vlc.is_playing()
  File "D:\Dropbox\Failai\TraktForVLC\vlcrc\__init__.py", line 152, in is_playing
    playing = self._command('is_playing', fn_re, raw=True)
  File "D:\Dropbox\Failai\TraktForVLC\vlcrc\__init__.py", line 109, in _command
    'Pattern: %s\nReceived: %s' % (return_re.pattern, cmd_ret))
VLCBadReturn: Pattern: ^(?!status change:)>?\s*(?P<playing>\d+)
?

Windows - Process doesn't start

Hi, I have been trying to configure this for a few days now.

After running start_process.bat , nothing happens. There is no .pid file , no error message, no running processes, nothing.

Could you please help me debug this?

I'm on a Win8.1, with Python 3.4.

Edit: Found the problem with registry editing dealt with in the Closed Issues section. My solution below is probably wrong and should be ignored.

Also, I had a problem with the set_registry_keys.bat. At first I got errors regarding the syntax to edit registry. I found a minor bug there and finally got the set_registry_keys.bat to work. I've mentioned the change below in case someone else comes across the same problem.

REG ADD "HKCR\VLC.%%G\shell\AddToPlaylistVLC\command" /ve /t REG_SZ /d "\"%vlc_path%\" %vlc_opts% --started-from-file --playlist-enqueue \"%%1\"" /f >NUL

needs to be modified to

REG ADD "HKCR\VLC.%%G\shell\AddToPlaylistVLC\command" /ve /t REG_SZ /d "%vlc_path% %vlc_opts% --started-from-file --playlist-enqueue \"%%1\"" /f >NUL

(Note the change at %vlc_path%. This needs to be done for all 3 lines with REG ADD command )

Also, the .bat file needs to be run as system administrator or else it will fail with Error: Access Denied.

Access error

Hi guys!

Thanks for your app. Can you help me with this issue?

image

No tv show nor movie found for the current playing video

It has been working up until now. Seems to be scrobbling TV shows, but not movies.
Can't work out what is wrong.

Here is my debug text:

Last login: Mon Feb 22 22:18:56 on ttys000
Sams-MBP:~ stoms$ ~/TraktForVLC-1.3.0/TraktForVLC.py --debug --small-timers
2016-02-22 22:21:36,151::TraktForVLC::INFO::## TraktForVLC v1.3.0-rc1 Breaking Bad
2016-02-22 22:21:36,151::TraktForVLC::INFO::## Copyright (C) 2014-2015  Raphaël Beamonte <[email protected]>
2016-02-22 22:21:36,151::TraktForVLC::INFO::##
2016-02-22 22:21:36,151::TraktForVLC::INFO::## TraktForVLC is distributed in the hope that it will be useful, but
2016-02-22 22:21:36,151::TraktForVLC::INFO::## with ABSOLUTELY NO WARRANTY. This is free software; you are welcome
2016-02-22 22:21:36,151::TraktForVLC::INFO::## to redistribute and/or modify it under the terms of the GPL2.
2016-02-22 22:21:36,151::TraktForVLC::INFO::
2016-02-22 22:21:36,168::TraktForVLC::DEBUG::Running on Darwin-15.3.0-x86_64-i386-64bit, with Python 2.7.10
2016-02-22 22:21:36,217::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api.github.com
2016-02-22 22:21:37,735::requests.packages.urllib3.connectionpool::DEBUG::"GET /repos/XaF/TraktForVLC/releases HTTP/1.1" 200 None
2016-02-22 22:21:37,738::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2016-02-22 22:21:37,739::TraktForVLC::INFO::Logger level is set to DEBUG
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Timer set to 5 secs
2016-02-22 22:21:37,739::TraktForVLC::INFO::-- Video will be marked as "is watching" from 5 secs
2016-02-22 22:21:37,739::TraktForVLC::INFO::Listening VLC to localhost:4222
2016-02-22 22:21:37,740::TraktClient::DEBUG::TraktClient logger initialised
2016-02-22 22:21:37,740::TraktClient::DEBUG::TraktClient will use PIN Auth
2016-02-22 22:21:37,740::TraktForVLC::DEBUG::reset cache (None, None)
2016-02-22 22:21:37,744::VLCRemote::DEBUG::VLC version is 2.2.0
2016-02-22 22:21:37,744::VLCRemote::DEBUG::-> Sending: is_playing
2016-02-22 22:21:37,744::VLCRemote::DEBUG::<- Received: 1
2016-02-22 22:21:37,745::VLCRemote::DEBUG::cleaning cache
2016-02-22 22:21:37,745::VLCRemote::DEBUG::<- Received: >
2016-02-22 22:21:37,745::VLCRemote::DEBUG::-> Sending: get_length
2016-02-22 22:21:37,745::VLCRemote::DEBUG::<- Received: 6480
2016-02-22 22:21:37,746::VLCRemote::DEBUG::cleaning cache
2016-02-22 22:21:37,746::VLCRemote::DEBUG::<- Received: >
2016-02-22 22:21:37,746::VLCRemote::DEBUG::-> Sending: get_title
2016-02-22 22:21:37,746::VLCRemote::DEBUG::<- Received: Ex Machina 2015
2016-02-22 22:21:37,747::VLCRemote::DEBUG::cleaning cache
2016-02-22 22:21:37,747::VLCRemote::DEBUG::<- Received: >
2016-02-22 22:21:37,747::VLCRemote::DEBUG::-> Sending: get_time
2016-02-22 22:21:37,747::VLCRemote::DEBUG::<- Received: 17
2016-02-22 22:21:37,747::TraktForVLC::DEBUG::main::New file: Ex Machina 2015 (6480)
2016-02-22 22:21:37,747::TraktForVLC::DEBUG::reset cache (Ex Machina 2015, 6480)
2016-02-22 22:21:37,747::TraktForVLC::INFO::Not able to parse a tvshow from the file title
2016-02-22 22:21:37,748::TraktForVLC::DEBUG::get_Movie::Now playing: {'year': u'2015', 'title': u'Ex Machina'}
2016-02-22 22:21:37,750::requests.packages.urllib3.connectionpool::INFO::Starting new HTTP connection (1): www.imdbapi.com
2016-02-22 22:21:38,089::requests.packages.urllib3.connectionpool::DEBUG::"GET /?i=&y=2015&t=Ex+Machina&tomatoes=true HTTP/1.1" 200 701
2016-02-22 22:21:38,091::TraktForVLC::DEBUG::valid_Movie::no valid title found
Traceback (most recent call last):
  File "/Users/stoms/TraktForVLC-1.3.0/TraktForVLC.py", line 683, in valid_Movie
    movie = movie_info.get_movie_info(vlcTitle, vlcYear)
  File "/Users/stoms/TraktForVLC-1.3.0/movie_info.py", line 245, in get_movie_info
    output = response.json()
  File "/Users/stoms/TraktForVLC-1.3.0/requests/models.py", line 802, in son
    return json.loads(self.text, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
2016-02-22 22:21:38,093::TraktForVLC::INFO::No tv show nor movie found for the current playing video

Continually receiving b'' / b'0'

Didn't post the entire log as it's just this!
Using Python 3.4 on Windows 8.1

2016-03-06 14:42:21,549::TraktForVLC::INFO::## TraktForVLC v1.3.0-rc1 Breaking Bad
2016-03-06 14:42:21,549::TraktForVLC::INFO::## Copyright (C) 2014-2015 Raphael Beamonte [email protected]
2016-03-06 14:42:21,549::TraktForVLC::INFO::##
2016-03-06 14:42:21,549::TraktForVLC::INFO::## TraktForVLC is distributed in the hope that it will be useful, but
2016-03-06 14:42:21,549::TraktForVLC::INFO::## with ABSOLUTELY NO WARRANTY. This is free software; you are welcome
2016-03-06 14:42:21,549::TraktForVLC::INFO::## to redistribute and/or modify it under the terms of the GPL2.
2016-03-06 14:42:21,549::TraktForVLC::INFO::
2016-03-06 14:42:21,552::TraktForVLC::DEBUG::Running on Windows-8-6.2.9200, with Python 3.4.2
2016-03-06 14:42:21,594::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api.github.com
2016-03-06 14:42:23,124::requests.packages.urllib3.connectionpool::DEBUG::"GET /repos/XaF/TraktForVLC/releases HTTP/1.1" 200 None
2016-03-06 14:42:23,128::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2016-03-06 14:42:23,129::TraktForVLC::INFO::Logger level is set to DEBUG
2016-03-06 14:42:23,129::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2016-03-06 14:42:23,129::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2016-03-06 14:42:23,129::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2016-03-06 14:42:23,129::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2016-03-06 14:42:23,129::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2016-03-06 14:42:23,129::TraktForVLC::INFO::-- Timer set to 5 secs
2016-03-06 14:42:23,130::TraktForVLC::INFO::-- Video will be marked as "is watching" from 5 secs
2016-03-06 14:42:23,130::TraktForVLC::INFO::Listening VLC to 127.0.0.1:4222
2016-03-06 14:42:23,130::TraktClient::DEBUG::TraktClient logger initialized
2016-03-06 14:42:23,130::TraktClient::DEBUG::TraktClient will use PIN Auth
2016-03-06 14:42:23,130::TraktForVLC::DEBUG::reset cache (None, None)
2016-03-06 14:42:23,299::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:23,299::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:23,299::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:23,300::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:28,302::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:28,302::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:28,302::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:28,303::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:33,304::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:33,304::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:33,304::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:33,305::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:38,306::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:38,306::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:38,306::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:38,306::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:43,308::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:43,308::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:43,308::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:43,308::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:48,311::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:48,311::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:48,312::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:48,312::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:53,314::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:53,314::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:53,314::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:53,315::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:42:58,316::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:42:58,316::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:42:58,317::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:42:58,317::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:03,319::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:03,319::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:03,319::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:03,320::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:08,322::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:08,322::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:08,322::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:08,322::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:13,324::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:13,324::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:13,324::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:13,324::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:18,327::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:18,327::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:18,327::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:18,328::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:23,329::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:23,329::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:23,329::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:23,330::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:28,332::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:28,332::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:28,332::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:28,332::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:33,335::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:33,335::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:33,335::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:33,336::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:38,339::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:38,339::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:38,339::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:38,339::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:43,340::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:43,340::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:43,341::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:43,341::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:48,343::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:48,344::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:48,344::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:48,344::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:53,346::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:53,346::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:53,346::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:53,346::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:43:58,347::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:43:58,347::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:43:58,347::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:43:58,347::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:03,350::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:03,350::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:03,350::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:03,351::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:08,352::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:08,352::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:08,352::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:08,353::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:13,354::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:13,354::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:13,354::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:13,355::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:18,356::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:18,356::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:18,356::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:18,357::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:23,359::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:23,359::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:23,359::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:23,360::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:28,361::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:28,361::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:28,361::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:28,362::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:33,364::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:33,364::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:33,364::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:33,364::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:38,367::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:38,367::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:38,367::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:38,367::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:43,370::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:43,370::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:43,370::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:43,370::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:48,373::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:48,373::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:48,373::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:48,373::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:53,374::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:53,375::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:53,375::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:53,375::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:44:58,380::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:44:58,380::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:44:58,380::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:44:58,380::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:03,383::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:03,383::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:03,383::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:03,384::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:08,386::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:08,386::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:08,386::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:08,387::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:13,388::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:13,388::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:13,388::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:13,388::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:18,391::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:18,391::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:18,392::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:18,392::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:23,394::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:23,394::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:23,394::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:23,395::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:28,397::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:28,397::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:28,397::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:28,398::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:33,400::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:33,401::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:33,401::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:33,403::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:38,408::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:38,408::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:38,408::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:38,409::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:43,410::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:43,410::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:43,410::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:43,410::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:48,412::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:48,412::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:48,412::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:48,412::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:53,415::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:53,415::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:53,415::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:53,415::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:45:58,416::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:45:58,416::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:45:58,416::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:45:58,416::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:03,418::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:03,418::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:03,419::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:03,419::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:08,421::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:08,421::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:08,421::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:08,421::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:13,423::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:13,423::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:13,423::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:13,424::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:18,425::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:18,426::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:18,426::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:18,426::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:23,428::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:23,428::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:23,428::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:23,428::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:28,430::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:28,430::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:28,430::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:28,430::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:33,441::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:33,441::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:33,441::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:33,442::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:38,445::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:38,445::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:38,445::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:38,446::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:43,449::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:43,450::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:43,450::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:43,450::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:48,451::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:48,451::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:48,451::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:48,452::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:53,454::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:53,454::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:53,455::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:53,455::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:46:58,458::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:46:58,458::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:46:58,458::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:46:58,458::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:03,460::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:03,460::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:03,460::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:03,460::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:08,462::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:08,462::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:08,463::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:08,464::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:13,466::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:13,466::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:13,466::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:13,466::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:18,468::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:18,468::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:18,468::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:18,469::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:23,471::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:23,471::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:23,471::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:23,472::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:28,474::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:28,475::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:28,475::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:28,475::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:33,484::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:33,484::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:33,484::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:33,486::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:38,488::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:38,488::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:38,488::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:38,489::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:43,490::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:43,490::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:43,491::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:43,491::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:48,492::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:48,492::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:48,492::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:48,492::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:53,495::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:53,495::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:53,495::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:53,495::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:47:58,498::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:47:58,498::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:47:58,498::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:47:58,498::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:03,500::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:03,501::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:03,501::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:03,501::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:08,503::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:08,503::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:08,503::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:08,503::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:13,505::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:13,505::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:13,505::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:13,505::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:18,507::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:18,507::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:18,507::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:18,507::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:23,509::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:23,510::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:23,510::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:23,512::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:28,514::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:28,514::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:28,514::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:28,515::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:33,517::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:33,517::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:33,517::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:33,517::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:38,519::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:38,519::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:38,519::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:38,519::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:43,521::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:43,521::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:43,521::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:43,522::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:48,524::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:48,525::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:48,525::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:48,525::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:53,528::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:53,528::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:53,528::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:53,528::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:48:58,530::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:48:58,531::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:48:58,531::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:48:58,531::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:03,533::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:03,534::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:03,534::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:03,535::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:08,537::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:08,538::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:08,538::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:08,538::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:13,541::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:13,541::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:13,541::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:13,541::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:18,543::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:18,543::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:18,543::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:18,543::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:23,545::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:23,546::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:23,547::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:23,548::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:28,550::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:28,550::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:28,550::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:28,551::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:33,557::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:33,558::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:33,559::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:33,560::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:38,562::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:38,562::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:38,562::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:38,562::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:43,564::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:43,564::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:43,564::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:43,565::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:48,569::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:48,569::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:48,570::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:48,570::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:53,572::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:53,572::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:53,572::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:53,572::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:49:58,574::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:49:58,574::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:49:58,574::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:49:58,575::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:03,577::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:03,577::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:03,577::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:03,578::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:08,579::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:08,579::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:08,579::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:08,579::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:13,581::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:13,582::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:13,582::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:13,582::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:18,584::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:18,584::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:18,584::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:18,585::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:23,586::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:23,586::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:23,586::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:23,587::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:28,589::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:28,589::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:28,590::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:28,590::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:33,592::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:33,592::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:33,592::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:33,592::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:38,593::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:38,593::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:38,593::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:38,593::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:43,596::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:43,596::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:43,596::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:43,596::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:48,599::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:48,599::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:48,599::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:48,599::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:53,600::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:53,601::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:53,601::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:53,601::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:50:58,602::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:50:58,602::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:50:58,602::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:50:58,603::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:03,605::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:03,605::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:03,605::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:03,606::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:08,609::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:08,609::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:08,609::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:08,610::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:13,611::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:13,611::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:13,611::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:13,612::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:18,614::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:18,614::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:18,615::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:18,615::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:23,616::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:23,616::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:23,617::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:23,617::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:28,618::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:28,618::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:28,618::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:28,619::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:33,620::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:33,620::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:33,620::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:33,621::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:38,623::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:38,623::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:38,623::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:38,624::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:43,625::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:43,626::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:43,626::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:43,626::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:48,629::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:48,629::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:48,629::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:48,630::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:53,632::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:53,632::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:53,632::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:53,633::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:51:58,635::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:51:58,635::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:51:58,635::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:51:58,636::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:03,637::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:03,637::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:03,637::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:03,638::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:08,640::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:08,640::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:08,640::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:08,641::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:13,643::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:13,643::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:13,643::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:13,643::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:18,645::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:18,645::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:18,645::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:18,646::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:23,648::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:23,648::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:23,648::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:23,649::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:28,650::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:28,650::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:28,650::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:28,651::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:33,652::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:33,652::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:33,652::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:33,653::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:38,655::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:38,655::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:38,655::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:38,656::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:43,658::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:43,658::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:43,658::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:43,659::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:48,660::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:48,660::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:48,660::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:48,661::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:53,662::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:53,662::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:53,662::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:53,663::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:52:58,665::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:52:58,665::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:52:58,665::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:52:58,666::VLCRemote::DEBUG::<- Received: b'0'
2016-03-06 14:53:03,667::VLCRemote::DEBUG::cleaning cache
2016-03-06 14:53:03,667::VLCRemote::DEBUG::<- Received: b''
2016-03-06 14:53:03,667::VLCRemote::DEBUG::-> Sending: is_playing
2016-03-06 14:53:03,667::VLCRemote::DEBUG::<- Received: b'0'

Daemon Mode not correct for MacOS in docs or example org.TraktForVLC.plist file

The example given to run in Daemon mode on MacOS is not correct for the .org.TraktForVLC.plist. As it stands the script won't run in daemon mode and won't create log files. To correct this problem change:

        <string>[EDIT: /usr/bin/python]</string>
        <string>[EDIT: /path/to/TraktForVLC/TraktForVLC.py]</string>

to

        <string>[EDIT: /usr/bin/python]</string>
        <string>[EDIT: /path/to/TraktForVLC/TraktForVLC.py]</string>
        <string>--daemon</string>

This will result in 0 length log files being created unless a Warning or above level error message is posted. I like a bit more detail so I prefer this:

        <string>[EDIT: /usr/bin/python]</string>
        <string>[EDIT: /path/to/TraktForVLC/TraktForVLC.py]</string>
        <string>--daemon</string>
        <string>--loglevel</string>
        <string>INFO</string>

For debug mode/logging use:

        <string>[EDIT: /usr/bin/python]</string>
        <string>[EDIT: /path/to/TraktForVLC/TraktForVLC.py]</string>
        <string>--daemon</string>
        <string>--debug</string>

Doesn't scrobble movies

I have installed TraktForVLC and it works fine for TV shows but when I watch a movie it doesn't work. In the config.ini file I have set it to yes for everything. The file format is MovieName (year) for example Dumb & Dumber (1994)

Movie name matching pattern failing to output correct movie name

I decided to watch "The Man from U.N.C.L.E." and while checking with Trakt that the movie is scrobbling correctly, I noticed that nothing was happening.
So I decided to look into it and discovered that the filenameparser/cleanRegexedName was stripping the last dot in the name causing the lookup for the movie name in 'omdbapi' to fail.

So the solution in this case is to remove the dot (.) from the char array in line 294 name = name.strip("-. ").

Now, you may say that this may break other cases of movie name matching, and I will agree with you on that, but it can be added as another test case in test_filenameparser to assure that nothing that is currently tested, breaks.

P.S.: For testing purposes the filename is "The.Man.from.U.N.C.L.E..2015.1080p.BluRay.x264.DTS-JYK.mkv"

Error when running

I can run the TraktForVLC.py file but when I do I get this in a python window

C:\Users\George\Desktop\TraktForVLC-master\requests\packages\urllib3\util\ssl_.p
y:79: InsecurePlatformWarning: A true SSLContext object is not available. This p
revents urllib3 from configuring SSL appropriately and may cause certain SSL con
nections to fail. For more information, see https://urllib3.readthedocs.org/en/l
atest/security.html#insecureplatformwarning.
InsecurePlatformWarning
C:\Python27\lib\site-packages\setuptools-16.0-py2.7.egg\pkg_resources__init__.p
y:197: RuntimeWarning: You have iterated over the result of pkg_resources.parse_
version. This is a legacy behavior which is inconsistent with the new version cl
ass introduced in setuptools 8.0. In most cases, conversion to a tuple is unnece
ssary. For comparison of versions, sort the Version instances directly. If you h
ave another use case requiring the tuple, please file a bug with the setuptools
project describing that need.

Could not find VLC running at localhost:4222

Hi

I am running VLC 2.2.2 x64, just downloaded TraktForVLC-master, configured and no go :p

I can "telnet localhost 4222" and it connects.

I downloaded python 2.7.11.

Debug log attached.

VLC is my backup for when KODI is unable to play some media or too slow for it, so i can try whatever version of vlc/python you sugest.

set_registry_keys.bat syntax error windows 8.1

The filename, directory name, or volume label syntax is incorrect.

- Add config to all your vlc files for TraktForVLC -

VLC configuration : localhost:4222
Editing your registry keys for formats ""
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
ERROR: Invalid syntax.
Type "REG ADD /?" for usage.
Registry keys modified, thanks for using !
Press any key to continue . . .

Error

Hi !

python version = 3.4

Installation

Automatic config

I am trying to install Trakt for vlc but when I start the set_registry_keys.bat file. But I got an error :

image

There is the content of config.bat

image

Folders config and data are created.

image

VLC config

I follow the instruction here

Config

I edited the config.ini file whith the pin code

Launch a show

When I start a show I got this in the console :
image
but I can open in a web broser the url, and get an xml file as answer

http://services.tvrage.com/feeds/search.php?show=The%20Messengers%202015

edit : whith an other file :
image

It does not work (win8.1)

I do not know English, use a translator. Maybe I misread the instructions.
What I did:

  1. I inserted pin in config.ini file
  2. I replaced windows_batch\config.bat at it:

set python=C:\Python34\pythonw.exe
set tfv_py=C:\TraktForVLC-master\TraktForVLC.py
set tfv_data=C:\TraktForVLC-master
set tfv_config=C:\TraktForVLC-master
set tfv_pidfile=C:\TraktForVLC-master\TraktForVLC.pid
set vlc_path=C:\Program Files\VideoLAN\VLC\vlc.exe
3. Run the file set_registry_keys.bat
4. Run the file start_process.bat

when I run the file appears start_process command line, which is then closed and nothing happens.Can I move or delete a folder with the program. Means the program files are not used.
the text of the command line

Microsoft Windows Version 6.3.9600 Корпорация Майкрософт (Microsoft Corporation), 2013. Все права защищены.
C:\Windows\system32>cd C:\TraktForVLC-master\windows_batch
C:\TraktForVLC-master\windows_batch>start_process.bat
C:\TraktForVLC-master\windows_batch>cd /D C:\TraktForVLC-master\windows_batch
C:\TraktForVLC-master\windows_batch>call ".\config.bat"
C:\TraktForVLC-master\windows_batch>set python=C:\Python34\pythonw.exe
C:\TraktForVLC-master\windows_batch>set tfv_py=C:\TraktForVLC-master\TraktForVLC
.py
C:\TraktForVLC-master\windows_batch>set tfv_data=C:\TraktForVLC-master
C:\TraktForVLC-master\windows_batch>set tfv_config=C:\TraktForVLC-master
C:\TraktForVLC-master\windows_batch>set tfv_pidfile=C:\TraktForVLC-master\TraktF
orVLC.pid
C:\TraktForVLC-master\windows_batch>set vlc_path=C:\Program Files\VideoLAN\VLC\v
lc.exe
C:\TraktForVLC-master\windows_batch>set ip=localhost
C:\TraktForVLC-master\windows_batch>set port=4222
C:\TraktForVLC-master\windows_batch>set formats=avi
C:\TraktForVLC-master\windows_batch>set vlc_opts=--extraintf=rc --rc-host="loca
lhost":"4222" --rc-quiet
C:\TraktForVLC-master\windows_batch>start "TraktForVLC" C:\Python34\pythonw.exe
C:\TraktForVLC-master\TraktForVLC.py --datadir C:\TraktForVLC-master\ --config C
:\TraktForVLC-master\ --pidfile C:\TraktForVLC-master\TraktForVLC.pid

And watching movies on the site is not marked. Please help me to install this program.

No tv show nor movie found for the current playing video when streaming to VLC on OS X

Hi there,

I'm having a strange issue where TraktForVLC doesn't recognize the movie I'm streaming to VLC. Not sure where the problem is. I'm using a MacBook Pro OS X El Capitan 10.11.1 with VLC 2.2.1.

The settings seem fine to me but when debugging TraktForVLC I see no scrobbling even if I tweak the scrobble setting down to 1%. It always say:

"No tv show nor movie found for the current playing video"

Sometimes it doesn't get recognized, it appears to be my local URL and some other times even if the title is right I still see "No movie found [...]".

Do you know how I can fix it by any chance? Thanks :)

2015-12-28 08:49:46,808::TraktForVLC::INFO::## TraktForVLC v1.3.0-rc1 Breaking Bad
2015-12-28 08:49:46,808::TraktForVLC::INFO::## Copyright (C) 2014-2015  Raphaël Beamonte <[email protected]>
2015-12-28 08:49:46,808::TraktForVLC::INFO::##
2015-12-28 08:49:46,808::TraktForVLC::INFO::## TraktForVLC is distributed in the hope that it will be useful, but
2015-12-28 08:49:46,808::TraktForVLC::INFO::## with ABSOLUTELY NO WARRANTY. This is free software; you are welcome
2015-12-28 08:49:46,808::TraktForVLC::INFO::## to redistribute and/or modify it under the terms of the GPL2.
2015-12-28 08:49:46,808::TraktForVLC::INFO::
2015-12-28 08:49:46,819::TraktForVLC::DEBUG::Running on Darwin-15.0.0-x86_64-i386-64bit, with Python 2.7.10
2015-12-28 08:49:47,267::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api.github.com
2015-12-28 08:49:47,479::requests.packages.urllib3.connectionpool::DEBUG::"GET /repos/XaF/TraktForVLC/releases HTTP/1.1" 200 None
2015-12-28 08:49:47,484::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2015-12-28 08:49:47,484::TraktForVLC::INFO::Logger level is set to DEBUG
2015-12-28 08:49:47,484::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2015-12-28 08:49:47,484::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2015-12-28 08:49:47,484::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2015-12-28 08:49:47,484::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2015-12-28 08:49:47,485::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2015-12-28 08:49:47,485::TraktForVLC::INFO::-- Timer set to 5 secs
2015-12-28 08:49:47,485::TraktForVLC::INFO::-- Video will be marked as "is watching" from 5 secs
2015-12-28 08:49:47,485::TraktForVLC::INFO::Listening VLC to localhost:4222
2015-12-28 08:49:47,485::TraktClient::DEBUG::TraktClient logger initialized
2015-12-28 08:49:47,485::TraktClient::DEBUG::TraktClient will use PIN Auth
2015-12-28 08:49:47,485::TraktForVLC::DEBUG::reset cache (None, None)
2015-12-28 08:49:47,489::VLCRemote::DEBUG::VLC version is 2.2.1
2015-12-28 08:49:47,489::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 08:49:47,489::VLCRemote::DEBUG::<- Received: 1
2015-12-28 08:49:47,490::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:47,490::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:47,490::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 08:49:47,490::VLCRemote::DEBUG::<- Received: 2848
2015-12-28 08:49:47,491::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:47,491::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:47,491::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 08:49:47,492::VLCRemote::DEBUG::<- Received: http://127.0.0.1:52104/
2015-12-28 08:49:47,492::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:47,492::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:47,492::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 08:49:47,492::VLCRemote::DEBUG::<- Received: 6
2015-12-28 08:49:47,493::TraktForVLC::DEBUG::main::New file:  (2848)
2015-12-28 08:49:47,493::TraktForVLC::DEBUG::reset cache (, 2848)
2015-12-28 08:49:47,493::TraktForVLC::INFO::Not able to parse a tvshow from the file title
2015-12-28 08:49:47,493::TraktForVLC::INFO::No matching movie found for video playing
2015-12-28 08:49:47,493::TraktForVLC::DEBUG::get_Movie::Here's to help debug
Traceback (most recent call last):
  File "/Users/Alessandro/TraktForVLC/TraktForVLC.py", line 651, in get_Movie
    title = now_playing['title']
TypeError: 'bool' object has no attribute '__getitem__'
2015-12-28 08:49:47,493::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-28 08:49:52,497::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:52,497::VLCRemote::DEBUG::<- Received: VLC media player 2.2.1 Terry Pratchett (Weatherwax)
Command Line Interface initialized. Type `help' for help.
>
2015-12-28 08:49:52,497::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 08:49:52,498::VLCRemote::DEBUG::<- Received: 1
2015-12-28 08:49:52,498::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:52,498::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:52,498::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 08:49:52,498::VLCRemote::DEBUG::<- Received: 2848
2015-12-28 08:49:52,498::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:52,498::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:52,498::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 08:49:52,498::VLCRemote::DEBUG::<- Received: http://127.0.0.1:52104/
2015-12-28 08:49:52,499::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:52,499::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:52,499::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 08:49:52,499::VLCRemote::DEBUG::<- Received: 11
2015-12-28 08:49:52,499::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-28 08:49:57,504::VLCRemote::DEBUG::VLC version is 2.2.1
2015-12-28 08:49:57,504::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 08:49:57,504::VLCRemote::DEBUG::<- Received: 1
2015-12-28 08:49:57,504::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:57,504::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:57,504::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 08:49:57,505::VLCRemote::DEBUG::<- Received: 2848
2015-12-28 08:49:57,505::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:57,505::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:57,505::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 08:49:57,505::VLCRemote::DEBUG::<- Received: http://127.0.0.1:52104/
2015-12-28 08:49:57,505::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:49:57,505::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:49:57,505::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 08:49:57,506::VLCRemote::DEBUG::<- Received: 16
2015-12-28 08:49:57,506::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-28 08:50:02,512::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:50:02,513::VLCRemote::DEBUG::<- Received: VLC media player 2.2.1 Terry Pratchett (Weatherwax)
Command Line Interface initialized. Type `help' for help.
>
2015-12-28 08:50:02,513::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 08:50:02,513::VLCRemote::DEBUG::<- Received: 1
2015-12-28 08:50:02,513::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:50:02,513::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:50:02,513::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 08:50:02,513::VLCRemote::DEBUG::<- Received: 2848
2015-12-28 08:50:02,514::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:50:02,514::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:50:02,514::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 08:50:02,514::VLCRemote::DEBUG::<- Received: http://127.0.0.1:52104/
2015-12-28 08:50:02,514::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:50:02,514::VLCRemote::DEBUG::<- Received: >
2015-12-28 08:50:02,514::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 08:50:02,514::VLCRemote::DEBUG::<- Received: 21
2015-12-28 08:50:02,514::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-28 08:50:07,521::VLCRemote::DEBUG::cleaning cache
2015-12-28 08:50:07,521::VLCRemote::DEBUG::<- Received: VLC media player 2.2.1 Terry Pratchett (Weatherwax)
Command Line Interface initialized. Type `help' for help.>  

And here for example the name gets passed correctly...

2015-12-28 09:07:55,769::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2015-12-28 09:07:55,770::TraktForVLC::INFO::Logger level is set to DEBUG
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Timer set to 5 secs
2015-12-28 09:07:55,770::TraktForVLC::INFO::-- Video will be marked as "is watching" from 5 secs
2015-12-28 09:07:55,770::TraktForVLC::INFO::Listening VLC to localhost:4222
2015-12-28 09:07:55,770::TraktClient::DEBUG::TraktClient logger initialized
2015-12-28 09:07:55,770::TraktClient::DEBUG::TraktClient will use PIN Auth
2015-12-28 09:07:55,770::TraktForVLC::DEBUG::reset cache (None, None)
2015-12-28 09:07:55,774::VLCRemote::DEBUG::VLC version is 2.2.1
2015-12-28 09:07:55,774::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 09:07:55,775::VLCRemote::DEBUG::<- Received: 1
2015-12-28 09:07:55,775::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:07:55,775::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:07:55,775::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 09:07:55,775::VLCRemote::DEBUG::<- Received: 6393
2015-12-28 09:07:55,776::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:07:55,776::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:07:55,776::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 09:07:55,776::VLCRemote::DEBUG::<- Received: Wish I Was Here
2015-12-28 09:07:55,777::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:07:55,777::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:07:55,777::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 09:07:55,777::VLCRemote::DEBUG::<- Received: 12
2015-12-28 09:07:55,777::TraktForVLC::DEBUG::main::New file: Wish I Was Here (6393)
2015-12-28 09:07:55,777::TraktForVLC::DEBUG::reset cache (Wish I Was Here, 6393)
2015-12-28 09:07:55,777::TraktForVLC::INFO::Not able to parse a tvshow from the file title
2015-12-28 09:07:55,777::TraktForVLC::INFO::No matching movie found for video playing
2015-12-28 09:07:55,777::TraktForVLC::DEBUG::get_Movie::Here's to help debug
Traceback (most recent call last):
  File "/Users/Alessandro/TraktForVLC/TraktForVLC.py", line 651, in get_Movie
    title = now_playing['title']
TypeError: 'bool' object has no attribute '__getitem__'
2015-12-28 09:07:55,778::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-28 09:08:00,783::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:00,783::VLCRemote::DEBUG::<- Received: VLC media player 2.2.1 Terry Pratchett (Weatherwax)
Command Line Interface initialized. Type `help' for help.
>
2015-12-28 09:08:00,783::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 09:08:00,784::VLCRemote::DEBUG::<- Received: 1
2015-12-28 09:08:00,784::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:00,784::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:08:00,784::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 09:08:00,784::VLCRemote::DEBUG::<- Received: 6393
2015-12-28 09:08:00,784::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:00,784::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:08:00,784::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 09:08:00,784::VLCRemote::DEBUG::<- Received: Wish I Was Here
2015-12-28 09:08:00,785::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:00,785::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:08:00,785::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 09:08:00,785::VLCRemote::DEBUG::<- Received: 16
2015-12-28 09:08:00,785::TraktForVLC::INFO::No tv show nor movie found for the current playing video
2015-12-28 09:08:05,792::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:05,792::VLCRemote::DEBUG::<- Received: VLC media player 2.2.1 Terry Pratchett (Weatherwax)
Command Line Interface initialized. Type `help' for help.
>
2015-12-28 09:08:05,792::VLCRemote::DEBUG::-> Sending: is_playing
2015-12-28 09:08:05,792::VLCRemote::DEBUG::<- Received: 1
2015-12-28 09:08:05,793::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:05,793::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:08:05,793::VLCRemote::DEBUG::-> Sending: get_length
2015-12-28 09:08:05,793::VLCRemote::DEBUG::<- Received: 6393
2015-12-28 09:08:05,793::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:05,793::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:08:05,793::VLCRemote::DEBUG::-> Sending: get_title
2015-12-28 09:08:05,793::VLCRemote::DEBUG::<- Received: Wish I Was Here
2015-12-28 09:08:05,793::VLCRemote::DEBUG::cleaning cache
2015-12-28 09:08:05,793::VLCRemote::DEBUG::<- Received: >
2015-12-28 09:08:05,794::VLCRemote::DEBUG::-> Sending: get_time
2015-12-28 09:08:05,794::VLCRemote::DEBUG::<- Received: 22
2015-12-28 09:08:05,794::TraktForVLC::INFO::No tv show nor movie found for the current playing video
^C2015-12-28 09:08:07,791::TraktForVLC::INFO::Program closed by SIGINT

Automatic start not working when VLC is not running on Mac

Launching the service on MacOS does not work with the following log message:

2016-05-18 00:11:07,037::TraktForVLC::INFO::Could not find VLC running at localhost:4222
2016-05-18 00:11:07,037::TraktForVLC::DEBUG::Make sure your VLC player is running with --extraintf=rc --rc-host=localhost:4222 --rc-quiet
Traceback (most recent call last):
File "/Users/user/Applications/TraktForVLC/TraktForVLC.py", line 408, in main
vlc = VLCRemote(self.vlc_ip, self.vlc_port)
File "/Users/user/Applications/TraktForVLC/vlcrc/init.py", line 38, in init
self.cnx = telnetlib.Telnet(hostname, port)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/telnetlib.py", line 211, in init
self.open(host, port, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/telnetlib.py", line 227, in open
self.sock = socket.create_connection((host, port), timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 575, in create_connection
raise err
error: [Errno 61] Connection refused

This only happens when VLC is not running when the daemon is started. But since VLC is not started when the system boots, that's a problem. Any workaround possible?

By the way: when I launch the daemon while VLC is running, everything is working okay.

Can't get it to work on OSX

Hello,

I tried doing this on Mac, but I cannot seem to get it to work.

I changed the settings in VLC. Changed the oldrc to rc too. So far so good. But as soon as I close the app, and open it again, the settings are gone. The localhost:4222 line, and the remote control selection. However, "rc" remains to be there in that line. I do not know if that is the big problem, but well... might have something to do with it.

Configuring part was all good. As far as I know, but I did not get the automatic start with plist file. I did everything there, I guess, but I am a total noob with all that fancy stuff.

I downloaded Python 2.7.6, and installed it, I do not know what to do with it, if I need to do anything with it at all, but I put the location path in the plist file (I think!!), and also the other paths.

This is how my plist file looks now:
http://pastebin.com/j03PDcCE

I put that file in the library mentioned.

After that I opened Terminal and tried to load that file, with the command line listed.
launchctl load ~/Library/LaunchAgents/org.TraktForVLC.plist

Nothing happened, I did not see anything, and I read somewhere before that you could check if it was done correctly via launchctl list. Seems like /something/ went wrong, because I searched for Trakt but found nothing.

Could someone be kind enough to guide me through this?
If you need any more information, please ask! :)

Problem with config file

Hey,

So I've changed most of the variables in the config.bat.default file but when executing the set_registery_keys.bat, it says that it doesn't find .\config.bat .
So my first idea was to remove the .default at the end of config.bat.default but then I have some other errors. So I wanted your advice !

I'm using W8.1 by the way.
Thanks.

Won't scrobble

Running OS X here and followed all the instructions. I'm assuming there's no GUI here or anything to tell me if the extension ran, so I ran "python TraktForVLC.py --debug --small-timers" to see what was going on. It seems that for some reason the extension wont scrobble anything I play. I set the percentage to 3% so it scrobbles my videos, yet it still says "This video is scrobbled : False" http://pastebin.co/qqXEC7Ae\

Two places this could be comming from

  1. There was an error in the beginning that says "A true SSLContext object is not available" Also at other times I've received at 401 error.
  2. For the pin on my account, I entered it as "PIN = 88962e01", I assume there arent supposed to be brackets here, but if there were that could be the problem.

Any advice?

pythonw.exe?

I followed all the steps in your guide, but the script doesen't work. Surely the solution is easy and I'm just a n00b, but when I try to open start_process.bat a window pop ups from the cmd and says

Windows cannot find "pythonw". Make sure you typed the name correctly, and then try again.

Do you have a solution? I've downloaded python27 (didn't have it on my PC before) and tried to set the path but it didn't fix the issue, or I'm doing something wrong
Thanks!

TraktError: Unable to authenticate: 401 Unauthorized

Hey!

Tried to resolve this by reading back... but im out of ideas.
I ran the debug process and everything is working, but i get the dreaded 401 error...
I tried with new codes, restarted the process every time, whatmore i restarted the PC so im sure the process wasnt open while i changed PINs.

If you need more info, just ask!

2016-03-21 23:38:29,354::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv 2016-03-21 23:38:29,868::requests.packages.urllib3.connectionpool::DEBUG::"POST /oauth/token HTTP/1.1" 401 169 2016-03-21 23:38:29,871::TraktForVLC::ERROR::An error occurred while trying to mark as watching Lie to Me - 2x17 Traceback (most recent call last): File "C:\Users\Falka\Desktop\TraktForVLC-master\TraktForVLC.py", line 555, in main self.get_episode(video)) File "C:\Users\Falka\Desktop\TraktForVLC-master\TraktClient.py", line 420, in startWatching return self.__watching('start', imdb_id, progress, episode) File "C:\Users\Falka\Desktop\TraktForVLC-master\TraktClient.py", line 377, in __watching progress=progress) File "C:\Users\Falka\Desktop\TraktForVLC-master\TraktClient.py", line 416, in __watchingEpisode return self.__scrobble(action, data) File "C:\Users\Falka\Desktop\TraktForVLC-master\TraktClient.py", line 347, in __scrobble self.__get_access_token() File "C:\Users\Falka\Desktop\TraktForVLC-master\TraktClient.py", line 295, in __get_access_token stream.status_code, stream.reason)) TraktError: Unable to authenticate: 401 Unauthorized

Process does not start

Hello there!

Thank you very much for taking the time to write this software.
I had this working before flawlessly, but I have run into some trouble in a fresh install of Windows 10.

I have installed Python-3.5.0 for Windows, configured both config.bat and start_process.bat and added the proper keys to the Windows registry.

When I run TraktForVLC, no Python process shows up. I have tried launching straight from the command line, activated --debug tags and nothing seems to be going on,

Any tips?

Regards,
Marcelo

windows_batch.zip

Cannot access file info in Windows

The process starts and seems to work, I have left enabled the DOS command box in VLC to make sure about this, however the displayed information lets me know, that the file is not accessible for the scrobbler.
Furthermore, somehow the pin code is still there, no access token is generated, I'm not sure if I am doing something wrong. The only thing I can think about is that I have all my video files on an external hard drive which is encrypted with BitLocker, may this be the issue? I would appreciate any help.

I am currently using Windows 10 together with VLC 64 bit and Python 3.5.

Anyhow thanks for sharing your work!

Problem "loading" .plist

Hello,

I'm on a Mac OSX.
I have similar problems as some other here, as I can't save the VLC settings and the .plist doesn't seem to be saved when using the "load" command.

==== VLC problem =====

Starting with the VLC problem, i'm picking up where "alltimemarr" started the search in a previous thread.
If I set the settings according to the instructions, and then restart VLC it gives me similar results when using the terminal command
telnet localhost 4222
(unable to connect)

Changing the setting sometimes let me access it with the terminal, and sometimes it gives me the same results.

Typing the commands:
echo $VLC_PLUGIN_PATH result = white line
ls /usr/lib | grep vlc result = nothing
ls /usr/local/lib | grep vlc result = no such file...

Typing:
ls -AlsR /Applications/VLC.app/Contents/MacOS/
gives me a big list of which im not sure what to do...?
This is where "altimemarr" dropped out of the discussion, so where to go from here?

===== .plist problem ======

So here's my .plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
    "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>org.user.TraktForVLC</string>
    <key>ProgramArguments</key>
    <array>
        <string>[/Library/Frameworks/Python.framework/Versions/2.7/bin/python]</string>
        <string>[/Users/Magnus/TraktForVLC/TraktForVLC.py]</string>
    </array>
    <key>WorkingDirectory</key>
    <string>[/Users/Magnus/TraktForVLC]</string>
    <key>RunAtLoad</key>
    <true />
    <key>LaunchOnlyOnce</key>
    <true />
    <key>KeepAlive</key>
    <true />
</dict>
</plist>

I can find a "python" file at the directory /usr/bin/python/, but typing which python in the terminal gives me the above path. (I guess i have two different python, since I installed a new one yesterday when installing CouchPotato?)

When typing in the terminal:
launchctl load ~/Library/LaunchAgents/org.TraktForVLC.plist
nothing seems to happen. And when I check launchctl list I can't find it in the list...
What am I missing?

====== Misc =====

When checking through the "TraktClient.py" code there are some code where username & password are requested, as the Trakt.tv code and tokens.
Should these be manually updated or am I out of bounds looking in there?
I have also put the code from Trakt.tv in ".ini" file, but I read somewhere that these codes get outdated after some time?

Long post, sorry!
But glad if someone could help out!

/ odlmag

PID functilaity doesn't work well on OS X

I setup the TrackForVLC script on OS X with the ~/Library/LaunchAgents/org.TraktForVLC.plist file. In this file I specified:

    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/python</string>
        <string>/Users/myuser/Applications/TraktForVLC/TraktForVLC.py</string>
        <string>--daemon</string>
        <string>--pidfile</string>
        <string>/Users/myuser/Applications/TraktForVLC/TraktForVLC.pid</string>
    </array>

Using the command:

    launchctl load ~/Library/LaunchAgents/org.TraktForVLC.plist

TrakForVLC runs as expected. It creates the file /Users/myuser/Applications/TraktForVLC/TraktForVLC.pid as expected and the file contains the running PID. However, if i kill the python proccess that is running the script with a normal kill the file /Users/myuser/Applications/TraktForVLC/TraktForVLC.pid is not removed. If I then launch the script again either from launchctl or from the command line TrakForVLC exits saying that another instance is running. This is the expected behavior if running the process again, however, the /Users/myuser/Applications/TraktForVLC/TraktForVLC.pid file should have been deleted when the script was killed normally. The request is for the /Users/myuser/Applications/TraktForVLC/TraktForVLC.pid file to be cleaned up when TraktForVLC is stopped normally.

Also the error message should indicate that there is an existing PID file and where it is. It should also state that the user should check to see if TrakForVLC is running else where. If it is not remove the PID file and try again.

Can't start TraktForVLC daemon

Hi,
here's my situation: I have TraktForVLC in /usr/share/traktforlvc, I set up everything on VLC (as explained https://github.com/XaF/TraktForVLC), configured the config.ini file withe my PIN and then added the line /usr/share/traktvforvlc/TraktForVLC.py --daemon in my .bash_profile.
As I started watching a movie on VLC I saw nothing happened on my TrakTV profile (movie progress and lists..).
So I checked out if the daemon was active, and it's not. Then launched the .py directly even with debug mode and got this:

Traceback (most recent call last):
File "./TraktForVLC.py", line 880, in
daemon=(should_daemon or pidfile))
File "./TraktForVLC.py", line 229, in init
self.__load_config()
File "./TraktForVLC.py", line 319, in __load_config
self.TIMER_INTERVAL = self.config.getint("TraktForVLC", "Timer")
File "/usr/lib/python2.7/ConfigParser.py", line 359, in getint
return self._get(section, int, option)
File "/usr/lib/python2.7/ConfigParser.py", line 356, in _get
return conv(self.get(section, option))
ValueError: invalid literal for int() with base 10: '60 # Time (sec) between each loop and look of TraktForVLC'

It seems the most important cause is the parsing of the Timer variable. I'm pretty sure it's ok as explained in my config.ini

[VLC]
IP = localhost
Port = 4222

[Trakt]
PIN = [personal_pin_code]

[TraktForVLC]
Timer = 60 # Time (sec) between each loop and look of TraktForVLC
StartWatching = 30 # Time (sec) before considering a video is currently watched
UseFilenames = No # Whether or not to use filenames instead of VLC window title
ScrobblePercent = 90 # Percentage (%) of the video to be spent before scrobbling it
ScrobbleMovie = Yes # Whether or not TraktForVLC will automatically scrobble movies
ScrobbleTV = Yes # Whether or not TraktForVLC will automatically scrobble tv shows
WatchingMovie = Yes # Whether or not movies will be marked as being watched
WatchingTV = Yes # Whether or not tv shows will be marked as being watched

Any ideas ?
Thanks.

set_registry_keys.bat not working

When I start set_registry_keys.bat I just get errors. http://i.imgur.com/RcgzMd0.png

This is what I have in my config.bat file:

:: TraktForVLC, to link VLC watching to trakt.tv updating
::
:: Config file for the TraktForVLC batch script
::
:: Copyright (C) 2015 Raphaël Beamonte [email protected]
::
:: This file is part of TraktForVLC. TraktForVLC is free software: you can
:: redistribute it and/or modify it under the terms of the GNU General Public
:: License as published by the Free Software Foundation, version 2.
::
:: This program is distributed in the hope that it will be useful, but WITHOUT
:: ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
:: FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
:: details.
::
:: You should have received a copy of the GNU General Public License
:: along with this program; if not, write to the Free Software Foundation,
:: Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
:: or see http://www.gnu.org/licenses/.

:::: Configuration to start TraktForVLC properly
:: Set the full path to the python exe file on your computer
:: (using pythonw.exe allows not to have a visible console)
set python="C:\Python27\pythonw.exe"

:: Set the path to the TraktForVLC.py file on your computer
set tfv_py="C:\Users\zgibs\Documents\TraktForVLC-master\TraktForVLC.py"

:: Set the path to the directory in which you want to store TraktForVLC
:: data. By default, it is the directory in which TraktForVLC.py is.
set tfv_data="C:\Users\zgibs\Documents\TraktForVLC-master"

:: Set the path to the directory in which the TraktForVLC config file
:: is. By default, it is the directory in which TraktForVLC.py is.
set tfv_config="C:\Users\zgibs\Documents\TraktForVLC-master"

:: Set the path to the file in which we will store the processus ID to
:: allow you to stop the process if needed
set tfv_pidfile="C:\Users\zgibs\Documents\TraktForVLC-master"

:::: Configuration to set the registry keys
:: Set the full path to the VLC exe file on your computer
set vlc_path="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"

:: Set the IP address VLC will listen to (default: localhost)
set ip=localhost

:: Set the port VLC will listen to (default: 4222)
set port=4222

:: Set the file formats for which you want VLC to be start
:: listening to remote control for TraktForVLC to work. You
:: can add as much format as you want, all format must be
:: separated by a coma.
set formats=avi, mkv, mov, mp4, wmv, ts, mpg

:: Set the options you want to start VLC with. You should at least let
:: the default for remote control (--extraintf=rc --rc-host=ip:port
:: --rc-quiet)
set vlc_opts=--extraintf=rc --rc-host="%ip%":"%port%" --rc-quiet

Thanks in advance

Config.bat not accepting paths with spaces in it

I can't set up the config.bat file proberly as the path to my VLC is:

 C:\Program Files (x86)\VideoLAN\VLC\vlc.exe

I've tried double quotes and 2 x double quotes and single quotes.. nothing works. At best the command prompt output is this:


- Add config to all your vlc files for TraktForVLC -

VLC configuration : localhost:4222
Editing your registry keys for formats "avi, mkv, mov, mp4, wmv, ts, mpg"
\VideoLAN\VLC\vlc.exe'" --extraintf=rc --rc-host="localhost":"4222" --rc-quiet --started-from-file --playlist-enqueue "%1"" was unexpected at this time.

Secondly... the options for Python in the config.bat.. don't I have to touch those?!? Nothing is mentioned on the install guide.

starting debug mode in windows

Do you add --debug in the vlc shorcut?

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --extraintf=rc --rc-host=localhost:4222 --debug

It says "VLC media player could not start. either the command line options were invalid or no plugins were found."

It doesn't matter where I put that --debug.

TraktError: Unable to start movie: 500 Internal Server Error

When I try to watch a movie in VLC I get a 500 Error:

paulo@paulo-Aspire-5742:~$ /home/paulo/.track.tv/TraktForVLC-master/TraktForVLC.py --debug
2016-02-27 02:37:28,115::TraktForVLC::INFO::## TraktForVLC v1.3.0-rc1 Breaking Bad
2016-02-27 02:37:28,115::TraktForVLC::INFO::## Copyright (C) 2014-2015  Raphaël Beamonte <[email protected]>
2016-02-27 02:37:28,115::TraktForVLC::INFO::##
2016-02-27 02:37:28,115::TraktForVLC::INFO::## TraktForVLC is distributed in the hope that it will be useful, but
2016-02-27 02:37:28,116::TraktForVLC::INFO::## with ABSOLUTELY NO WARRANTY. This is free software; you are welcome
2016-02-27 02:37:28,116::TraktForVLC::INFO::## to redistribute and/or modify it under the terms of the GPL2.
2016-02-27 02:37:28,116::TraktForVLC::INFO::
2016-02-27 02:37:28,119::TraktForVLC::DEBUG::Running on Linux-4.2.0-27-generic-x86_64-with-Ubuntu-15.10-wily, with Python 2.7.10
2016-02-27 02:37:28,150::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api.github.com
2016-02-27 02:37:29,058::requests.packages.urllib3.connectionpool::DEBUG::"GET /repos/XaF/TraktForVLC/releases HTTP/1.1" 200 None
2016-02-27 02:37:29,064::TraktForVLC::INFO::VERSION:TraktForVLC is up to date
2016-02-27 02:37:29,065::TraktForVLC::INFO::Logger level is set to DEBUG
2016-02-27 02:37:29,065::TraktForVLC::INFO::-- Will scrobble movies ? Yes
2016-02-27 02:37:29,065::TraktForVLC::INFO::-- Will scrobble tv shows ? Yes
2016-02-27 02:37:29,065::TraktForVLC::INFO::-- Will we mark movies as being watched ? Yes
2016-02-27 02:37:29,065::TraktForVLC::INFO::-- Will we mark tv shows as being watched ? Yes
2016-02-27 02:37:29,066::TraktForVLC::INFO::-- Videos will be scrobbled after 90% of their duration has been exceeded
2016-02-27 02:37:29,066::TraktForVLC::INFO::-- Timer set to 60 secs
2016-02-27 02:37:29,066::TraktForVLC::INFO::-- Video will be marked as "is watching" from 30 secs
2016-02-27 02:37:29,066::TraktForVLC::INFO::Listening VLC to localhost:4222
2016-02-27 02:37:29,066::TraktClient::DEBUG::TraktClient logger initialized
2016-02-27 02:37:29,066::TraktClient::DEBUG::TraktClient will use PIN Auth
2016-02-27 02:37:29,067::TraktForVLC::DEBUG::reset cache (None, None)
2016-02-27 02:37:29,069::VLCRemote::DEBUG::VLC version is 3.0.0-git
2016-02-27 02:37:29,069::VLCRemote::DEBUG::-> Sending: is_playing
2016-02-27 02:37:29,070::VLCRemote::DEBUG::<- Received: 0
2016-02-27 02:38:29,156::VLCRemote::DEBUG::VLC version is 3.0.0-git
2016-02-27 02:38:29,156::VLCRemote::DEBUG::-> Sending: is_playing
2016-02-27 02:38:29,157::VLCRemote::DEBUG::<- Received: 1
2016-02-27 02:38:29,157::VLCRemote::DEBUG::-> Sending: get_length
2016-02-27 02:38:29,201::VLCRemote::DEBUG::<- Received: > 5697
2016-02-27 02:38:29,203::VLCRemote::DEBUG::cleaning cache
2016-02-27 02:38:29,204::VLCRemote::DEBUG::<- Received: >
2016-02-27 02:38:29,204::VLCRemote::DEBUG::-> Sending: get_title
2016-02-27 02:38:29,205::VLCRemote::DEBUG::<- Received: Racing.Extinction.2015.720p.BluRay.x264-[YTS.AG].mp4
2016-02-27 02:38:29,206::VLCRemote::DEBUG::-> Sending: get_time
2016-02-27 02:38:29,249::VLCRemote::DEBUG::<- Received: > 45
2016-02-27 02:38:29,250::TraktForVLC::DEBUG::main::New file: Racing.Extinction.2015.720p.BluRay.x264-[YTS.AG].mp4 (5697)
2016-02-27 02:38:29,250::TraktForVLC::DEBUG::reset cache (Racing.Extinction.2015.720p.BluRay.x264-[YTS.AG].mp4, 5697)
2016-02-27 02:38:29,251::tvdb_api::DEBUG::Searching for show Racing%20Extinction
2016-02-27 02:38:29,251::tvdb_api::DEBUG::Retrieving URL http://thetvdb.com/api/GetSeries.php?seriesname=Racing%20Extinction&language=en
2016-02-27 02:38:30,021::TraktForVLC::DEBUG::valid_TV::no series found with the name 'Racing Extinction'
2016-02-27 02:38:30,023::TraktForVLC::DEBUG::get_Movie::Now playing: {'year': u'2015', 'title': u'Racing Extinction'}
2016-02-27 02:38:30,025::requests.packages.urllib3.connectionpool::INFO::Starting new HTTP connection (1): www.omdbapi.com
2016-02-27 02:38:30,262::requests.packages.urllib3.connectionpool::DEBUG::"GET /?i=&y=2015&t=Racing+Extinction&tomatoes=true HTTP/1.1" 200 None
2016-02-27 02:38:30,265::TraktForVLC::DEBUG::get_Movie::Valid movie found: {'Plot': u'A documentary that follows undercover activists trying to stave off a man-made mass extinction.', 'Title': u'Racing Extinction', 'imdbID': u'tt1618448', 'Director': u'Louie Psihoyos', 'tomatoRating': u'7.4', 'Year': u'2015', 'Runtime': u'90 min', 'imdbRating': u'8.1'}
2016-02-27 02:38:30,265::TraktForVLC::INFO::Racing Extinction state : 0%
2016-02-27 02:38:30,265::TraktForVLC::DEBUG::main::Video: {'duration': 5697, 'show_imdbid': None, 'episode': -1, 'title': u'Racing Extinction', 'tv': False, 'imdbid': u'tt1618448', 'percentage': 0, 'year': u'2015', 'season': -1}
2016-02-27 02:38:30,265::TraktForVLC::DEBUG::main::This video is scrobbled : False
2016-02-27 02:39:30,325::VLCRemote::DEBUG::VLC version is 3.0.0-git
2016-02-27 02:39:30,326::VLCRemote::DEBUG::-> Sending: is_playing
2016-02-27 02:39:30,326::VLCRemote::DEBUG::<- Received: 1
2016-02-27 02:39:30,326::VLCRemote::DEBUG::-> Sending: get_length
2016-02-27 02:39:30,365::VLCRemote::DEBUG::<- Received: > 5697
2016-02-27 02:39:30,365::VLCRemote::DEBUG::cleaning cache
2016-02-27 02:39:30,365::VLCRemote::DEBUG::<- Received: >
2016-02-27 02:39:30,365::VLCRemote::DEBUG::-> Sending: get_title
2016-02-27 02:39:30,366::VLCRemote::DEBUG::<- Received: Racing.Extinction.2015.720p.BluRay.x264-[YTS.AG].mp4
2016-02-27 02:39:30,366::VLCRemote::DEBUG::-> Sending: get_time
2016-02-27 02:39:30,405::VLCRemote::DEBUG::<- Received: > 106
2016-02-27 02:39:30,406::TraktForVLC::INFO::Racing Extinction state : 1%
2016-02-27 02:39:30,406::TraktForVLC::DEBUG::main::Video: {'duration': 5697, 'show_imdbid': None, 'episode': -1, 'title': u'Racing Extinction', 'tv': False, 'imdbid': u'tt1618448', 'percentage': 1, 'year': u'2015', 'season': -1}
2016-02-27 02:39:30,406::TraktForVLC::DEBUG::main::This video is scrobbled : False
2016-02-27 02:39:30,407::TraktForVLC::DEBUG::main::Trying to mark Racing Extinction watching on Trakt...
2016-02-27 02:39:30,407::TraktClient::DEBUG::Sending POST to https://api-v2launch.trakt.tv/scrobble/start data {"app_date": "2015-11-26", "movie": {"ids": {"imdb": "tt1618448"}}, "app_version": "1.3.0-rc1", "progress": 1}
2016-02-27 02:39:30,407::TraktClient::DEBUG::{"app_date": "2015-11-26", "movie": {"ids": {"imdb": "tt1618448"}}, "app_version": "1.3.0-rc1", "progress": 1}
2016-02-27 02:39:30,409::requests.packages.urllib3.connectionpool::INFO::Starting new HTTPS connection (1): api-v2launch.trakt.tv
2016-02-27 02:39:30,738::requests.packages.urllib3.connectionpool::DEBUG::"POST /scrobble/start HTTP/1.1" 500 97
2016-02-27 02:39:30,747::TraktForVLC::ERROR::An error occurred while trying to mark as watching Racing Extinction
Traceback (most recent call last):
  File "/home/paulo/.track.tv/TraktForVLC-master/TraktForVLC.py", line 555, in main
    self.get_episode(video))
  File "/home/paulo/.track.tv/TraktForVLC-master/TraktClient.py", line 420, in startWatching
    return self.__watching('start', imdb_id, progress, episode)
  File "/home/paulo/.track.tv/TraktForVLC-master/TraktClient.py", line 392, in __watching
    return self.__scrobble(action, data)
  File "/home/paulo/.track.tv/TraktForVLC-master/TraktClient.py", line 358, in __scrobble
    stream.reason))
TraktError: Unable to start movie: 500 Internal Server Error

Cannot save the settings

I am on Win10 and use the 32bit version of VLC 2.2.2

Whenever I enter settings in the Interface section of the settings and want to save them, they disappear next time I open the settings.

Edit:
I installed 2.2.0 and tried to leave the "oldrc" value in the field where it appears and it remains there after saving but the "localhost:4222" value does not remain after saving.

Nothing happens

When I run "start_process.bat" or "start_debug_process.bat" absolutely nothing happens, there is nothing in console, there are no log files. I'm pretty shure I did configuration properly, I have Python 2.7, I read many issues and followed a few advices but still can't force it to work.
I know that I'm not very specific and it's really hard to help in this case but I hope you will at least try.
Oh, and I'm using Windows 8.1.

No permission to write pidfile

Running the script in DEBUG mode always seems to work fine. When trying to execute it manually with the following line
python TraktForVLC.py --datadir "C:\Users\User\Documents\TraktForVLC-master" --config "C:\Users\user\Documents\TraktForVLC-master" --pidfile "C:\Users\user\Documents\TraktForVLC-master"

I get this error from python

Traceback (most recent call last):
File "TraktForVLC.py", line 871, in
file(pidfile, "w").write("%s\n" % str(os.getpid()))
IOError: [Errno 13] Permission denied: 'C:\Users\user\Documents\TraktForVLC-master'

any ideas why?

cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.