Subdownloader does not load the full list of subtitles/movies

Bug #560792 reported by Andrey Skvortsov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SubDownloader
New
Undecided
Unassigned

Bug Description

System information:
Subdownloader 2.0.10 / Linux

Problem:
When I search by Movie Name in Subdownloader, it loads not all results from server. It shows only the first 40 movies.
This problem appears also, when I expand in GUI tree with selected film, that has more than 200 subtitles. I can see only first 40 subtitles.

Site http://opensubtitles.org returns only 40 records on one request. Subdowloader requests only one page, for example, like this:
http://www.opensubtitles.com/en/search/sublanguageid-all/xml/idmovie-174

And subsequent data (movies or subtitles) must be loaded from this pages:
http://www.opensubtitles.com/en/search/sublanguageid-all/xml/idmovie-174/offset-40,
http://www.opensubtitles.com/en/search/sublanguageid-all/xml/idmovie-174/offset-80,
http://www.opensubtitles.com/en/search/sublanguageid-all/xml/idmovie-174/offset-120,...

Subdownloader with this patch requests pages until it get page with no data.

I got also sometimes KeyError exceptions on movies, whose description has no field 'MovieName',
There are sometimes Attribute exception on some subtitles, the patch correct this also.

Tags: patch
Revision history for this message
Andrey Skvortsov (skv) wrote :
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Could you provide a diff -ruNb or a bzr diff ? I'll really appreciate it.

Thanks

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.