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

Corrigido erro na busca manual #31

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

RobertoHigor
Copy link

Depois de mudar essa linha, o erro sumiu para mim, porém agora sobrou o seguinte erro:

 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: argument 1 must be string or buffer, not None
Traceback (most recent call last):
  File "C:\Users\Higor\AppData\Roaming\Kodi\addons\service.subtitles.legendastv\service.py", line 302, in <module>
    subs = Download(params["download_url"],'filename', pack, params['lang'])
  File "C:\Users\Higor\AppData\Roaming\Kodi\addons\service.subtitles.legendastv\service.py", line 123, in Download
    with open(fname,'wb') as f: f.write(FileContent)
TypeError: argument 1 must be string or buffer, not None
-->End of Python script error report<--

Outra coisa, o regex3 do arquivo LegendasTV.py talvez precise de um escape no final
regex_3 = "<button class="icon_arrow" onclick="window.open('([^\']*?)', '_self')">DOWNLOAD"

Nesse caso, no </button>´ do final, devendo ser </button>`

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

Successfully merging this pull request may close these issues.

3 participants