This commit is contained in:
DiMartinoXBMC committed 2016-05-14 12:04:25 +03:00
1 parent 2910bf499e
commit 5e98bb1b89
5 files changed
+198 -118

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ import re
import Content
from BeautifulSoup import BeautifulSoup
from datetime import date
def make_category_dict():
category_dict = {
@@ -72,7 +72,7 @@ def make_category_dict():
x[0], x[1] + 'view=list', {'page': x[1] + 'view=list&page=%d', 'increase': 1, 'second_page': 1})
category_dict['year'] = {'year': 'by Year', }
for y in range(2015, 1970, -1):
for y in range(date.today().year, 1970, -1):
category_dict['year'][str(y)] = (str(y), '/films/year/%s/' % str(y),
{'page': '/films/year/%s/' % str(y) + '?view=list&page=%d', 'increase': 1,
'second_page': 1})
+2 -1
View File
@@ -23,6 +23,7 @@ import HTMLParser
import Content
from BeautifulSoup import BeautifulSoup
from datetime import date
class IMDB(Content.Content):
@@ -65,7 +66,7 @@ class IMDB(Content.Content):
}
}
for y in range(2015, 1970, -1):
for y in range(date.today().year, 1970, -1):
category_dict['year'][str(y)] = (str(y), '/year/%s/' % str(y))
regex_list = []
+2 -1
View File
@@ -20,6 +20,7 @@
import re
import socket
from datetime import date
import Content
from BeautifulSoup import BeautifulSoup
@@ -70,7 +71,7 @@ class KinoPoisk(Content.Content):
x[0], x[1] + 'perpage/25/', {'page': x[1] + 'perpage/25/page/%d/', 'increase': 1, 'second_page': 2})
category_dict['year'] = {'year': 'by Year', }
for y in range(2015, 1970, -1):
for y in range(date.today().year, 1970, -1):
category_dict['year'][str(y)] = (str(y), '/s/type/film/list/1/m_act[year]/%s/' % str(y) + 'perpage/25/',
{'page': '/s/type/film/list/1/m_act[year]/%s/' % str(y) + 'perpage/25/page/%d/',
'increase': 1, 'second_page': 2})