Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Critical Error #6

Open
ghost opened this issue Dec 19, 2015 · 2 comments
Open

Critical Error #6

ghost opened this issue Dec 19, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2015

Fiz a instalação conforme o README.md, aparece nos agents, tudo configurado corretamente.
Porém, não faz o download da legenda de jeito nenhum.

Olhando os logs do plugin, qualquer legenda que ele tenta baixar, ocorre o seguinte erro (pelo q entendi, logo após ser feito o download.

2015-12-19 21:39:46,512 (2fe0) :  INFO (logkit:16) - ['http://legendas.tv/downloadarquivo/... uma longa lista de urls, ocultado aqui no github! :P']
2015-12-19 21:39:46,513 (2fe0) :  CRITICAL (core:572) - Exception in the update function of agent named 'Legendas.tv', called with guid 'com.plexapp.agents.thetvdb://279977?lang=pt' (most recent call last):
  File "bundles-release/Framework.bundle-dist/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1055, in _update
  File "C:\Users\Beto\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Code\__init__.py", line 767, in update
    siList = getSubsForPart(data)
  File "C:\Users\Beto\AppData\Local\Plex Media Server\Plug-ins\LegendasTV.bundle\Contents\Code\__init__.py", line 608, in getSubsForPart
    subData = 0
NameError: global name 'TVSession' is not defined
@ghost
Copy link
Author

ghost commented Dec 19, 2015

verificando as urls que ocultei ai no issue, vejo que é a URL correta! ou seja, o LegendasTV.bundle está localizando a legenda correta, e retornando o link correto, porém, algum erro acontece no processo de download ou posterior

@joaquimmmagalhaes
Copy link
Contributor

joaquimmmagalhaes commented Mar 11, 2017

Uma função contem um erro. Deixo aqui um link com esse bug corrigido! :)
Basta substituir este ficheiro no plugin.
https://github.com/joaquimmagalhaes17/LegendasTV.bundle/blob/master/Contents/Code/__init__.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant