Add an object variable vlcTime to store the current VLC time instead of calling the remote control each time

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Scrobble only if we have really watched a part of the video

Using a new cached variable, we now store the start time and position
for the current file. We then scrobble only if we spent 33% of the real
duration watching the movie, and if we really watched at least 25% of
the movie.

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Use the ScrobbleMovie and ScrobbleTV that were in the config.ini file but never used

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Add configuration variables to define if we want to mark videos as being watched or not

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Add configuration variable to define the percentage to reach before scrobbling a video

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Hiding trakt.tv password from log file

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Add a condition to reset the view status cache only if we had something in it

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Fix: cast the result of the is_playing command to int as it is meant to be a boolean

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Reorganize imports in alphabetical order

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Allow to use network streams as video source

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Don't try to find the video if the length is 0 as we will not be able to match our conditions

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Fix: remove an extra space

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Fix: add a missing vlc.close()

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
debug: improving cache and file debug

Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>