Boxee

open subtitles does not work

Details

  • Boxee Build Number:
    0.9.21.13xxx
  • Operating System:
    ALL
  • Description:
    open subtitles does not work. the reason is because open subtitles response time has gone up to 30 seconds
    and boxee times out before a response is retrieved.
  1. gui.py.patch
    (0.1 kB)
    Brano Gege
    15/Sep/10 4:12 AM
  2. osdb.py.patch
    (2 kB)
    Brano Gege
    15/Sep/10 4:13 AM
  3. osdb.py.patch
    (2 kB)
    Andre Nazario
    19/Aug/10 6:13 PM

Issue Links

Activity

Hide
Ami Ben-David added a comment - 16/Aug/10 8:13 AM
user comment of Rakefet C:

Gives me a "connection failed" error,
and in the log:


14:14:09 T:2684 M:2609704960 NOTICE: -->Python Interpreter Initialized<--
14:14:10 T:2684 M:2607124480 NOTICE: INFO: set_filepath [F:\TV\the office\2\The Office Season 2\The.Office.S02E02.Sexual.Harassment.avi]
14:14:10 T:2684 M:2607124480 NOTICE: INFO: set_searchstring [S02E02+The+Office]
14:14:10 T:2684 M:2607026176 WARNING: CUtil::GetMatchingSource... no matching source found for [?]
14:14:10 T:2684 M:2607026176 ERROR: CVirtualDirectory::GetDirectory(?) matches no valid source, getting root source list instead
14:14:10 T:2684 M:2607026176 WARNING: CGUIMediaWindow::GetDirectory(?) failed
14:14:10 T:2684 M:2607026176 NOTICE: INFO: onInit
14:14:10 T:2684 M:2607026176 NOTICE: INFO: set_filepath [F:\TV\the office\2\The Office Season 2\The.Office.S02E02.Sexual.Harassment.avi]
14:14:10 T:3616 M:2607017984 NOTICE: INFO: Connecting to server http://api.opensubtitles.org/xml-rpc...
14:14:15 T:3616 M:2609045504 NOTICE: ERROR: XMLRPC LogIn: timed out
14:14:17 T:25380 M:2607923200 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Program Files\Boxee\scripts\OpenSubtitles
14:14:17 T:2684 M:2607923200 INFO: Scriptresult: Success
14:14:17 T:2684 M:2607874048 INFO: Python script stopped
14:14:55 T:1656 M:2602692608 WARNING: CProcessSlowJob::DoWork - Enter function. [server=1][internet=1][IsStoped=0] (wdpslow)
14:14:55 T:1656 M:2602688512 WARNING: CProcessSlowJob::DoWork - Exit function. [server=1][internet=1] (wdpslow)
14:15:55 T:4100 M:2587725824 WARNING: CProcessSlowJob::DoWork - Enter function. [server=1][internet=1][IsStoped=0] (wdpslow)
14:15:55 T:4100 M:2587721728 WARNING: CProcessSlowJob::DoWork - Exit function. [server=1][internet=1] (wdpslow)
14:16:55 T:18060 M:2579767296 WARNING: CProcessSlowJob::DoWork - Enter function. [server=1][internet=1][IsStoped=0] (wdpslow)
14:16:55 T:18060 M:2579763200 WARNING: CProcessSlowJob::DoWork - Exit function. [server=1][internet=1] (wdpslow)
Show
Ami Ben-David added a comment - 16/Aug/10 8:13 AM user comment of Rakefet C: Gives me a "connection failed" error, and in the log: 14:14:09 T:2684 M:2609704960 NOTICE: -->Python Interpreter Initialized<-- 14:14:10 T:2684 M:2607124480 NOTICE: INFO: set_filepath [F:\TV\the office\2\The Office Season 2\The.Office.S02E02.Sexual.Harassment.avi] 14:14:10 T:2684 M:2607124480 NOTICE: INFO: set_searchstring [S02E02+The+Office] 14:14:10 T:2684 M:2607026176 WARNING: CUtil::GetMatchingSource... no matching source found for [?] 14:14:10 T:2684 M:2607026176 ERROR: CVirtualDirectory::GetDirectory(?) matches no valid source, getting root source list instead 14:14:10 T:2684 M:2607026176 WARNING: CGUIMediaWindow::GetDirectory(?) failed 14:14:10 T:2684 M:2607026176 NOTICE: INFO: onInit 14:14:10 T:2684 M:2607026176 NOTICE: INFO: set_filepath [F:\TV\the office\2\The Office Season 2\The.Office.S02E02.Sexual.Harassment.avi] 14:14:10 T:3616 M:2607017984 NOTICE: INFO: Connecting to server http://api.opensubtitles.org/xml-rpc... 14:14:15 T:3616 M:2609045504 NOTICE: ERROR: XMLRPC LogIn: timed out 14:14:17 T:25380 M:2607923200 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Program Files\Boxee\scripts\OpenSubtitles 14:14:17 T:2684 M:2607923200 INFO: Scriptresult: Success 14:14:17 T:2684 M:2607874048 INFO: Python script stopped 14:14:55 T:1656 M:2602692608 WARNING: CProcessSlowJob::DoWork - Enter function. [server=1][internet=1][IsStoped=0] (wdpslow) 14:14:55 T:1656 M:2602688512 WARNING: CProcessSlowJob::DoWork - Exit function. [server=1][internet=1] (wdpslow) 14:15:55 T:4100 M:2587725824 WARNING: CProcessSlowJob::DoWork - Enter function. [server=1][internet=1][IsStoped=0] (wdpslow) 14:15:55 T:4100 M:2587721728 WARNING: CProcessSlowJob::DoWork - Exit function. [server=1][internet=1] (wdpslow) 14:16:55 T:18060 M:2579767296 WARNING: CProcessSlowJob::DoWork - Enter function. [server=1][internet=1][IsStoped=0] (wdpslow) 14:16:55 T:18060 M:2579763200 WARNING: CProcessSlowJob::DoWork - Exit function. [server=1][internet=1] (wdpslow)
Hide
Andre Nazario added a comment - 19/Aug/10 6:13 PM
Patch to file scripts/OpenSubtitles/resources/lib/osdb.py, that worked for me.
Show
Andre Nazario added a comment - 19/Aug/10 6:13 PM Patch to file scripts/OpenSubtitles/resources/lib/osdb.py, that worked for me.
Hide
Andre Nazario added a comment - 19/Aug/10 6:15 PM
I've attached a patch against osdb.py, that worked in my case. I just uncommented opensubtitles login, and increased the socket timeout.
Show
Andre Nazario added a comment - 19/Aug/10 6:15 PM I've attached a patch against osdb.py, that worked in my case. I just uncommented opensubtitles login, and increased the socket timeout.
Hide
Jorge Serna added a comment - 27/Aug/10 2:52 PM
Tried the fix, not working for me. Always getting OpenSubtitles "Connection Failed" error.
Show
Jorge Serna added a comment - 27/Aug/10 2:52 PM Tried the fix, not working for me. Always getting OpenSubtitles "Connection Failed" error.
Hide
Jorge Serna added a comment - 27/Aug/10 3:36 PM
Ok, I was able to really extend the timeout, but now a different problem shows up on the Log. After 25 seconds from starting de XML-RPC connection to OpenSubtitles, the following error shows up:


21:30:46 T:2965086208 M:1966776320 NOTICE: ERROR: XMLRPC LogIn: 'NoneType' object has no attribute 'data'


Currently this effectively disables the subtitles downloading in boxee.
Show
Jorge Serna added a comment - 27/Aug/10 3:36 PM Ok, I was able to really extend the timeout, but now a different problem shows up on the Log. After 25 seconds from starting de XML-RPC connection to OpenSubtitles, the following error shows up: 21:30:46 T:2965086208 M:1966776320 NOTICE: ERROR: XMLRPC LogIn: 'NoneType' object has no attribute 'data' Currently this effectively disables the subtitles downloading in boxee.
Hide
Jorge Serna added a comment - 28/Aug/10 7:45 AM
Ok, this seems to be a common problem and its source is opensubtitles themselves:

https://bugs.launchpad.net/subdownloader/+bug/611278

Could it be possible to find an alternative subtitles source?
Show
Jorge Serna added a comment - 28/Aug/10 7:45 AM Ok, this seems to be a common problem and its source is opensubtitles themselves: https://bugs.launchpad.net/subdownloader/+bug/611278 Could it be possible to find an alternative subtitles source?
Hide
Noam Rathaus added a comment - 10/Sep/10 2:40 AM
Proposed fix doesn't work on AppleTV, as the osdb.py is compiled into osdb.pyo. Trying to remove/modify the files causes them to reappear in their original form, when selecting the OSD option, which causes me to believe they are stored somewhere internal.
Show
Noam Rathaus added a comment - 10/Sep/10 2:40 AM Proposed fix doesn't work on AppleTV, as the osdb.py is compiled into osdb.pyo. Trying to remove/modify the files causes them to reappear in their original form, when selecting the OSD option, which causes me to believe they are stored somewhere internal.
Hide
Matthijs added a comment - 10/Sep/10 8:13 AM - edited
Just change the timeout in gui.py on 30 seconds to make it work. After that you get the obove error ERROR: XMLRPC LogIn: 'NoneType' object has no attribute 'data'

Problem is in osdb.py and here:

BASE_URL_OSTOK = "http://app.boxee.tv/api/ostok"

This url barely returns a token. It simply doesnt work ok and needs to be fixed.

To work around this, comment:

# socket = urllib.urlopen( BASE_URL_OSTOK )
# result = socket.read()
# socket.close()
# xmldoc = minidom.parseString(result)
# token = xmldoc.getElementsByTagName("token")[0].firstChild.data

and add after this last line
token = "<loginname>"

Or any other string you would like, and everything will work fine.
Show
Matthijs added a comment - 10/Sep/10 8:13 AM - edited Just change the timeout in gui.py on 30 seconds to make it work. After that you get the obove error ERROR: XMLRPC LogIn: 'NoneType' object has no attribute 'data' Problem is in osdb.py and here: BASE_URL_OSTOK = "http://app.boxee.tv/api/ostok" This url barely returns a token. It simply doesnt work ok and needs to be fixed. To work around this, comment: # socket = urllib.urlopen( BASE_URL_OSTOK ) # result = socket.read() # socket.close() # xmldoc = minidom.parseString(result) # token = xmldoc.getElementsByTagName("token")[0].firstChild.data and add after this last line token = "<loginname>" Or any other string you would like, and everything will work fine.
Hide
yuvalt added a comment - 12/Sep/10 5:39 PM
OpenSubtitles removed.
Show
yuvalt added a comment - 12/Sep/10 5:39 PM OpenSubtitles removed.
Hide
Jorge Serna added a comment - 13/Sep/10 2:03 AM
You are resolving this by removing OpenSubtitles?? The patch by Matthijs solves the problem for me, why not include it in the next version? Ease of adding subtitles is a key feature of Boxee for lots of users (specially those who are not English-speakers), and we would rather have a slow solution (such as the one above) that no solution at all.
Show
Jorge Serna added a comment - 13/Sep/10 2:03 AM You are resolving this by removing OpenSubtitles?? The patch by Matthijs solves the problem for me, why not include it in the next version? Ease of adding subtitles is a key feature of Boxee for lots of users (specially those who are not English-speakers), and we would rather have a slow solution (such as the one above) that no solution at all.
Hide
Matthijs added a comment - 13/Sep/10 2:38 AM
I was stunned by this as well. I just told you to look at http://app.boxee.tv/api/ostok and fix it and the next thing you say you resolved the issue by removing open subtitles? This is not resolving the issue, this is deleting the problem by removing the whole feature. Having Open subtitles is one of the main reasons we (non american people) use Boxee.
Show
Matthijs added a comment - 13/Sep/10 2:38 AM I was stunned by this as well. I just told you to look at http://app.boxee.tv/api/ostok and fix it and the next thing you say you resolved the issue by removing open subtitles? This is not resolving the issue, this is deleting the problem by removing the whole feature. Having Open subtitles is one of the main reasons we (non american people) use Boxee.
Hide
rafael added a comment - 13/Sep/10 9:49 AM
closed. feature is not stable and was removed :(
Show
rafael added a comment - 13/Sep/10 9:49 AM closed. feature is not stable and was removed :(
Hide
idan added a comment - 13/Sep/10 3:45 PM
Opensubtitles has just added a special URI for Boxee with our own dedicated server (which should be a stable one) at http://boxee.api.opensubtitles.org/xml-rpc

You guys wanna give it a try?
Show
idan added a comment - 13/Sep/10 3:45 PM Opensubtitles has just added a special URI for Boxee with our own dedicated server (which should be a stable one) at http://boxee.api.opensubtitles.org/xml-rpc You guys wanna give it a try?
Hide
Brano Gege added a comment - 15/Sep/10 4:12 AM
patch to gui.py (timeout set to 10s)
Show
Brano Gege added a comment - 15/Sep/10 4:12 AM patch to gui.py (timeout set to 10s)
Hide
Brano Gege added a comment - 15/Sep/10 4:13 AM
osdb.by.patch - fixes opensubtitles
Show
Brano Gege added a comment - 15/Sep/10 4:13 AM osdb.by.patch - fixes opensubtitles
Hide
Brano Gege added a comment - 15/Sep/10 4:17 AM
Idan, I never programmed in python, but somehow I managed to patch files (needs to be checked...). Anyway, if you want to use BASE_URL_OSTOK, make sure you change it to new host, and lets say you cache token for 30 seconds, otherwise I don't see any reason why to use it - I don't know, if it is cached for now.

Anyway, as written in http://twitter.com/opensubtitles, token must be valid from now, so call LogIn() is mandatory.

Also, to make it clear, boxee.api.opensubtitles.org is not dedicated server for now (no funds), but it should much more better than api.opensubtitles.org
Show
Brano Gege added a comment - 15/Sep/10 4:17 AM Idan, I never programmed in python, but somehow I managed to patch files (needs to be checked...). Anyway, if you want to use BASE_URL_OSTOK, make sure you change it to new host, and lets say you cache token for 30 seconds, otherwise I don't see any reason why to use it - I don't know, if it is cached for now. Anyway, as written in http://twitter.com/opensubtitles, token must be valid from now, so call LogIn() is mandatory. Also, to make it clear, boxee.api.opensubtitles.org is not dedicated server for now (no funds), but it should much more better than api.opensubtitles.org

People

Dates

  • Created:
    15/Aug/10 11:00 AM
    Updated:
    Wednesday 4:17 AM
    Resolved:
    Sunday 5:39 PM