Closed GoogleCodeExporter closed 9 years ago
Attached is log file when Podnapisi found a match but could not download it.
Original comment by asil...@gmail.com
on 8 Oct 2011 at 11:53
Attachments:
hi,
it looks like the download failed for some reason. I'm currently halfway around
the world on holiday so I'll take a look at it when I get back.
Original comment by patrick....@gmail.com
on 8 Oct 2011 at 12:32
When I disable addi7ed I noticed that this is the reason the subtitles were
not downloaded from Podnapisi
ERROR:periscope.periscope:global name 'searchurl' is not defined
INFO:periscope.periscope:Trying to download subtitle: None
WARNING:periscope.periscope:Subtitle None could not be downloaded, trying the
next on the list
ERROR:periscope.periscope:global name 'searchurl' is not defined
ERROR:periscope.periscope:No subtitles could be chosen.
Line 79 in Podnapisi.py
Do you know what went wrong?
Original comment by asil...@gmail.com
on 8 Oct 2011 at 12:39
Attached is a debug log.
I spotted the problem but it will take me long time to debug since I dont know
python so well.
I hope someone here could solve it.
The problem is that selectBestSubtitle returns None although there were 2
candidates.
Thanks
Original comment by asil...@gmail.com
on 8 Oct 2011 at 12:52
Attachments:
After further debugging I noticed that
attempToDownloadSubtitle refers to attribute link.
the returned subtitle array from Podnapisi does not contain any link attribute.
I think it should use the page attribute.
Original comment by asil...@gmail.com
on 8 Oct 2011 at 1:08
podnapisi should set a link attribute that is the same than the page. Page
means the download page, link means the download link
Original comment by patrick....@gmail.com
on 8 Oct 2011 at 1:21
Finally i found the bug :)
in createFile of Podnapisi.py one should change downloadContent from searchurl
to subpage. :)
It was a touch debugging but finally I made it.
Original comment by asil...@gmail.com
on 8 Oct 2011 at 1:22
Fixed in r151. Thanks
Original comment by patrick....@gmail.com
on 3 Nov 2011 at 9:10
Original issue reported on code.google.com by
asil...@gmail.com
on 8 Oct 2011 at 11:39