mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-03 01:43:37 +00:00
Merge pull request #753 from JackDandy/feature/ChangeIMDb
Change ensure English data from IMDb.
This commit is contained in:
commit
900e8d5874
2 changed files with 3 additions and 2 deletions
|
@ -59,6 +59,7 @@
|
|||
* Add 5 decades of 'IMDb Popular' selections to 'View' drop down on 'Add from... Browse Shows'
|
||||
* Add 'Other Services' to 'View' drop down on 'Add from... Browse Shows'
|
||||
* Add enable, disable and delete public IMDb watchlists to Config/General/Interface with a default 'SickGear' list
|
||||
* Change ensure English data from IMDb
|
||||
* Change prevent duplicate show ids from presenting items on 'Add from... Browse Shows'
|
||||
* Change add 'nocache' kwarg to helpers.getURL to facilitate non-cached requests
|
||||
* Change instantly use saved value from Search Settings/Episode Search/"Check propers every" instead of after a restart
|
||||
|
|
|
@ -2755,7 +2755,7 @@ class NewHomeAddShows(Home):
|
|||
url_data = '/_ajax?sort=date_added,desc&mode=detail&page=1&title_type=tvSeries%2CtvEpisode&ref_=wl_vm_dtl'
|
||||
url_ui = '?mode=detail&page=1&sort=date_added,desc&title_type=tvSeries%2CtvEpisode&ref_=wl_ref_typ'
|
||||
|
||||
html = helpers.getURL(url + url_data)
|
||||
html = helpers.getURL(url + url_data, headers={'Accept-Language': 'en-US'})
|
||||
if html:
|
||||
show_list_found = self.parse_imdb_html(html, filtered, kwargs)
|
||||
kwargs.update(dict(start_year=start_year))
|
||||
|
@ -2789,7 +2789,7 @@ class NewHomeAddShows(Home):
|
|||
mode = 'popular-%s,%s' % (start_year, end_year)
|
||||
|
||||
url = 'http://www.imdb.com/search/title?at=0&sort=moviemeter&title_type=tv_series&year=%s,%s' % (start_year, end_year)
|
||||
html = helpers.getURL(url)
|
||||
html = helpers.getURL(url, headers={'Accept-Language': 'en-US'})
|
||||
if html:
|
||||
self.parse_imdb_html(html, filtered, kwargs)
|
||||
kwargs.update(dict(mode=mode, periods=periods))
|
||||
|
|
Loading…
Reference in a new issue