Skip to content

Commit

Permalink
Propagate content_type for RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
steeve committed Feb 20, 2014
1 parent 317e299 commit af945d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def extratorrent_page(type_="", cid="", search="", page=1):
}
params.update(plugin.request.args_dict)
page_data = url_get(urljoin(BASE_URL, "/rss.xml"), headers=HEADERS, params=params)
return rss.parse(page_data)
return rss.parse(page_data, content_type)


@plugin.route("/extratorrent/search")
Expand Down
2 changes: 1 addition & 1 deletion resources/site-packages/xbmctorrent/scrapers/kickass.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def kat_page(root, page, sort_field, sort_order):
"field": sort_field,
"sorder": sort_order
})
for item in rss.parse(page_data):
for item in rss.parse(page_data, content_type):
yield item
yield {
"label": ">> Next page",
Expand Down

0 comments on commit af945d5

Please sign in to comment.