Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log error #17

Open
maiorca85 opened this issue Oct 26, 2016 · 4 comments
Open

Log error #17

maiorca85 opened this issue Oct 26, 2016 · 4 comments

Comments

@maiorca85
Copy link

Tenho este erro ja a algum tempo. Esta tudo actualizado. Pode me ajudar?

@gfjardim
Copy link
Owner

Qual seria o erro? Me manda um debug log.

@dlanileonardo
Copy link

dlanileonardo commented Oct 30, 2016

O Erro que ocorre é esse aqui, quando você tenta fazer o download da legenda.

02:01:18 694.731995 T:1574655040  NOTICE: -->Python Interpreter Initialized<--
02:01:41 717.702515 T:1574655040   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'ascii' codec can't decode byte 0xc3 in position 116: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/service.subtitles.legendastv/service.py", line 321, in <module>
                                                subs = Download(params["download_url"],'filename', pack, params['lang'])
                                              File "/storage/.kodi/addons/service.subtitles.legendastv/service.py", line 170, in Download
                                                extract_and_copy()
                                              File "/storage/.kodi/addons/service.subtitles.legendastv/service.py", line 137, in extract_and_copy
                                                log("Opening file: "+dirfile, "DEBUG")
                                              File "/storage/.kodi/addons/service.subtitles.legendastv/resources/lib/LTVutilities.py", line 37, in log
                                                xbmc.log((u"### [%s] - %s" % (__scriptname__,msg,)).encode('utf-8'), level=loglevel )
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 116: ordinal not in range(128)
                                            -->End of Python script error report<--
02:01:43 719.602112 T:1759802432   ERROR: GetDirectory - Error getting plugin://service.subtitles.legendastv/?action=download&download_url=http://legendas.tv/download/57c0c37ed9775/Bastille_Day/Bastille_Day_2016_720p_BluRay_X264_AMIABLE_1080p_BluRay_X264_AMIABLE&filename=Bastille Day (2016) h264-1080p AAC-2ch.mp4&pack=false&lang=Portuguese (Brazil)

Pra corrigir é só apagar o arquivo de log da pasta tmp, se eu não me engano e reiniciar o kodi. Mas é um bug meio chato mesmo, que às vezes acontece.

@maiorca85
Copy link
Author

Ja esta a funcionar. Acho que era mesmo um problema com o meu log no
website. Tive de me logar no website e resolveu. Pelos vistos nao era
problema do add-on. Obrigado pelo optimo trabalho.

On 30 Oct 2016 04:02, "Dlani" notifications@github.com wrote:

O Erro que ocorre é esse aqui, quando você tenta fazer o download da
legenda.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWA9a-50IT_JWzUjExZYQuQ5cOAk6TH6ks5q5BbagaJpZM4Khi5Q
.

@lrrosa
Copy link

lrrosa commented Feb 19, 2017

A algumas semanas começou a aparecer esse mesmo bug aqui e não faz o download da legenda.
Sistema: Librelec 7.0.3 (generic.x86_64) / Kodi 16.1 / Python 2.7.11

Segue o log:

19:11:19 T:139631249053440 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 110: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/.kodi/addons/service.subtitles.legendastv/service.py", line 321, in
subs = Download(params["download_url"],'filename', pack, params['lang'])
File "/storage/.kodi/addons/service.subtitles.legendastv/service.py", line 170, in Download
extract_and_copy()
File "/storage/.kodi/addons/service.subtitles.legendastv/service.py", line 137, in extract_and_copy
log("Opening file: "+dirfile, "DEBUG")
File "/storage/.kodi/addons/service.subtitles.legendastv/resources/lib/LTVutilities.py", line 37, in log
xbmc.log((u"### [%s] - %s" % (scriptname,msg,)).encode('utf-8'), level=loglevel )
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 110: ordinal not in range(128)
-->End of Python script error report<--
19:11:19 T:139631525881600 ERROR: GetDirectory - Error getting plugin://service.subtitles.legendastv/?action=download&download_url=http://legendas.tv/download/58979301ae10a/Colony/Colony_S02E04_HDTV_x264_FLEET_AFG_Mobile_mSD_AVS_MeGusta_CRAVERS_RARBG_LiGaS_KiNGS&filename=Colony - S02E04 - Panopticon.mkv&pack=false&lang=Portuguese (Brazil)

gfjardim added a commit that referenced this issue Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants