• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Diaoul / subliminal / 869 / 2
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 18 Nov 2017 12:27PM UTC
Files 28
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Nov 2017 12:17PM UTC coverage: 90.581%. First build
PARSER=lxml

push

travis-ci

web-flow
When ServiceUnavailable, log error instead of exception (traceback) (#764)

* Don't log exception on 503 Service Unavailable but log error

503 status is not an unexpected error. Quite common btw
Also OpenSubtitle raises a xmlrpclib.ProtocolError when unavailable:
<ProtocolError for api.opensubtitles.org/xml-rpc: 503 Backend fetch failed>

Full traceback:

Unexpected error in provider 'opensubtitles'
Traceback (most recent call last):
  File "/home/osmc/Medusa/lib/subliminal/core.py", line 118, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "/home/osmc/Medusa/lib/subliminal/core.py", line 68, in __getitem__
    provider.initialize()
  File "/home/osmc/Medusa/lib/subliminal/providers/opensubtitles.py", line 142, in initialize
    'subliminal v%s' % __short_version__))
  File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1591, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1321, in single_request
    response.msg,
ProtocolError: <ProtocolError for api.opensubtitles.org/xml-rpc: 503 Backend fetch failed>

* LegendasTV need a custom function as it returns 200 when unavailable

* Proper handle empty content in Addic7ed

Provider wrongful return a status of 304 Not Modified with an empty content
raise_for_status won't raise exception for that status code

* Review

2058 of 2272 relevant lines covered (90.58%)

0.91 hits per line

Source Files on job 869.2 (PARSER=lxml)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 869
  • Travis Job 869.2
  • 88ff5054 on github
  • Next Job for PARSER=lxml on develop (#872.10)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc