HDBits Subtitle agent

Hi,



I installed the HDBits subtitle agent from the unsupported appstore. I am having problems getting it to work. Each time it tries to fetch something from HDBits, I get this in the log:





2012-07-06 09:20:46,677 (-4f967000) : DEBUG (networking:153) - Requesting ‘https://hdbits.org/

2012-07-06 09:20:46,812 (-4f967000) : ERROR (networking:195) - Error opening URL ‘https://hdbits.org/





The site is in fact reachable under that URL so I don’t understand why it says “error opening”. I also double checked I have the username/password right.



Any ideas?



Thanks

Me and Coil wrote this one a year ago, and I just stumbled upon this issue myself. I assume it is because HDbits made a change recently (they have changed their login procedure slightly over the last couple of months, and maybe now they did something devilish). I will try to look into it when I have time, but I think it will be to hard for me to solve, and I may need Coils help. So I need to set the expectation level low for you unfortunately. I don’t think we will have time to solve it the next 2-4 weeks :frowning:

I just found this plugin recently.  It would be of tremendous help but it seemas as mentioned before that the login process and the way subtitles are setup on the site have been changed since hte plugin was first created / updated.  Any chance on it being updated in the near future?  Or is this an abandoned project?

I just found this plugin recently.  It would be of tremendous help but it seemas as mentioned before that the login process and the way subtitles are setup on the site have been changed since hte plugin was first created / updated.  Any chance on it being updated in the near future?  Or is this an abandoned project?

What does the plugin log say?

What does the plugin log say?

2014-05-15 10:38:11,511 (10a204000) : INFO (init:148) - MOVIE UPDATE CALLED
2014-05-15 10:38:11,511 (10a204000) : INFO (init:124) - getMovieSearchString, fileName: Elevenfourteen 1080p BluRay DTS x264-DON.mkv
2014-05-15 10:38:11,512 (10a204000) : INFO (init:131) - ReleaseGroup: DON
2014-05-15 10:38:11,512 (10a204000) : INFO (init:85) - SearchString: Elevenfourteen 1080p BluRay DTS x264 DON
2014-05-15 10:38:11,512 (10a204000) : INFO (init:90) - LangTest: zh
2014-05-15 10:38:11,513 (10a204000) : INFO (init:31) - checkLogin
2014-05-15 10:38:11,513 (10a204000) : DEBUG (networking:172) - Requesting ‘https://hdbits.org/
2014-05-15 10:38:14,639 (10a204000) : INFO (init:37) - lols [‘c4b4254e4e4452703fc89d8ef3bc3dfd’]
2014-05-15 10:38:14,640 (10a204000) : DEBUG (networking:172) - Requesting ‘https://hdbits.org/takelogon.php
2014-05-15 10:38:16,511 (10a204000) : ERROR (networking:223) - Error opening URL ‘https://hdbits.org/takelogon.php
2014-05-15 10:38:16,512 (10a204000) : CRITICAL (agentkit:974) - Exception in the update function of agent named ‘HDBits.org Movie Subtitles’, called with guid ‘com.plexapp.agents.imdb://tt0331811?lang=en’ (most recent call last):
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py”, line 972, in _update
agent.update(obj, media, lang)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/init.py”, line 151, in update
subsList = getSubsForPart(self.getMovieSearchString(os.path.basename(part.file)))
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/init.py”, line 91, in getSubsForPart
subtitleUrls = simpleSearch(searchString, lang)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/init.py”, line 59, in simpleSearch
checkLogin()
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/init.py”, line 42, in checkLogin
elem2 = HTML.ElementFromURL(HDBITS_LOGON_PAGE, values=values)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py”, line 482, in ElementFromURL
method=method,
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/networkkit.py”, line 67, in _http_request
req = self._core.networking.http_request(url, *args, **kwargs)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 426, in http_request
return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 147, in init
self.load()
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 187, in load
f = self._opener.open(req, timeout=self._timeout)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 444, in open
response = meth(req, response)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 557, in http_response
‘http’, request, response, code, msg, hdrs)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 482, in error
return self._call_chain(*args)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 416, in _call_chain
result = func(*args)
File “/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py”, line 565, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

2014-05-15 10:38:11,511 (10a204000) :  INFO (__init__:148) - MOVIE UPDATE CALLED
2014-05-15 10:38:11,511 (10a204000) :  INFO (__init__:124) - getMovieSearchString, fileName: Elevenfourteen 1080p BluRay DTS x264-DON.mkv
2014-05-15 10:38:11,512 (10a204000) :  INFO (__init__:131) - ReleaseGroup: DON
2014-05-15 10:38:11,512 (10a204000) :  INFO (__init__:85) - SearchString: Elevenfourteen 1080p BluRay DTS x264 DON
2014-05-15 10:38:11,512 (10a204000) :  INFO (__init__:90) - LangTest: zh
2014-05-15 10:38:11,513 (10a204000) :  INFO (__init__:31) - checkLogin
2014-05-15 10:38:11,513 (10a204000) :  DEBUG (networking:172) - Requesting 'https://hdbits.org/'
2014-05-15 10:38:14,639 (10a204000) :  INFO (__init__:37) - lols ['c4b4254e4e4452703fc89d8ef3bc3dfd']
2014-05-15 10:38:14,640 (10a204000) :  DEBUG (networking:172) - Requesting 'https://hdbits.org/takelogon.php'
2014-05-15 10:38:16,511 (10a204000) :  ERROR (networking:223) - Error opening URL 'https://hdbits.org/takelogon.php'
2014-05-15 10:38:16,512 (10a204000) :  CRITICAL (agentkit:974) - Exception in the update function of agent named 'HDBits.org Movie Subtitles', called with guid 'com.plexapp.agents.imdb://tt0331811?lang=en' (most recent call last):
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 972, in _update
    agent.update(obj, media, lang)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/__init__.py", line 151, in update
    subsList = getSubsForPart(self.getMovieSearchString(os.path.basename(part.file)))
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/__init__.py", line 91, in getSubsForPart
    subtitleUrls = simpleSearch(searchString, lang)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/__init__.py", line 59, in simpleSearch
    checkLogin()
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/HdbitsSubtitles.bundle/Contents/Code/__init__.py", line 42, in checkLogin
    elem2 = HTML.ElementFromURL(HDBITS_LOGON_PAGE, values=values)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 482, in ElementFromURL
    method=method,
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/networkkit.py", line 67, in _http_request
    req = self._core.networking.http_request(url, *args, **kwargs)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 426, in http_request
    return HTTPRequest(self._core, url, data, h, url_cache, encoding, errors, timeout, immediate, sleep, opener, follow_redirects, method)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 147, in __init__
    self.load()
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 187, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 444, in open
    response = meth(req, response)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 557, in http_response
    'http', request, response, code, msg, hdrs)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 482, in error
    return self._call_chain(*args)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 416, in _call_chain
    result = func(*args)
  File "/Users/XXXXXXXXXXXXX/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Platforms/Shared/Libraries/urllib2_new.py", line 565, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

Perfect, thanks. Totally fixable. Coil found that HDbits changed the login procedures slightly, and a small change in the plugin is needed. I have created a issue for Coil, but I have no idea when he has time to do it.
Press the spoiler button to see what to change if you want it up and running now instead of waiting

[spoiler]
If you absolutely need it now you can edit the __init__.py file that is inside the Code folder inside the bundle. Simply change the logon page value (in row 8) from:

'https://hdbits.org/takelogon.php'
to
'https://hdbits.org/login/doLogin'
[/spoiler]

@Atrus, I'm having trouble to get Finnish subtitles from HDBits. I'm running the latest 9.12 plex, which might have an issue as well?

Can you check if yours is working ...

This agent unfortunately isn’t working for me, does anyone else experience issues? I realise it hasn’t been updated in a while, but I was hopeful it would still work.

I’ve created a GitHub issue (with log files) here: https://github.com/Coi-l/HdbitsSubtitles.bundle/issues/3

@atrus Do you think you could take a quick look?

Thanks!

@EnfoCC said:
This agent unfortunately isn’t working for me, does anyone else experience issues? I realise it hasn’t been updated in a while, but I was hopeful it would still work.

I’ve created a GitHub issue (with log files) here: https://github.com/Coi-l/HdbitsSubtitles.bundle/issues/3

@atrus Do you think you could take a quick look?

Thanks!

I see no issues in the log. I think that all the logs are needed. Can you restart PMS, quickly reproduce the issue and then zip up the entire PMS log folder (with PMS Plugin logs folder as well) and upload it to the github issue so @Coil or anyone else can take a look at it. It may be that I can take a look at it, but I am far from an expert on the area.

@atrus said:

@EnfoCC said:
This agent unfortunately isn’t working for me, does anyone else experience issues? I realise it hasn’t been updated in a while, but I was hopeful it would still work.

I’ve created a GitHub issue (with log files) here: https://github.com/Coi-l/HdbitsSubtitles.bundle/issues/3

@atrus Do you think you could take a quick look?

Thanks!

I see no issues in the log. I think that all the logs are needed. Can you restart PMS, quickly reproduce the issue and then zip up the entire PMS log folder (with PMS Plugin logs folder as well) and upload it to the github issue so @Coil or anyone else can take a look at it. It may be that I can take a look at it, but I am far from an expert on the area.

Alright, I’ve zipped the entire Logs folder and uploaded it to the Github issue: https://github.com/Coi-l/HdbitsSubtitles.bundle/issues/3#issuecomment-223279869

https://github.com/Coi-l/HdbitsSubtitles.bundle/files/295581/logs.zip

Thanks for the swift response!

@EnfoCC said:

@atrus said:

@EnfoCC said:
This agent unfortunately isn’t working for me, does anyone else experience issues? I realise it hasn’t been updated in a while, but I was hopeful it would still work.

I’ve created a GitHub issue (with log files) here: https://github.com/Coi-l/HdbitsSubtitles.bundle/issues/3

@atrus Do you think you could take a quick look?

Thanks!

I see no issues in the log. I think that all the logs are needed. Can you restart PMS, quickly reproduce the issue and then zip up the entire PMS log folder (with PMS Plugin logs folder as well) and upload it to the github issue so @Coil or anyone else can take a look at it. It may be that I can take a look at it, but I am far from an expert on the area.

Alright, I’ve zipped the entire Logs folder and uploaded it to the Github issue: https://github.com/Coi-l/HdbitsSubtitles.bundle/issues/3#issuecomment-223279869

https://github.com/Coi-l/HdbitsSubtitles.bundle/files/295581/logs.zip

Thanks for the swift response!

Can’t see anything in there either which says something to me.
However, there is another guy who took it upon himself to rewrite the agent a bit. I think it works still: GitHub - infernix/HdbitsSubtitles.bundle

@subterfugium said:
@Atrus, I’m having trouble to get Finnish subtitles from HDBits. I’m running the latest 9.12 plex, which might have an issue as well?

Can you check if yours is working …

For some reason I totally missed your post.
I suspect that it might be worth a shot for you to to try infernix version instead.

I can confirm that infernix’ fork works!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.