Code Monkey home page Code Monkey logo

script.tvtime's Introduction

Notice ⚠️

TV Time has officially stopped its API and this addon for Kodi is based on it. Therefore this addon is not work anymore until further notice. Please see #5 for more details and alternatives

script.tvtime

Kodi plugin for TV Time

This plugin will set TV shows episodes you've seen as watched on TV Time. It will also add the new TV show to your account if it was not already there.

This fork has been created to be able to apply some fixes on the initial repository (hibernating/dead) but it will never be submitted to the official Kodi repository. Please follow Build or Download steps below to install this version.

Build

If you want to build it manually, please follow the steps below:

  1. Clone this repository sudo git clone https://github.com/the-lazy-fox/script.tvtime.git
  2. Enter in script.tvtime cd script.tvtime
  3. Make the compile script executable sudo chmod +x compile.sh
  4. Launch the compile script ./compile.sh

It will create a zip file which can be installed directly within Kodi by following this HOW-TO.

Download

You can down the last release directly. It will download a zip file which can be installed directly within Kodi by following this HOW-TO.

script.tvtime's People

Contributors

aqua-ye avatar beam avatar cheife avatar cxii-dev avatar echeble avatar josemyab avatar kvanzuijlen avatar loona61 avatar mrtruth0 avatar panizza avatar rsantos94 avatar the-lazy-fox avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

script.tvtime's Issues

login error 33804

Yesterday I was logged out and upon trying to login, I keep getting that error code. Any ideas?

Zero devision exception

Using streaming videos on Kodi (Seren).
Any ideas?

Error Type: <type 'exceptions.ZeroDivisionError
Error Contents: float division by zero
Traceback (most recent call last):
File /storage/emulated/0/Android/data/org.xbmc.kodi/files/kodi/addons
actual_percent =(self._last_pos/self._total_time) * 100
Zero DivisionError: float division by zero

Does not sync emotions!

Emotions selected after watching an episode does not sync properly to TVtime. The emotions is shown selected on TVtime.com but there's not emotion count and the mobile app shows nothing.
Using 1.2.4 with Kodi 18.6

Problem with Movie Database

When using TMBD scaper I don't get any feedback, not even "episode not found". And episode is not marked as watched on website.

Episode not found

Hello !
Thank you for your fork of this project.
On the original script and with yours i'm getting "Episode not found" everytime i'm playing something.
The weird thing is that when I force sync Kodi>TVTime, it works perfectly.
I don't know if this can be a problem but i'm using PlexKodiConnect Add-on on Kodi to link it with my Plex database.
Also I'm French so all the title/resume of my episodes are in French.
Also I'm on a Nvidia Shield TV.

Maybe I should link you with the logs ?

I've seen this issue in the #3 but this guy deleted a part of your code that I can't find so I guess you modified it yourself ?

Thanks in advance,

Still getting episode not found

@alxlaxv

I've installed latest release (v1.2.2) and I'm still receiving the message "episode not found"!

Here's the log from Kodi:

22:47:46.996 T:18446744071669553440   DEBUG: ### [TV Time] - result={u'jsonrpc': u'2.0', u'id': 1, u'result': {u'episodedetails': {u'tvshowid': 5, u'episode': 1, u'season': 12, u'episodeid': 69, u'label': u'The Conjugal Configuration', u'uniqueid': {u'unknown': u''}, u'showtitle': u'The Big Bang Theory'}}}
22:47:46.997 T:18446744071669553440   DEBUG: ### [TV Time] - episode_id=
22:47:46.997 T:18446744071669553440   DEBUG: ### [TV Time] - showtitle=The Big Bang Theory
22:47:46.998 T:18446744071669553440   DEBUG: ### [TV Time] - season=12
22:47:46.998 T:18446744071669553440   DEBUG: ### [TV Time] - episode=1
22:47:46.998 T:18446744071669553440   DEBUG: ### [TV Time] - episode_id=
22:47:47.004 T:18446744071669553440   DEBUG: ### [TV Time] - tvshowtitle=The.Big.Bang.Theory.S12E01

As you can see, the uniqueid for unknown is empty! Do you know why?

python3 conversion error

Hi, I just upgraded to the lastest version, but there still are some issues related to the python3 conversion. For example when you mark an episode as watched the following error appears

2021-03-19 11:38:20.824 T:10612   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
          - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
         Error Type: <class 'TypeError'>
         Error Contents: '>' not supported between instances of 'str' and 'int'
         Traceback (most recent call last):
           File "C:\Users\Andrea\AppData\Roaming\Kodi\addons\script.tvtime\default.py", line 209, in onNotification
             if len(item['showtitle']) > 0 and item['season'] > 0 and item['episode'] > 0 and item['episode_id'] > 0:
         TypeError: '>' not supported between instances of 'str' and 'int'
         -->End of Python script error report<--

I guess this depends on how the episode_id is stored inside kodi, so this is an easy fix.
But after I fixed that, another one appears

2021-03-19 11:53:11.821 T:16564   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
          - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
         Error Type: <class 'AttributeError'>
         Error Contents: 'bytes' object has no attribute 'encode'
         Traceback (most recent call last):
           File "C:\Users\Andrea\AppData\Roaming\Kodi\addons\script.tvtime\default.py", line 210, in onNotification
             self.filename = '%s.S%.2dE%.2d' % (formatName(item['showtitle']), float(item['season']), float(item['episode']))
           File "C:\Users\Andrea\AppData\Roaming\Kodi\addons\script.tvtime\default.py", line 351, in formatName
             return normalizeString(filename)
           File "C:\Users\Andrea\AppData\Roaming\Kodi\addons\script.tvtime\default.py", line 369, in normalizeString
             return unicodedata.normalize('NFKD', str).encode('ascii','ignore').encode('UTF-8','replace')
         AttributeError: 'bytes' object has no attribute 'encode'
         -->End of Python script error report<--

I know this is a python3 conversion issue, because they changed how strings are represented in python3 as explained here
but I need someone to confirm this issue is reproducible and it's not just a problem on my end. @jupiler5 @the-lazy-fox can one of you two confirm that?

Then I'll look into it and create a pull request

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.